lyne7-sc opened a new pull request, #2464: URL: https://github.com/apache/auron/pull/2464
# Which issue does this PR close? Closes #2463 # Rationale for this change When all output columns are sort keys, the native sorter stores the sort keys separately and creates a zero-column data batch. For Top-K queries, the sorted indices are limited before this batch is created, but the batch currently retains the original input row count. This mismatch can cause the merge cursor to read past the retained sort-key rows. # What changes are included in this PR? - Use the number of retained sorted indices as the row count of the zero-column batch. # Are there any user-facing changes? Bug fix only. # How was this patch tested? Added a regression test to AuronExecSuite. # Was this patch authored or co-authored using generative AI tooling? - [x] Yes - [ ] No If yes, include: `Generated-by: GPT-5` ASF guidance: https://www.apache.org/legal/generative-tooling.html -- 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]
