You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "sunchao (via GitHub)" <gi...@apache.org> on 2026/03/16 17:50:50 UTC

[PR] Fix ignoreCorruptFiles to only skip Parquet CRC corruption errors [spark]

sunchao opened a new pull request, #54826:
URL: https://github.com/apache/spark/pull/54826

   ### Summary
   - Restrict corrupt-file skipping to a single Parquet case: `ParquetDecodingException` with CRC checksum verification failure.
   - Apply the same strict check across V1/V2 file read paths and Parquet footer/schema inference paths.
   - Prevent non-Parquet formats (for example ORC/CSV/text) from being silently ignored by `ignoreCorruptFiles` in these scenarios.
   - Update and add tests to reflect the stricter behavior, including a dedicated `DataSourceUtils` classifier suite.
   
   ### Testing
   - `build/sbt "sql/testOnly org.apache.spark.sql.execution.datasources.DataSourceUtilsSuite"`
   - `build/sbt "sql/testOnly org.apache.spark.sql.execution.datasources.parquet.ParquetV1QuerySuite -- -z \"Enabling/disabling ignoreCorruptFiles\""`
   - `build/sbt "sql/testOnly org.apache.spark.sql.execution.datasources.parquet.ParquetV2QuerySuite -- -z \"Enabling/disabling ignoreCorruptFiles\""`
   - `build/sbt "sql/testOnly org.apache.spark.sql.execution.datasources.parquet.ParquetFileFormatV1Suite -- -z \"read parquet footers in parallel\""`
   - `build/sbt "sql/testOnly org.apache.spark.sql.execution.datasources.parquet.ParquetFileFormatV2Suite -- -z \"read parquet footers in parallel\""`
   - `build/sbt "sql/testOnly org.apache.spark.sql.execution.datasources.orc.OrcV1QuerySuite -- -z \"Enabling/disabling ignoreCorruptFiles\""`
   - `build/sbt "sql/testOnly org.apache.spark.sql.execution.datasources.orc.OrcV2QuerySuite -- -z \"Enabling/disabling ignoreCorruptFiles\""`
   - `build/sbt "sql/testOnly org.apache.spark.sql.execution.datasources.orc.OrcSourceV1Suite -- -z \"SPARK-11412 test schema merging with corrupt files\""`
   - `build/sbt "sql/testOnly org.apache.spark.sql.execution.datasources.orc.OrcSourceV2Suite -- -z \"SPARK-11412 test schema merging with corrupt files\""`
   - `build/sbt "sql/testOnly org.apache.spark.sql.execution.datasources.orc.OrcSourceV1Suite -- -z \"SPARK-11412 read and merge orc schemas in parallel\""`
   - `build/sbt "sql/testOnly org.apache.spark.sql.execution.datasources.orc.OrcSourceV2Suite -- -z \"SPARK-11412 read and merge orc schemas in parallel\""`
   - `build/sbt "sql/testOnly org.apache.spark.sql.execution.datasources.csv.CSVv1Suite -- -z \"Enabling/disabling ignoreCorruptFiles\""`
   - `build/sbt "sql/testOnly org.apache.spark.sql.execution.datasources.csv.CSVv2Suite -- -z \"Enabling/disabling ignoreCorruptFiles\""`
   - `build/sbt "sql/testOnly org.apache.spark.sql.execution.datasources.FileSourceStrategySuite -- -z \"spark.files.ignoreCorruptFiles should work in SQL\""`


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] Fix ignoreCorruptFiles to only skip Parquet CRC corruption errors [spark]

Posted by "sunchao (via GitHub)" <gi...@apache.org>.
sunchao closed pull request #54826: Fix ignoreCorruptFiles to only skip Parquet CRC corruption errors
URL: https://github.com/apache/spark/pull/54826


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org