peter-toth opened a new pull request #29132: URL: https://github.com/apache/spark/pull/29132
### What changes were proposed in this pull request? Currently the rule `PruneFileSourcePartitions` removes the advances statistics (cardinality, column stats) of the underlying `LogicalRelation` and keeps only `sizeInBytes` as that is the only value we can be sure that is accurate when a partition pruning happens. This PR changes that and keeps all statistics as they are a good upper limit estimates and by keeping them other rules that depend on the presence of these statistics (like `CostBasedJoinReorder`) can still ran. ### Why are the changes needed? Performance improvement. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing UTs. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
