-
- Downloads
[SPARK-15236][SQL][SPARK SHELL] Add spark-defaults property to switch to use InMemoryCatalog
## What changes were proposed in this pull request? This PR change REPL/Main to check this property `spark.sql.catalogImplementation` to decide if `enableHiveSupport `should be called. If `spark.sql.catalogImplementation` is set to `hive`, and hive classes are built, Spark will use Hive support. Other wise, Spark will create a SparkSession with in-memory catalog support. ## How was this patch tested? Run the REPL component test. Author: xin Wu <xinwu@us.ibm.com> Author: Xin Wu <xinwu@us.ibm.com> Closes #13088 from xwu0226/SPARK-15236.
Showing
- repl/scala-2.11/src/main/scala/org/apache/spark/repl/Main.scala 17 additions, 3 deletions...cala-2.11/src/main/scala/org/apache/spark/repl/Main.scala
- repl/scala-2.11/src/test/scala/org/apache/spark/repl/ReplSuite.scala 49 additions, 1 deletion...2.11/src/test/scala/org/apache/spark/repl/ReplSuite.scala
Loading
Please register or sign in to comment