Skip to content

Commit cbcc59b

Browse files
committed
fix
1 parent df450af commit cbcc59b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/query/sql/src/planner/binder/window.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ impl Binder {
172172
let (bound_expr, _) = scalar_binder.bind(&order.expr).await?;
173173
let rewrite_scalar = self
174174
.rewrite_scalar_with_replacement(&bound_expr, &|nest_scalar| {
175-
if let ScalarExpr::BoundColumnRef(BoundColumnRef { column }) =
175+
if let ScalarExpr::BoundColumnRef(BoundColumnRef { column, .. }) =
176176
nest_scalar
177177
{
178178
if let Some(scalar_item) = scalar_items.get(&column.index) {
@@ -364,6 +364,7 @@ impl Binder {
364364
};
365365
replaced_args.push(
366366
BoundColumnRef {
367+
span: arg.span(),
367368
column: column_binding.clone(),
368369
}
369370
.into(),
@@ -401,6 +402,7 @@ impl Binder {
401402
};
402403
replaced_partition_items.push(
403404
BoundColumnRef {
405+
span: part.span(),
404406
column: column_binding.clone(),
405407
}
406408
.into(),

src/query/sql/src/planner/semantic/grouping_check.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ impl<'a> GroupingChecker<'a> {
155155
visibility: Visibility::Visible,
156156
};
157157
return Ok(BoundColumnRef {
158+
span: None,
158159
column: column_binding,
159160
}
160161
.into());

0 commit comments

Comments
 (0)