huaxingao commented on a change in pull request #33584:
URL: https://github.com/apache/spark/pull/33584#discussion_r683241836
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/PushDownUtils.scala
##########
@@ -117,7 +145,11 @@ object PushDownUtils extends PredicateHelper {
relation: DataSourceV2Relation,
projects: Seq[NamedExpression],
filters: Seq[Expression]): (Scan, Seq[AttributeReference]) = {
- val exprs = projects ++ filters
+ val filePartitionFilter = scanBuilder match {
+ case fileScanBuilder: FileScanBuilder =>
fileScanBuilder.getPartitionFilters
Review comment:
@gengliangwang OK. I will not change `PruneFileSourcePartitions`. I will
close this PR and find other way to do this. Thank you very much for your help!
--
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]