rgehan opened a new pull request, #18352: URL: https://github.com/apache/datafusion/pull/18352
## Which issue does this PR close? None, but relates to issue #9898 ## Rationale for this change N/A ## What changes are included in this PR? This PR adds reproducer tests demonstrating issues with suboptimal optimizations performed on plans that mix pre-sorted parquets and `SortExec` under an UNION. Two sets of tests included: - Unit tests in `datafusion/core/tests/physical_optimizer/enforce_sorting.rs` - E2E-ish tests in `datafusion/core/tests/dataframe/mod.rs`, starting from logical plans simulating our use-case ## Are these changes tested? N/A ## Are there any user-facing changes? N/A -- 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]
