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/11/02 10:32:00 UTC

[jira] [Commented] (SPARK-33187) Add a check on the number of returned partitions in the HiveShim#getPartitionsByFilter method

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

Apache Spark commented on SPARK-33187:
--------------------------------------

User 'manbuyun' has created a pull request for this issue:
https://github.com/apache/spark/pull/30225

> Add a check on the number of returned partitions in the HiveShim#getPartitionsByFilter method
> ---------------------------------------------------------------------------------------------
>
>                 Key: SPARK-33187
>                 URL: https://issues.apache.org/jira/browse/SPARK-33187
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.1
>            Reporter: jinhai
>            Priority: Major
>
> In the method Shim#getPartitionsByFilter, when filter is empty or when the hive table has a large number of partitions, calling getAllPartitionsMethod or getPartitionsByFilterMethod will results in Driver OOM.
> I think we need add a check on the number of returned partitions by calling Hive#getNumPartitionsByFilter, and add SQLConf spark.sql.hive.metastorePartitionLimit, default value is 100_000



--
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