GitHub user gatorsmile opened a pull request:

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

    [SPARK-14920] [SQL] Location should not be Specified in Creating 
Non-external Table

    #### What changes were proposed in this pull request?
    When creating non-external tables, we should not specify the location. 
Below is the warning message we got.
    ```
    09:58:00.952 WARN org.apache.hadoop.hive.metastore.HiveMetaStore: Location: 
file:/private/var/folders/4b/sgmfldk15js406vk7lw5llzw0000gn/T/spark-4bca5aef-13b6-4c58-96aa-6cf76d8d9131/metastore/testdb8156.db/ttt3
 specified for non-external table:ttt3
    ```
    This PR is to avoid setting the default location when the path is not 
specified. 
    #### How was this patch tested?
    The existing test cases


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

    $ git pull https://github.com/gatorsmile/spark nonExternalTableNoLocation

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

    https://github.com/apache/spark/pull/12704.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 #12704
    
----
commit 41cfdb40b901616a5154ef8527a0d4458fd689f5
Author: gatorsmile <[email protected]>
Date:   2016-04-26T17:26:41Z

    initial fix.

----


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