Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/12412#discussion_r60512669
--- 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 --
yea it's not a big deal. I also checked the `HiveTableScanSuite`, this file
is really used for that issue. So I suggest we use another file like
`employee.dat` and add comments to explain the file schema, which is better for
review.
---
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]