eliaperantoni commented on code in PR #13664: URL: https://github.com/apache/datafusion/pull/13664#discussion_r1931814763
########## datafusion/expr/src/expr_rewriter/mod.rs: ########## @@ -181,10 +178,14 @@ pub fn create_col_from_scalar_expr( Some::<TableReference>(subqry_alias.into()), name, )), - Expr::Column(Column { relation: _, name }) => Ok(Column::new( - Some::<TableReference>(subqry_alias.into()), + Expr::Column(Column { + relation: _, name, - )), + spans, + }) => Ok( + Column::new(Some::<TableReference>(subqry_alias.into()), name) + .with_spans(spans.clone()), + ), Review Comment: Good idea! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org