GitHub user gatorsmile opened a pull request:

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

    [SPARK-17167] [SQL] Issue Exceptions when Analyze Table on In-Memory 
Cataloged Tables

    ### What changes were proposed in this pull request?
    Currently, `Analyze Table` is only used for Hive-serde tables. We should 
issue exceptions in all the other cases. When the tables are data source 
tables, we issued an exception. However, when tables are In-Memory Cataloged 
tables, we do not issue any exception.
    
    This PR is to issue an exception when the tables are in-memory cataloged. 
For example,  
    ```SQL
    CREATE TABLE tbl(a INT, b INT) USING parquet
    ```
    `tbl` is a `SimpleCatalogRelation` when the hive support is not enabled.
    
    ### How was this patch tested?
    Added two test cases. One of them is just to improve the test coverage when 
the analyzed table is data source tables.

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

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

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

    https://github.com/apache/spark/pull/14729.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 #14729
    
----
commit 1b03d32eb41c07454ae8262ba009b90a818f6000
Author: gatorsmile <gatorsm...@gmail.com>
Date:   2016-08-20T06:36:42Z

    fix.

commit a3485651983247aadcc214c9121bd89ee8ce7f06
Author: gatorsmile <gatorsm...@gmail.com>
Date:   2016-08-20T06:50:34Z

    add one more test case

commit a8dd663fc25c52cd0a2dbf0eb259f6f6c66ce55d
Author: gatorsmile <gatorsm...@gmail.com>
Date:   2016-08-20T06:50:51Z

    fix style

commit bb3fd8f3f88f651dec7d8adb5650b80336c23443
Author: gatorsmile <gatorsm...@gmail.com>
Date:   2016-08-20T07:01:14Z

    improved the test cases

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to