This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new e22e1acabc9b [SPARK-45975][TESTS] Reset storeAssignmentPolicy to
original
e22e1acabc9b is described below
commit e22e1acabc9b9e904ac9ce59c97745c9270e60d1
Author: wforget <[email protected]>
AuthorDate: Fri Nov 17 09:45:23 2023 -0800
[SPARK-45975][TESTS] Reset storeAssignmentPolicy to original
### What changes were proposed in this pull request?
Reset storeAssignmentPolicy to original in HiveCompatibilitySuite.
### Why are the changes needed?
STORE_ASSIGNMENT_POLICY was not reset in HiveCompatibilitySuite, causing
subsequent test cases to fail.
Details:
https://github.com/wForget/spark/actions/runs/6902668865/job/18779862759
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #43870 from wForget/SPARK-45975.
Authored-by: wforget <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
.../org/apache/spark/sql/hive/execution/HiveCompatibilitySuite.scala | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/sql/hive/compatibility/src/test/scala/org/apache/spark/sql/hive/execution/HiveCompatibilitySuite.scala
b/sql/hive/compatibility/src/test/scala/org/apache/spark/sql/hive/execution/HiveCompatibilitySuite.scala
index a65f405d6aef..539a0c12c05a 100644
---
a/sql/hive/compatibility/src/test/scala/org/apache/spark/sql/hive/execution/HiveCompatibilitySuite.scala
+++
b/sql/hive/compatibility/src/test/scala/org/apache/spark/sql/hive/execution/HiveCompatibilitySuite.scala
@@ -42,6 +42,8 @@ class HiveCompatibilitySuite extends HiveQueryFileTest with
BeforeAndAfter {
private val originalCrossJoinEnabled = TestHive.conf.crossJoinEnabled
private val originalSessionLocalTimeZone = TestHive.conf.sessionLocalTimeZone
private val originalAnsiMode = TestHive.conf.getConf(SQLConf.ANSI_ENABLED)
+ private val originalStoreAssignmentPolicy =
+ TestHive.conf.getConf(SQLConf.STORE_ASSIGNMENT_POLICY)
private val originalCreateHiveTable =
TestHive.conf.getConf(SQLConf.LEGACY_CREATE_HIVE_TABLE_BY_DEFAULT)
@@ -77,6 +79,7 @@ class HiveCompatibilitySuite extends HiveQueryFileTest with
BeforeAndAfter {
TestHive.setConf(SQLConf.CROSS_JOINS_ENABLED, originalCrossJoinEnabled)
TestHive.setConf(SQLConf.SESSION_LOCAL_TIMEZONE,
originalSessionLocalTimeZone)
TestHive.setConf(SQLConf.ANSI_ENABLED, originalAnsiMode)
+ TestHive.setConf(SQLConf.STORE_ASSIGNMENT_POLICY,
originalStoreAssignmentPolicy)
TestHive.setConf(SQLConf.LEGACY_CREATE_HIVE_TABLE_BY_DEFAULT,
originalCreateHiveTable)
// For debugging dump some statistics about how much time was spent in
various optimizer rules
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]