-
Notifications
You must be signed in to change notification settings - Fork 28k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-28703][SQL][TEST] Skip HiveExternalCatalogVersionsSuite and 3 tests in HiveSparkSubmitSuite at JDK9+ #25426
Conversation
test("backward compatibility") { | ||
// TODO Test backward compatibility on JAVA_9 once we have a version supports JAVA_9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please file a JIRA and make this IDed TODO, @wangyum .
Otherwise, it's very difficult for the other contributors to pick up this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
SPARK-28704: Test backward compatibility on JDK9+ once we have a version supports JDK9+
@@ -163,6 +165,7 @@ class HiveSparkSubmitSuite | |||
} | |||
|
|||
test("SPARK-9757 Persist Parquet relation with decimal column") { | |||
assume(!SystemUtils.isJavaVersionAtLeast(JavaVersion.JAVA_9)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have spark.sql.hive.metastore.version=0.12
in this test case. Could you add more explanation about this into the PR description?
spark.sql.hive.metastore.version of these tests is lower than 2.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spark/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala
Lines 674 to 685 in d7b7a1a
object SPARK_9757 extends QueryTest { | |
import org.apache.spark.sql.functions._ | |
protected var spark: SparkSession = _ | |
def main(args: Array[String]): Unit = { | |
TestUtils.configTestLog4j("INFO") | |
val hiveWarehouseLocation = Utils.createTempDir() | |
val sparkContext = new SparkContext( | |
new SparkConf() | |
.set(HiveUtils.HIVE_METASTORE_VERSION.key, "0.13.1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Got it!
LGTM except two comments, @wangyum . |
…ersion supports JDK9+
@wangyum . This PR works correctly, but the some of the remaining test cases in
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM. This is tested locally with both JDK8/JDK11.
As the PR description says, this PR skips old metastore-related test cases. Although HiveSparkSubmitSuite
still fail on JDK9+, this completes the scope and the goal of this PR.
Thank you, @wangyum .
Merged to master.
Test build #109009 has finished for PR 25426 at commit
|
Thank you @dongjoon-hyun We need another fix to fix the classLoader. After that:
|
Test build #109010 has finished for PR 25426 at commit
|
What changes were proposed in this pull request?
This PR skip more test when testing with
JAVA_9
or later:Skip
HiveExternalCatalogVersionsSuite
when testing withJAVA_9
or later because our previous version does not supportJAVA_9
or later.Skip 3 tests in
HiveSparkSubmitSuite
because thespark.sql.hive.metastore.version
of these tests is lower than2.0
, however Datanucleus 3.x seem does not supportJAVA_9
or later. Hive upgrade Datanucleus to 4.x from Hive 2.0(HIVE-6113):Please note that this exclude only the tests related to the old metastore library, some other tests of
HiveSparkSubmitSuite
still fail on JDK9+.How was this patch tested?
manual tests:
Test with JDK 11: