[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:
zzg19950727
2024-06-18 02:23:55 +00:00
committed by ob-robot
parent 4d5b5ec653
commit b81b1efd98
117 changed files with 6600 additions and 948 deletions

View File

@ -2364,6 +2364,25 @@ int ObObj::convert_string_value_charset(ObCharsetType charset_type, ObIAllocator
return ret;
}
int ObObj::get_real_param_count(int64_t &count) const
{
int ret = OB_SUCCESS;
count = 1;
if (ObExtendType == meta_.get_type()) {
const ObSqlArrayObj *array_obj = NULL;
if (OB_ISNULL(array_obj = reinterpret_cast<const ObSqlArrayObj*>(v_.ext_))) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("unexpected nullptr", K(ret), K(v_.ext_));
} else if (array_obj->count_ < 0) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("unexpected group_idx", K(ret), K(array_obj->count_));
} else {
count = array_obj->count_;
}
}
return ret;
}
////////////////////////////////////////////////////////////////
DEFINE_SERIALIZE(ObObj)
{