You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running Spark SQL tests with native_datafusion scan, tests that expect errors for duplicate or ambiguous fields in case-insensitive mode fail because DataFusion's Parquet reader doesn't enforce Spark's case-sensitivity validation rules.
Affected Tests
Spark native readers should respect spark.sql.caseSensitive (FileBasedDataSourceSuite)
Writes a Parquet file with columns A, b, B, then reads with caseSensitive=false. Spark expects a SparkException when selecting b (ambiguous between b and B), but native_datafusion reads without error.
SPARK-25207: exception when duplicate fields in case-insensitive mode (ParquetFilterSuite, V1 and V2)
Writes Parquet with columns A, B, b, then reads with caseSensitive=false. Spark expects a SparkException with cause RuntimeException containing Found duplicate field(s) "B": [B, b]. The native reader either doesn't detect the duplicate, or wraps the error with a different exception type/cause than expected.
Context
PR #3687 added a fallback from native_datafusion for duplicate fields in case-insensitive mode, avoiding the test failures by falling back to the Spark reader. These tests remain ignored because the native reader itself doesn't implement the validation.
Activity
fix: replace all apache#3311 references with specific issues in 3.4.3…
fix: replace all apache#3311 references with specific issues in 4.0.1…
fix: replace all apache#3311 references with specific issues in 3.5.8…
fix: replace all #3311 references with specific issues in 3.5.8 diff (#…
vaibhawvipul commentedon Mar 27, 2026
take
vaibhawvipul commentedon Mar 27, 2026
I would love to pick it up, if no one else is working on it.
fix: detect duplicate fields in case-insensitive mode in native_dataf…
fix: update Spark 4.0.1 diff for duplicate field detection in case-in…
fix: update Spark 3.4.3 and 3.5.8 diffs for duplicate field detection…