Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/12412#discussion_r60509572
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveCommandSuite.scala
---
@@ -122,4 +122,123 @@ class HiveCommandSuite extends QueryTest with
SQLTestUtils with TestHiveSingleto
checkAnswer(sql("SHOW TBLPROPERTIES parquet_temp"), Nil)
}
}
+
+ test("LOAD DATA") {
+ withTable("non_part_table", "part_table") {
+ sql(
+ """
+ |CREATE TABLE non_part_table (time TIMESTAMP, id INT)
+ |ROW FORMAT DELIMITED
+ |FIELDS TERMINATED BY ','
+ |LINES TERMINATED BY '\n'
+ """.stripMargin)
+
+ val testData =
hiveContext.getHiveFile("data/files/issue-4077-data.txt").getCanonicalPath
--- End diff --
cc @yhuai should we create a new file for this test or reuse the existing
ones? and @viirya any reason why we choose this file? Looks like it was created
for another issue.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]