eliaperantoni commented on code in PR #13664: URL: https://github.com/apache/datafusion/pull/13664#discussion_r1923538093
########## datafusion/sql/src/expr/mod.rs: ########## @@ -165,13 +177,126 @@ impl<S: ContextProvider> SqlToRel<'_, S> { schema: &DFSchema, planner_context: &mut PlannerContext, ) -> Result<Expr> { - let mut expr = self.sql_expr_to_logical_expr(sql, schema, planner_context)?; + // The location of the original SQL expression in the source code + let mut expr = + self.sql_expr_to_logical_expr(sql.clone(), schema, planner_context)?; Review Comment: Also it's `validate_schema_satisfies_exprs` that throws the error, not `sql_expr_to_logical_expr`. And in that place I have access to the SQL expression, but the problem still is that I don't know which subexpression was the problem -- 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