zhangxinyao88 opened a new pull request, #24642: URL: https://github.com/apache/datafusion/pull/24642
## Which issue does this PR close? - Part of #17498. ## Rationale for this change `datafusion.execution.parquet.statistics_enabled` accepts arbitrary strings. Invalid values silently fall back to the Parquet writer default instead of failing when set. ## What changes are included in this PR? This adds a typed config enum for `none`, `chunk`, and `page`. It validates values at config and protobuf boundaries and passes the validated value to the Parquet writer. ## Are these changes tested? Yes. Unit, protobuf round-trip, and SQL logic tests were added. The full lint and extended workspace test suites pass. ## Are there any user-facing changes? Invalid values now fail at `SET` time. Valid values remain case-insensitive and are displayed in lowercase. This changes `ParquetOptions.statistics_enabled` from `Option<String>` to `Option<DFParquetStatistics>`, so the PR may need the `api change` label. -- 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]
