yaooqinn commented on code in PR #53286:
URL: https://github.com/apache/spark/pull/53286#discussion_r2588847812
##########
sql/hive/src/test/scala/org/apache/spark/sql/hive/client/HiveClientSuite.scala:
##########
@@ -609,6 +609,16 @@ class HiveClientSuite(version: String) extends
HiveVersionSuite(version) {
}
}
+ test("read table written by Hive") {
+ // Hive 3.0 and 3.1 don't work with JDK 11+ (HIVE-22097)
+ if (ver != hive.v3_0 && ver != hive.v3_1) {
+ withTable("test_tbl") {
+ client.runSqlHive("CREATE TABLE test_tbl AS SELECT 1")
+ assert(versionSpark.sql("SELECT * from test_tbl").collect() ===
Array(Row(1)))
Review Comment:
nit: we can shorten it w/ checkAnswer
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]