Skip to content

Commit

Permalink
error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhao-su committed Aug 6, 2024
1 parent 0346260 commit d293db8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e_test/batch/basic/union.slt.part
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ select * from t1 union corresponding by (vxx) select * from t2
statement ok
create table txx (vxx int);

statement error Invalid input syntax: At least one column of the left side shall have a <column name> that is the <column name> of some column of the right side
statement error Invalid input syntax: When CORRESPONDING is specified, at least one column of the left side shall have a <column name> that is the <column name> of some column of the right side
select * from t1 union corresponding select * from txx

statement ok
Expand Down
2 changes: 1 addition & 1 deletion e2e_test/streaming/union.slt
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ create materialized view v5 as select * from t1 union corresponding by (vxx, v1)
statement ok
create table txx (vxx int);

statement error Invalid input syntax: At least one column of the left side shall have a <column name> that is the <column name> of some column of the right side
statement error Invalid input syntax: When CORRESPONDING is specified, at least one column of the left side shall have a <column name> that is the <column name> of some column of the right side
create materialized view v5 as select * from t1 union corresponding select * from txx

statement ok
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/binder/set_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ impl Binder {

if corresponding_col_idx_l.is_empty() {
return Err(ErrorCode::InvalidInputSyntax(
"At least one column of the left side shall have a <column name> that is the \
"When CORRESPONDING is specified, at least one column of the left side shall have a <column name> that is the \
<column name> of some column of the right side"
.to_string(),
)
Expand Down

0 comments on commit d293db8

Please sign in to comment.