xiaonanyang-db commented on code in PR #38113:
URL: https://github.com/apache/spark/pull/38113#discussion_r989548111
##########
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/csv/CSVSuite.scala:
##########
@@ -3080,6 +3081,23 @@ abstract class CSVSuite
}
}
}
+
+ test("SPARK-40667: check the number of valid CSV option names") {
+ assert(CSVOptions.getAllValidOptionNames.size == 38)
+ }
+
+ test("SPARK-40667: validate a given option name") {
+ assert(CSVOptions.isValidOptionName("inferSchema"))
+ assert(CSVOptions.isValidOptionName("prefersDate"))
+ assert(!CSVOptions.isValidOptionName("inferSchemas"))
+ assert(!CSVOptions.isValidOptionName("randomName"))
Review Comment:
There is a unit test below regarding alternative options.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]