duongcongtoai commented on PR #16016: URL: https://github.com/apache/datafusion/pull/16016#issuecomment-2907805553
regarding of providing the schema from outer to the deep down subquery, can we do something like this: ``` pub(super) fn parse_scalar_subquery( &self, subquery: Query, input_schema: &DFSchema, planner_context: &mut PlannerContext, ) -> Result<Expr> { planner_context.append_outer_query_schema(Some(input_schema.clone().into())); <----- this shouldn't be an option, rather a vector of schema ... let sub_plan = self.query_to_plan(subquery, planner_context)?; let outer_ref_columns = sub_plan.all_out_ref_exprs(); planner_context.pop_outer_query_schema(); <-------- if we are done with planning the subquery, remove the schema from the stack ``` -- 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