[FEAT MERGE] Solidify session vars for functional index

This commit is contained in:
obdev
2024-02-07 16:44:49 +00:00
committed by ob-robot
parent aceabf03d5
commit c699ceea48
189 changed files with 3671 additions and 1554 deletions

View File

@ -6325,7 +6325,7 @@ int ObOptimizerUtil::get_set_res_types(ObIAllocator *allocator,
ret = res_types.push_back(types.at(0));
} else if (OB_FAIL(dummy_op.aggregate_result_type_for_merge(res_type, &types.at(0),
types.count(), coll_type, is_oracle_mode(),
length_semantics, session_info))) {
length_semantics))) {
LOG_WARN("failed to aggregate result type for merge", K(ret));
} else if (OB_FAIL(res_types.push_back(res_type))) {
LOG_WARN("failed to pushback res type", K(ret));
@ -6458,7 +6458,7 @@ int ObOptimizerUtil::try_add_cast_to_set_child_list(ObIAllocator *allocator,
} else if (OB_FAIL(session_info->get_collation_connection(coll_type))) {
LOG_WARN("failed to get collation connection", K(ret));
} else if (OB_FAIL(dummy_op.aggregate_result_type_for_merge(res_type, &types.at(0), 2,
coll_type, is_oracle_mode(), length_semantics, session_info))) {
coll_type, is_oracle_mode(), length_semantics))) {
if (session_info->is_varparams_sql_prepare()) {
skip_add_cast = true;
res_type = left_type;