Github user MaxGekk commented on a diff in the pull request:
https://github.com/apache/spark/pull/20894#discussion_r176949956
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/CSVOptions.scala
---
@@ -150,6 +150,12 @@ class CSVOptions(
val isCommentSet = this.comment != '\u0000'
+ /**
+ * The option enables checks of headers in csv files. In particular,
column names
+ * are matched to field names of provided schema.
+ */
+ val checkHeader = getBool("checkHeader", true)
--- End diff --
Yes, it will break apps that declare explicitly schemas with field names
different from header's column names like for example in a test of the PR that
I modified. I will add info about the option to exception's message and update
the migration guide.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]