Skip to content

Commit

Permalink
refactor(frontend): rename __rw_vnode to rw_vnode (risingwavelabs…
Browse files Browse the repository at this point in the history
…#4342)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and nasnoisaac committed Aug 9, 2022
1 parent eb43eae commit 4734dce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions e2e_test/batch/functions/internal.slt.part
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ statement ok
create table t(v1 varchar, v2 int, v3 int)

statement ok
select __rw_vnode(_row_id) as vnode, _row_id from t;
select rw_vnode(_row_id) as vnode, _row_id from t;

statement ok
insert into t values ('aaa', 1, 1), ('bbb', 0, 2), ('ccc', 0, 5), ('ddd', 1, 4)

statement ok
select __rw_vnode(_row_id) as vnode, _row_id from t;
select rw_vnode(_row_id) as vnode, _row_id from t;

statement ok
drop table t
3 changes: 2 additions & 1 deletion src/frontend/src/binder/expr/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ impl Binder {
"current_database" if inputs.is_empty() => {
return Ok(ExprImpl::literal_varchar(self.db_name.clone()));
}
"__rw_vnode" => ExprType::Vnode,
// internal
"rw_vnode" => ExprType::Vnode,
_ => {
return Err(ErrorCode::NotImplemented(
format!("unsupported function: {:?}", function_name),
Expand Down

0 comments on commit 4734dce

Please sign in to comment.