[FEAT MERGE]优化器技改patch到432
Co-authored-by: jingtaoye35 <1255153887@qq.com> Co-authored-by: qingzhu521 <q15000557748@gmail.com> Co-authored-by: akaError <lzg020616@163.com>
This commit is contained in:
@ -910,4 +910,21 @@ int ObLogSet::get_card_without_filter(double &card)
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ObLogSet::check_use_child_ordering(bool &used, int64_t &inherit_child_ordering_index)
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
used = true;
|
||||
inherit_child_ordering_index = first_child;
|
||||
if (HASH_SET == get_algo()) {
|
||||
inherit_child_ordering_index = -1;
|
||||
used = false;
|
||||
} else if (!is_set_distinct()) {
|
||||
used = false;
|
||||
}
|
||||
if (is_recursive_union()) {
|
||||
inherit_child_ordering_index = -1;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
Reference in New Issue
Block a user