You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:11:10 UTC

[jira] [Resolved] (SPARK-22680) SparkSQL scan all partitions when the specified partitions are not exists in parquet formatted table

     [ https://issues.apache.org/jira/browse/SPARK-22680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon resolved SPARK-22680.
----------------------------------
    Resolution: Incomplete

> SparkSQL scan all partitions when the specified partitions are not exists in parquet formatted table
> ----------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-22680
>                 URL: https://issues.apache.org/jira/browse/SPARK-22680
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.2, 2.2.0
>         Environment: spark2.0.2 spark2.2.0
>            Reporter: Xiaochen Ouyang
>            Priority: Major
>              Labels: bulk-closed
>
> 1. spark-sql --master local[2]
> 2. create external table test (id int,name string) partitioned by (country string,province string, day string,hour int) stored as parquet localtion '/warehouse/test';
> 3.produce data into table test
> 4. select count(1) from test where country = '185' and province = '021' and day = '2017-11-12' and hour = 10; if the 4 filter conditions are not exists in HDFS and MetaStore[mysql] , this sql will scan all partitions in table test



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org