gatorsmile commented on a change in pull request #23894:
[SPARK-26990][SQL]FileIndex: use user specified field names if possible
URL: https://github.com/apache/spark/pull/23894#discussion_r260456269
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/FileIndexSuite.scala
##########
@@ -65,6 +65,21 @@ class FileIndexSuite extends SharedSQLContext {
}
}
+ test("SPARK-26990: use user specified field names if possible") {
+ withTempDir { dir =>
+ val partitionDirectory = new File(dir, "a=foo")
+ partitionDirectory.mkdir()
+ val file = new File(partitionDirectory, "text.txt")
+ stringToFile(file, "text")
+ val path = new Path(dir.getCanonicalPath)
+ val schema = StructType(Seq(StructField("A", StringType, false)))
+ withSQLConf(SQLConf.CASE_SENSITIVE.key -> "false") {
Review comment:
Also test the behavior when the conf is on.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]