You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/07/16 13:26:00 UTC

[jira] [Commented] (SPARK-32331) Keep advanced statistics when pruning partitions

    [ https://issues.apache.org/jira/browse/SPARK-32331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17159214#comment-17159214 ] 

Apache Spark commented on SPARK-32331:
--------------------------------------

User 'peter-toth' has created a pull request for this issue:
https://github.com/apache/spark/pull/29132

> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org