[HUDI-4309] Spark3.2 custom parser should not throw exception (#5947)
This commit is contained in:
@@ -238,4 +238,16 @@ class TestTimeTravelTable extends HoodieSparkSqlTestBase {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
test("Test Unsupported syntax can be parsed") {
|
||||
if (HoodieSparkUtils.gteqSpark3_2) {
|
||||
checkAnswer("select 1 distribute by 1")(Seq(1))
|
||||
withTempDir { dir =>
|
||||
val path = dir.toURI.getPath
|
||||
spark.sql(s"insert overwrite local directory '$path' using parquet select 1")
|
||||
// Requires enable hive support, so didn't test it
|
||||
// spark.sql(s"insert overwrite local directory '$path' stored as orc select 1")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user