Skip to content

Commit

Permalink
Update datafusion/sql/src/utils.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Lamb <[email protected]>
  • Loading branch information
korowa and alamb authored May 27, 2024
1 parent 8bfb558 commit 929e991
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datafusion/sql/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ pub(crate) fn resolve_positions_to_exprs(
})
}
Expr::Literal(ScalarValue::Int64(Some(position))) => plan_err!(
"Cannot find column with position {} in SELECT clause",
"Cannot find column with position {} in SELECT clause. Valid columns: 1 to {}",
select_exprs.len()
position
),
_ => Ok(expr),
Expand Down

0 comments on commit 929e991

Please sign in to comment.