[fix](Nereids) topn two phase read do not process child correct (#19136)

This commit is contained in:
morrySnow
2023-04-27 13:23:15 +08:00
committed by GitHub
parent 30b737059c
commit 9de2ec5aa5

View File

@ -92,6 +92,7 @@ public class TwoPhaseReadOpt extends PlanPostProcessor {
PhysicalOlapScan olapScan;
PhysicalProject<Plan> project = null;
PhysicalFilter<Plan> filter = null;
child = localTopN.child();
while (child instanceof Project || child instanceof Filter) {
if (child instanceof Filter) {
filter = (PhysicalFilter<Plan>) child;