diff options
author | gatorsmile <gatorsmile@gmail.com> | 2017-01-22 20:37:37 -0800 |
---|---|---|
committer | gatorsmile <gatorsmile@gmail.com> | 2017-01-22 20:37:37 -0800 |
commit | 772035e771a75593f031a8e78080bb58b8218e04 (patch) | |
tree | 8f8c56f1b57c594624f2d372cd18a9df133c2731 /sql/hive/src/test/scala/org | |
parent | 74e65cb74a8c023870a2ac9b1216c9d89c02f014 (diff) | |
download | spark-772035e771a75593f031a8e78080bb58b8218e04.tar.gz spark-772035e771a75593f031a8e78080bb58b8218e04.tar.bz2 spark-772035e771a75593f031a8e78080bb58b8218e04.zip |
[SPARK-19229][SQL] Disallow Creating Hive Source Tables when Hive Support is Not Enabled
### What changes were proposed in this pull request?
It is weird to create Hive source tables when using InMemoryCatalog. We are unable to operate it. This PR is to block users to create Hive source tables.
### How was this patch tested?
Fixed the test cases
Author: gatorsmile <gatorsmile@gmail.com>
Closes #16587 from gatorsmile/blockHiveTable.
Diffstat (limited to 'sql/hive/src/test/scala/org')
-rw-r--r-- | sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveExternalCatalogSuite.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveExternalCatalogSuite.scala b/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveExternalCatalogSuite.scala index 2f02bb5d3b..a60c210b04 100644 --- a/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveExternalCatalogSuite.scala +++ b/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveExternalCatalogSuite.scala @@ -41,6 +41,7 @@ class HiveExternalCatalogSuite extends ExternalCatalogSuite { override val tableInputFormat: String = "org.apache.hadoop.mapred.SequenceFileInputFormat" override val tableOutputFormat: String = "org.apache.hadoop.mapred.SequenceFileOutputFormat" override def newEmptyCatalog(): ExternalCatalog = externalCatalog + override val defaultProvider: String = "hive" } protected override def resetState(): Unit = { |