Commit 9d6b67b
committed
fix: stats init only safe for sorted (non-overlapping) RGs
The max(min)/min(max) algorithm is only a valid threshold bound when
RGs are non-overlapping (guaranteed by sorted data with sort pushdown).
For overlapping RGs, top-K values may span multiple RGs and the
threshold can over-prune, producing fewer results than expected.
Keep stats init restricted to sort pushdown path. Keep fuzz test
tiebreaker fix (independently correct).1 parent 80badc0 commit 9d6b67b
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
834 | 834 | | |
835 | 835 | | |
836 | 836 | | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | | - | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
844 | 840 | | |
845 | 841 | | |
846 | 842 | | |
| |||
969 | 965 | | |
970 | 966 | | |
971 | 967 | | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
972 | 974 | | |
973 | 975 | | |
974 | 976 | | |
| |||
0 commit comments