GitHub user liancheng opened a pull request:

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

    [SPARK-10092] [SQL] Backports #8324 to branch-1.5

    

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

    $ git pull https://github.com/liancheng/spark spark-10092/for-branch-1.5

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

    https://github.com/apache/spark/pull/8336.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 #8336
    
----
commit 42e00029516210bd3a9073dc8761cb623256f062
Author: Yin Huai <[email protected]>
Date:   2015-08-20T07:30:31Z

    [SPARK-10092] [SQL] Multi-DB support follow up.
    
    https://issues.apache.org/jira/browse/SPARK-10092
    
    This pr is a follow-up one for Multi-DB support. It has the following 
changes:
    
    * `HiveContext.refreshTable` now accepts `dbName.tableName`.
    * `HiveContext.analyze` now accepts `dbName.tableName`.
    * `CreateTableUsing`, `CreateTableUsingAsSelect`, `CreateTempTableUsing`, 
`CreateTempTableUsingAsSelect`, `CreateMetastoreDataSource`, and 
`CreateMetastoreDataSourceAsSelect` all take `TableIdentifier` instead of the 
string representation of table name.
    * When you call `saveAsTable` with a specified database, the data will be 
saved to the correct location.
    * Explicitly do not allow users to create a temporary with a specified 
database name (users cannot do it before).
    * When we save table to metastore, we also check if db name and table name 
can be accepted by hive (using `MetaStoreUtils.validateName`).
    
    Author: Yin Huai <[email protected]>
    
    Closes #8324 from yhuai/saveAsTableDB.

----


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