Github user MaxGekk commented on the issue: https://github.com/apache/spark/pull/20894 Actually the `spark.sql.caseSensitive` flag is checked during schema inferring : https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/CSVDataSource.scala#L162 I think we have to respect it when we check header against inferred schema
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org