[fix](nereids) add fragment id on all PhysicalRelation (#20371)
fix "cannot find fragment id for scan" exception
This commit is contained in:
@ -22,7 +22,7 @@ import org.apache.doris.nereids.trees.plans.AbstractPlan;
|
||||
import org.apache.doris.nereids.trees.plans.Plan;
|
||||
import org.apache.doris.nereids.trees.plans.physical.PhysicalDistribute;
|
||||
import org.apache.doris.nereids.trees.plans.physical.PhysicalHashJoin;
|
||||
import org.apache.doris.nereids.trees.plans.physical.PhysicalOlapScan;
|
||||
import org.apache.doris.nereids.trees.plans.physical.PhysicalRelation;
|
||||
|
||||
/**
|
||||
* generate fragment id for nereids physical plan
|
||||
@ -45,7 +45,7 @@ public class FragmentProcessor extends PlanPostProcessor {
|
||||
return join;
|
||||
}
|
||||
|
||||
public PhysicalOlapScan visitPhysicalOlapScan(PhysicalOlapScan scan, CascadesContext ctx) {
|
||||
public PhysicalRelation visitPhysicalScan(PhysicalRelation scan, CascadesContext ctx) {
|
||||
scan.setMutableState(AbstractPlan.FRAGMENT_ID, frId);
|
||||
return scan;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user