smiklos commented on code in PR #7257:
URL: https://github.com/apache/arrow-datafusion/pull/7257#discussion_r1289915735


##########
datafusion/optimizer/src/push_down_projection.rs:
##########
@@ -154,7 +154,8 @@ impl OptimizerRule for PushDownProjection {
                 if projection_is_empty {
                     used_columns
                         
.insert(scan.projected_schema.fields()[0].qualified_column());
-                    push_down_scan(&used_columns, scan, true)?
+                    let new_scan = push_down_scan(&used_columns, scan, true)?;
+                    plan.with_new_inputs(&[new_scan])?

Review Comment:
   This call feels like it was just left out accidentally  



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

Reply via email to