wangyum commented on a change in pull request #25729:
[SPARK-29022][SQL][test-hadoop3.2][test-java11] Fix spark 'add jar',
CliSessionState's hiveConf 's classLoader ClassNotFound
URL: https://github.com/apache/spark/pull/25729#discussion_r325008153
##########
File path:
sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/CliSuite.scala
##########
@@ -332,4 +360,18 @@ class CliSuite extends SparkFunSuite with
BeforeAndAfterAll with Logging {
"SELECT concat_ws(',', 'First', example_max(1234321), 'Third');" ->
"First,1234321,Third"
)
}
+
+ test("SPARK-29022 Use add jar class as serde") {
+ val jarFile = HiveTestUtils.getHiveHcatalogCoreJar.getCanonicalPath
+
+ runCliWithin(3.minute)(
+ s"ADD JAR ${jarFile};" -> "",
+ """CREATE TABLE addJar(key string)
+ |ROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe';
+ """.stripMargin -> "",
+ "INSERT OVERWRITE TABLE addJar select 1;" -> "",
Review comment:
Please add more characters to make test stable. See
[SPARK-28988](https://issues.apache.org/jira/browse/SPARK-28988) for more
details.
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]