Skip to content

Commit

Permalink
chore: add col name when type mismatch in sink
Browse files Browse the repository at this point in the history
  • Loading branch information
KeXiangWang committed Aug 6, 2024
1 parent 891f7b3 commit 25c95f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/frontend/src/handler/create_sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -738,9 +738,10 @@ fn derive_sink_to_table_expr(

if target_type != input_type {
bail!(
"column type mismatch: {:?} vs {:?}",
"column type mismatch: {:?} vs {:?}, column name: {:?}",
target_type,
input_type
input_type,
sink_schema.fields()[idx].name
);
} else {
Ok(ExprImpl::InputRef(Box::new(InputRef::new(
Expand Down

0 comments on commit 25c95f5

Please sign in to comment.