haohuaijin opened a new pull request, #24669: URL: https://github.com/apache/datafusion/pull/24669
## Which issue does this PR close? - Related to #23494. ## Rationale for this change `AnalyzeExec::metric_types` was lost during protobuf round-trips, causing non-default selections such as summary-only metrics to reset to `[Summary, Dev]`. ## What changes are included in this PR? - Serialize and deserialize `AnalyzeExec::metric_types`. - Preserve compatibility with older protobuf messages. - Distinguish an absent field from an explicitly empty metric type list. - Add regression tests for summary, dev, empty, and legacy states. ## Are these changes tested? Yes. - Relevant `datafusion-proto` integration tests - Clippy for the affected crates - Formatting and diff checks ## Are there any user-facing changes? Yes. `EXPLAIN ANALYZE` metric type selections now survive physical-plan protobuf serialization. There are no public Rust API changes. -- 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]
