Repository navigation
Commit a021bb4
authored
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 9e36496 commit a021bb4
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1573 | 1573 | | |
1574 | 1574 | | |
1575 | 1575 | | |
1576 | | - | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
1577 | 1583 | | |
1578 | 1584 | | |
1579 | 1585 | | |
| |||
0 commit comments