Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-25893][SQL] Show a directional error message for unsupported H…
…ive 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. Closes #22902 from dongjoon-hyun/SPARK-25893. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
- Loading branch information