zhuqi-lucas opened a new pull request, #27784:
URL: https://github.com/apache/datafusion/pull/27784

   ## Which issue does this PR close?
   
   - Backport of #26736 to `branch-56`, for #24463.
   - Closes #26739 for the 56 line.
   
   ## Rationale for this change
   
   On 56.0.0, an `ORDER BY ... LIMIT` query can fail plan validation with a 
`SinglePartition` distribution error when a source accepts an exact sort 
pushdown but cannot apply the limit itself: the sort is removed and replaced by 
a `GlobalLimitExec` over several partitions. #26736 fixed this on `main`.
   
   ## What changes are included in this PR?
   
   A cherry-pick of #26736 (`8ad8490`) with `-x`. It applied cleanly.
   
   ## What is the testing strategy for this PR?
   
   The regression tests from #26736 (`exact_sort_pushdown` test context and its 
sqllogictest) pass on this branch, along with `sort_pushdown*.slt` and 
`limit.slt`.
   
   ## Are there any user-facing changes?
   
   Affected queries run instead of failing plan validation. No public 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]

Reply via email to