HyukjinKwon commented on a change in pull request #30843:
URL: https://github.com/apache/spark/pull/30843#discussion_r546197528



##########
File path: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSQLInsertTestSuite.scala
##########
@@ -21,5 +21,23 @@ import org.apache.spark.sql.SQLInsertTestSuite
 import org.apache.spark.sql.hive.test.TestHiveSingleton
 
 class HiveSQLInsertTestSuite extends SQLInsertTestSuite with TestHiveSingleton 
{
+
+  private var originalPartitionMode = ""

Review comment:
       You can also do something like:
   
   ```scala
   Option(spark.conf.get("hive.exec.dynamic.partition.mode", null))
   ```
   
   too. and later:
   
   ```scala
   originalPartitionMode
     .map(v => spark.conf.set("hive.exec.dynamic.partition.mode", v)
     .getOrElse(spark.conf.unset("hive.exec.dynamic.partition.mode"))
   ```
   
   up to you




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to