andygrove opened a new pull request, #27754: URL: https://github.com/apache/datafusion/pull/27754
## Which issue does this PR close? - Backport of #27067 to `branch-56`. - Closes #27065 for the 56 line. ## Rationale for this change #25193, which is in 56.0.0, made the Parquet file-schema coercion recurse into nested types. So a nested BINARY field that the table schema declares as a string is decoded straight into `Utf8`. The reader validates UTF-8 only for columns with the `UTF8` annotation, so an invalid value becomes an unvalidated `StringArray`: a panic in debug builds and unsound data in release builds. #27067 fixed this on `main`. DataFusion Comet needs it in a 56.0.x release before it can upgrade (apache/datafusion-comet#7249). ## What changes are included in this PR? A cherry-pick of #27067 (`9232c06`) with `-x`. It applied cleanly. ## What is the testing strategy for this PR? The `schema_coercion` unit tests in `datafusion-datasource-parquet` and `parquet.slt` pass on this branch. ## Are there any user-facing changes? Nested BINARY fields are no longer coerced to strings by the file-schema coercion, as on `main`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
