GitHub user tdas opened a pull request:

    https://github.com/apache/spark/pull/13022

    [SPARK-15248][SQL] Make MetastoreFileCatalog consider directories from 
partition specs of a partitioned metastore table

    ## What changes were proposed in this pull request?
    
    Table partitions can be added with locations different from default 
warehouse location of a hive table.
    `CREATE TABLE parquetTable (a int) PARTITIONED BY (b int) STORED AS parquet 
`
    `ALTER TABLE parquetTable ADD PARTITION (b=1) LOCATION '/path/1'`
    Querying such a table throws error as the MetastoreFileCatalog does not 
list the added partition directory, it only lists the default base location.
    
    The solution in this PR to get the paths to list from the partition spec. 
This is okay because this FileCatalog is only used for partitioned tables.
    
    ## How was this patch tested?
    
    unit tests.
    
    (If this patch involves UI changes, please attach a screenshot; otherwise, 
remove this)
    
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tdas/spark SPARK-15248

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/13022.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #13022
    
----
commit 29148c91c9be3a43a19e9cbaed2d5350256b9d24
Author: Tathagata Das <[email protected]>
Date:   2016-05-10T08:54:10Z

    SPARK-15248

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to