924060929 commented on code in PR #33566:
URL: https://github.com/apache/doris/pull/33566#discussion_r1565121005


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/ColumnPruning.java:
##########
@@ -141,6 +143,15 @@ public Plan visit(Plan plan, PruneContext context) {
         }
     }
 
+    @Override
+    public Plan visitLogicalOlapScan(LogicalOlapScan scan, PruneContext 
context) {
+        LogicalProperties origLogicalProperties = scan.getLogicalProperties();
+        LogicalProperties logicalProperties = new LogicalProperties(
+                () -> context.requiredSlots.stream().toList(),

Review Comment:
   need compute `Sets.intersection(context.requiredSlots, scan.getOutput)`



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to