GitHub user windpiger opened a pull request:

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

    [SPARK-19763][SQL]qualified external datasource table location stored in 
catalog

    ## What changes were proposed in this pull request?
    
    If we create a external datasource table with a non-qualified location , we 
should qualified it to store in catalog.
    
    ```
    CREATE TABLE t(a string)
    USING parquet
    LOCATION '/path/xx'
    
    
    CREATE TABLE t1(a string, b string)
    USING parquet
    PARTITIONED BY(b)
    LOCATION '/path/xx'
    ```
    
    when we get the table from catalog, the location should be qualified, 
e.g.'file:/path/xxx' 
    ## How was this patch tested?
    unit test added

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

    $ git pull https://github.com/windpiger/spark tablepathQualified

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

    https://github.com/apache/spark/pull/17095.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 #17095
    
----
commit 570ce24bee80dad5b2e897db34d04f3752139555
Author: windpiger <[email protected]>
Date:   2017-02-28T03:49:55Z

    [SPARK-19763][SQL]qualified external datasource table location stored in 
catalog

----


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