Repository navigation
Commit 32a07b7
committed
[fix](fe) Normalize stream scans before MV pre-rewrite recording
A stream scan inside a reused CTE could still be recorded as LogicalOlapTableStreamScan
in tmpPlanForMvRewrite because the MV pre-rewrite CTE job list missed
NormalizeOlapTableStreamScan. That recorded temp plan could then be optimized as a
plain olap scan in pre-MV rewrite.
Key changes:
- add NormalizeOlapTableStreamScan to the MV pre-rewrite CTE child rewrite jobs
- add a FE UT that inspects tmpPlanForMvRewrite and asserts stream scans are normalized
- drop the attempted regression case because MV chosen/output cannot stably prove this internal temp-plan state
Unit Test:
- run-fe-ut.sh --run org.apache.doris.nereids.trees.plans.ExplainTableStreamPlanTest1 parent 66e7fe8 commit 32a07b7
2 files changed
Lines changed: 45 additions & 0 deletions
File tree
- fe/fe-core/src
- main/java/org/apache/doris/nereids/jobs/executor
- test/java/org/apache/doris/nereids/trees/plans
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| 410 | + | |
410 | 411 | | |
411 | 412 | | |
412 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
499 | 500 | | |
500 | 501 | | |
501 | 502 | | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
502 | 534 | | |
503 | 535 | | |
504 | 536 | | |
| |||
545 | 577 | | |
546 | 578 | | |
547 | 579 | | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
548 | 592 | | |
549 | 593 | | |
550 | 594 | | |
| |||
0 commit comments