You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2019/07/16 16:42:14 UTC

[jira] [Updated] (SPARK-26769) partition prunning in inner join

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

Dongjoon Hyun updated SPARK-26769:
----------------------------------
    Affects Version/s:     (was: 2.4.0)
                       3.0.0

> partition prunning in inner join
> --------------------------------
>
>                 Key: SPARK-26769
>                 URL: https://issues.apache.org/jira/browse/SPARK-26769
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: nhufas
>            Priority: Major
>              Labels: PartitionPruner
>
> When joining a partitioned parquet table with another table by partition column it should prunne partitions from partitioned table based on another table values.
> example:
> tableA parquet table partitioned be part_filter
> tableB table with column with partition values
>  
> tableA is partitioned by part_A,part_B,part_C,part_D
> tableB is a single column with 2 rows having part_A and part_B as values.
>  
> doing 
> select * from tableA inner join tableB on tableA.part_filter=tableB.part_filter
> should generate a partition prunning on tableA based on tableB values (in this case scanning only 2 partitions) but it wll read all 4 partitions from tableA only filter the results.
>  
> note: this kind of approach works on Hive (filtering tableA partitions)



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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