Repository navigation
Commit bb32213
committed
fix order by key topn slow since read unecessary data (apache#1197)
since key is already sorted and topn_next only need first N rows from each segment,
but runtime predicate will filter some rows and read more than N rows.
should add add for order by none-key column, since none-key column is not sorted and
all rows should be read, so runtime predicate will reduce rows for topn node1 parent fc2a536 commit bb32213
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
972 | | - | |
973 | | - | |
974 | | - | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
975 | 981 | | |
976 | 982 | | |
977 | 983 | | |
| |||
0 commit comments