alamb commented on code in PR #18713:
URL: https://github.com/apache/datafusion/pull/18713#discussion_r2554091775


##########
datafusion/optimizer/src/optimize_unions.rs:
##########
@@ -105,6 +105,31 @@ fn extract_plans_from_union(plan: Arc<LogicalPlan>) -> 
Vec<LogicalPlan> {
             .into_iter()
             .map(Arc::unwrap_or_clone)
             .collect::<Vec<_>>(),
+        LogicalPlan::Projection(Projection {

Review Comment:
   Am I right in understanding this change that it transforms
   ```
     Projection 
       Union
   ```
   to 
   ```
   Union 
     Projection
   ```
   
   (aka it pushes the projection to each input of the union?)
   
   Maybe some comments could help future readers 



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to