File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/query/sql/src/planner Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff 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 ( ) ,
Original file line number Diff line number Diff 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 ( ) ) ;
You can’t perform that action at this time.
0 commit comments