introduced by #38950, explain plan with sql cache will throw an exception ``` errCode = 2, detailMessage = Cannot invoke "org.apache.doris.nereids.trees.plans.Plan.treeString()" because "this.optimizedPlan" is null ```
This commit is contained in:
@ -174,7 +174,7 @@ public class NereidsPlanner extends Planner {
|
||||
if (plan instanceof LogicalSqlCache) {
|
||||
rewrittenPlan = analyzedPlan = plan;
|
||||
LogicalSqlCache logicalSqlCache = (LogicalSqlCache) plan;
|
||||
physicalPlan = new PhysicalSqlCache(
|
||||
optimizedPlan = physicalPlan = new PhysicalSqlCache(
|
||||
logicalSqlCache.getQueryId(),
|
||||
logicalSqlCache.getColumnLabels(), logicalSqlCache.getFieldInfos(),
|
||||
logicalSqlCache.getResultExprs(), logicalSqlCache.getResultSetInFe(),
|
||||
|
||||
Reference in New Issue
Block a user