alamb commented on code in PR #5509:
URL: https://github.com/apache/arrow-datafusion/pull/5509#discussion_r1131524917
##########
datafusion/expr/src/logical_plan/plan.rs:
##########
@@ -174,7 +174,26 @@ impl LogicalPlan {
}
}
+ /// Used for normalizing columns, as the fallback schemas to the main
schema
+ /// of the plan.
+ pub fn fallback_normalize_schemas(&self) -> Vec<&DFSchema> {
+ match self {
+ LogicalPlan::Window(_)
+ | LogicalPlan::Projection(_)
+ | LogicalPlan::Aggregate(_)
+ | LogicalPlan::Unnest(_)
+ | LogicalPlan::Join(_)
+ | LogicalPlan::CrossJoin(_) => self
+ .inputs()
+ .iter()
+ .map(|input| input.schema().as_ref())
+ .collect(),
+ _ => vec![],
+ }
+ }
Review Comment:
maybe @houqp can provide some historical context about why all schemas is
needed (maybe it was for UNIONs or JOINs?)
It may also be for a limitation that no longer exists.
cc @waynexia who I think may also have hit this recently
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]