Commit 2df3e9a
# Which issue does this PR close?
Closes #2482
# Rationale for this change
The primitive sort fast path changed `sorted_indices` from `Vec<u32>` to
`Option<Vec<u32>>`, but the zero-column batch path still calls `len()`
as if it were a `Vec`.
This causes `datafusion-ext-plans` to fail compilation.
# What changes are included in this PR?
Use the sorted indices length when present, and fall back to the number
of key rows for the primitive fast path.
# Are there any user-facing changes?
No.
# How was this patch tested?
UTs passed.
# Was this patch authored or co-authored using generative AI tooling?
- [x] Yes
- [ ] No
If yes, include: `Generated-by: <tool name and version>`
ASF guidance: https://www.apache.org/legal/generative-tooling.html
Co-authored-by: Shilun Fan <slfan1989@apache.org>
Signed-off-by: Shilun Fan <slfan1989@apache.org>
1 parent 0ef91f7 commit 2df3e9a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
725 | | - | |
| 725 | + | |
726 | 726 | | |
727 | 727 | | |
728 | 728 | | |
| |||
0 commit comments