fix outline data generate plan bug

This commit is contained in:
obdev
2022-11-09 08:35:52 +00:00
committed by wangzelin.wzl
parent 4dd45dfcff
commit d2415e376b
31 changed files with 346 additions and 256 deletions

View File

@ -4807,9 +4807,11 @@ int ObSelectLogPlan::get_late_materialization_operator(ObLogicalOperator *top,
LOG_WARN("get unexpected null", K(ret));
} else if (log_op_def::LOG_TABLE_SCAN != child_scan->get_type()) {
/*do nothing*/
} else if (OB_FALSE_IT(table_scan = static_cast<ObLogTableScan *>(child_scan))) {
} else if (NULL != table_scan->get_limit_expr() || NULL != table_scan->get_offset_expr()) {
table_scan = NULL;
} else {
sort_op = static_cast<ObLogSort *>(child_sort);
table_scan = static_cast<ObLogTableScan *>(child_scan);
}
return ret;
}