Skip to content

Commit 536ac41

Browse files
committed
Sets hive.metastore.integral.jdo.pushdown to true to workaround test failures caused by in #7421
1 parent 5599cc4 commit 536ac41

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/test/TestHive.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import java.io.File
2121
import java.util.{Set => JavaSet}
2222

2323
import org.apache.hadoop.hive.conf.HiveConf
24+
import org.apache.hadoop.hive.conf.HiveConf.ConfVars
2425
import org.apache.hadoop.hive.ql.exec.FunctionRegistry
2526
import org.apache.hadoop.hive.ql.io.avro.{AvroContainerInputFormat, AvroContainerOutputFormat}
2627
import org.apache.hadoop.hive.ql.metadata.Table
@@ -87,7 +88,9 @@ class TestHiveContext(sc: SparkContext) extends HiveContext(sc) {
8788

8889
/** Sets up the system initially or after a RESET command */
8990
protected override def configure(): Map[String, String] =
90-
temporaryConfig ++ Map("hive.metastore.warehouse.dir" -> warehousePath.toString)
91+
temporaryConfig ++ Map(
92+
ConfVars.METASTOREWAREHOUSE.varname -> warehousePath.toString,
93+
ConfVars.METASTORE_INTEGER_JDO_PUSHDOWN.varname -> "true")
9194

9295
val testTempDir = Utils.createTempDir()
9396

0 commit comments

Comments
 (0)