You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Gobinathan SP (JIRA)" <ji...@apache.org> on 2015/12/13 23:39:46 UTC

[jira] [Updated] (SPARK-12313) getPartitionsByFilter doesnt handle predicates on all / multiple Partition Columns

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

Gobinathan SP updated SPARK-12313:
----------------------------------
    Description: 
When enabled spark.sql.hive.metastorePartitionPruning, the getPartitionsByFilter is used

For a table partitioned by p1 and p2, when triggered hc.sql("select col.... from tabl1 where p1='p1V' and p2= 'p2V' ")

The HiveShim identifies the Predicates and ConvertFilters returns p1='p1V' and col2= 'p2V' .

On these cases the result is not returned. The number of returned rows is always zero. 

However, filter on a single column always works. Probalble  it doesn't come through this route

  was:
When enabled spark.sql.hive.metastorePartitionPruning, the getPartitionsByFilter is used

For a table partitioned by p1 and p2, when triggered hc.sql("select col.... from tabl1 where p1='p1V' and col2= 'p2V' ")

The HiveShim identifies the Predicates and ConvertFilters returns p1='p1V' and col2= 'p2V' .

On these cases the result is not returned. The number of returned rows is always zero. 

However, filter on a single column always works. Probalble  it doesn't come through this route


> getPartitionsByFilter doesnt handle predicates on all / multiple Partition Columns
> ----------------------------------------------------------------------------------
>
>                 Key: SPARK-12313
>                 URL: https://issues.apache.org/jira/browse/SPARK-12313
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.5.1
>            Reporter: Gobinathan SP
>            Priority: Minor
>
> When enabled spark.sql.hive.metastorePartitionPruning, the getPartitionsByFilter is used
> For a table partitioned by p1 and p2, when triggered hc.sql("select col.... from tabl1 where p1='p1V' and p2= 'p2V' ")
> The HiveShim identifies the Predicates and ConvertFilters returns p1='p1V' and col2= 'p2V' .
> On these cases the result is not returned. The number of returned rows is always zero. 
> However, filter on a single column always works. Probalble  it doesn't come through this route



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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