aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorLiang-Chi Hsieh <viirya@gmail.com>2015-01-29 15:28:22 -0800
committerMichael Armbrust <michael@databricks.com>2015-01-29 15:28:22 -0800
commitbce0ba1fbd05788f1c08549b2fd0c6a9e320a41a (patch)
tree51d311ebcb35834e280109722074109154e1b805 /sql
parent715632232d0e6c97e304686608385d3b54a4bcf6 (diff)
downloadspark-bce0ba1fbd05788f1c08549b2fd0c6a9e320a41a.tar.gz
spark-bce0ba1fbd05788f1c08549b2fd0c6a9e320a41a.tar.bz2
spark-bce0ba1fbd05788f1c08549b2fd0c6a9e320a41a.zip
[SPARK-5429][SQL] Use javaXML plan serialization for Hive golden answers on Hive 0.13.1
I found that running `HiveComparisonTest.createQueryTest` to generate Hive golden answer files on Hive 0.13.1 would throw KryoException. I am not sure if this can be reproduced by others. Since Hive 0.13.0, Kryo plan serialization is introduced to replace javaXML as default plan serialization format. This is a quick fix to set hive configuration to use javaXML serialization. Author: Liang-Chi Hsieh <viirya@gmail.com> Closes #4223 from viirya/fix_hivetest and squashes the following commits: 97a8760 [Liang-Chi Hsieh] Use javaXML plan serialization.
Diffstat (limited to 'sql')
-rw-r--r--sql/hive/src/main/scala/org/apache/spark/sql/hive/TestHive.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/TestHive.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/TestHive.scala
index 822864f8ef..7c1d1133c3 100644
--- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/TestHive.scala
+++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/TestHive.scala
@@ -68,6 +68,8 @@ class TestHiveContext(sc: SparkContext) extends HiveContext(sc) {
System.clearProperty("spark.hostPort")
CommandProcessorFactory.clean(hiveconf)
+ hiveconf.set("hive.plan.serialization.format", "javaXML")
+
lazy val warehousePath = getTempFilePath("sparkHiveWarehouse").getCanonicalPath
lazy val metastorePath = getTempFilePath("sparkHiveMetastore").getCanonicalPath