Fix expr can not be produced now in ps mode

This commit is contained in:
obdev
2024-02-09 09:12:42 +00:00
committed by ob-robot
parent b7f2fcb3d6
commit fabef328ba

View File

@ -2610,8 +2610,8 @@ int ObSelectResolver::resolve_all_generated_table_columns(
// else we should set the skip_join_dup parameter to true. // else we should set the skip_join_dup parameter to true.
if (OB_FAIL(is_need_check_col_dup(select_item.expr_, need_check_col_dup))) { if (OB_FAIL(is_need_check_col_dup(select_item.expr_, need_check_col_dup))) {
LOG_WARN("failed to check if need to check col duplicate", K(ret)); LOG_WARN("failed to check if need to check col duplicate", K(ret));
} else if (FALSE_IT(is_skip = is_skip ? is_skip : !need_check_col_dup)) { } else if ((!is_skip || need_check_col_dup)
} else if (!is_skip && OB_FAIL(column_namespace_checker_.check_column_exists(table_item, && OB_FAIL(column_namespace_checker_.check_column_exists(table_item,
select_item.alias_name_, select_item.alias_name_,
is_exists, // the return value of is_exists is unused. is_exists, // the return value of is_exists is unused.
!table_ref->is_view_stmt()))) { //if is a view stmt, do not pass the duplicated column. !table_ref->is_view_stmt()))) { //if is a view stmt, do not pass the duplicated column.