jackylee-ch commented on code in PR #51046:
URL: https://github.com/apache/spark/pull/51046#discussion_r2368211599
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkOptimizer.scala:
##########
@@ -95,6 +95,7 @@ class SparkOptimizer(
LimitPushDownThroughWindow,
ConstantFolding,
EliminateLimits),
+ Batch("Post Push down for V2 Relations", FixedPoint(1),
PostV2ScanRelationPushDown),
Review Comment:
For FileSource v1, the issue is handled in
[FileSourceStrategy](https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileSourceStrategy.scala#L221),
where the necessary columns are pruned and passed to `FileSourceScanExec`.
--
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]