Repository navigation
Commit 428d474
[fix](stream) Fix stream scan partition prune state propagation (apache#65657)
### What problem does this PR solve?
Related Issue: close apache#65654
`LogicalOlapTableStreamScan.withSelectedPartitionIds(List<Long>,
boolean)` diverged from `LogicalOlapScan` and changed the meaning of the
second parameter. In `LogicalOlapScan`, the second parameter represents
`hasPartitionPredicate`, while the rebuilt scan is always marked as
partition-pruned. The stream scan override treated that second parameter
as `isPartitionPruned`, which let partition pruning rebuild a stream
scan that still looked unpruned and could be matched again by the same
rewrite rule.
This PR keeps the stream-scan override consistent with
`LogicalOlapScan`: the second parameter remains `hasPartitionPredicate`,
and the rebuilt `LogicalOlapTableStreamScan` is marked as already
partition-pruned.1 parent ab324bb commit 428d474
2 files changed
Lines changed: 33 additions & 2 deletions
File tree
- fe/fe-core/src
- main/java/org/apache/doris/nereids/trees/plans/logical
- test/java/org/apache/doris/nereids/trees/plans
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
503 | 521 | | |
504 | 522 | | |
505 | 523 | | |
| |||
577 | 595 | | |
578 | 596 | | |
579 | 597 | | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
580 | 611 | | |
581 | 612 | | |
582 | 613 | | |
| |||
0 commit comments