GitHub user dongjoon-hyun opened a pull request:

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

    [SPARK-25893][SQL] Show a directional error message for unsupported Hive 
Metastore versions

    ## What changes were proposed in this pull request?
    
    When `spark.sql.hive.metastore.version` is misconfigured, we had better 
give a directional error message.
    
    **BEFORE**
    ```scala
    scala> sql("show databases").show
    scala.MatchError: 2.4 (of class java.lang.String)
    ```
    
    **AFTER**
    ```scala
    scala> sql("show databases").show
    java.lang.UnsupportedOperationException: Unsupported Hive Metastore version 
(2.4). Please set spark.sql.hive.metastore.version with a valid version.
    ```
    
    ## How was this patch tested?
    
    Manual.

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

    $ git pull https://github.com/dongjoon-hyun/spark SPARK-25893

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

    https://github.com/apache/spark/pull/22902.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 #22902
    
----
commit b95a0d44bd459755e1050d1e0d66a679dabaf24b
Author: Dongjoon Hyun <dongjoon@...>
Date:   2018-10-31T09:18:59Z

    [SPARK-25893][SQL] Show a directional error message for unsupported Hive 
Metastore versions

----


---

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

Reply via email to