Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/20611#discussion_r202110252
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala
---
@@ -1912,11 +1912,58 @@ class SQLQuerySuite extends QueryTest with
SQLTestUtils with TestHiveSingleton {
sql("LOAD DATA LOCAL INPATH '/non-exist-folder/*part*' INTO
TABLE load_t")
}.getMessage
assert(m.contains("LOAD DATA input path does not exist"))
-
- val m2 = intercept[AnalysisException] {
- sql(s"LOAD DATA LOCAL INPATH '$path*/*part*' INTO TABLE load_t")
+ }
+ }
+ }
+ test("Support wildcard character in folderlevel for LOAD DATA LOCAL
INPATH") {
--- End diff --
Nit: space before tests
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]