[
https://issues.apache.org/jira/browse/SPARK-32331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Peter Toth resolved SPARK-32331.
--------------------------------
Resolution: Duplicate
> Keep advanced statistics when pruning partitions
> ------------------------------------------------
>
> Key: SPARK-32331
> URL: https://issues.apache.org/jira/browse/SPARK-32331
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.1.0
> Reporter: Peter Toth
> Priority: Major
>
> The rule {{PruneFileSourcePartitions}} deletes 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.
> I think we should keep 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]