diff --git a/src/sql/optimizer/ob_log_plan.cpp b/src/sql/optimizer/ob_log_plan.cpp index 481358f6d1..807aaf55e6 100644 --- a/src/sql/optimizer/ob_log_plan.cpp +++ b/src/sql/optimizer/ob_log_plan.cpp @@ -12489,6 +12489,7 @@ int ObLogPlan::allocate_material_for_recursive_cte_plan(ObIArrayget_type() && log_op_def::LOG_TABLE_SCAN != child_ops.at(i)->get_type() && + log_op_def::LOG_EXPR_VALUES != child_ops.at(i)->get_type() && OB_FAIL(log_plan->allocate_material_as_top(child_ops.at(i)))) { LOG_WARN("failed to allocate materialize as top", K(ret)); } else { /*do nothing*/ }