support extract query range with user var and fix some bugs

This commit is contained in:
yinyj17
2023-08-08 06:13:14 +00:00
committed by ob-robot
parent c8b34032f9
commit af62662569
17 changed files with 48 additions and 31 deletions

View File

@ -212,7 +212,7 @@ bool ObRawExpr::is_vectorize_result() const
// TODO bin.lb: more sophisticate
bool not_pre_calc = has_generalized_column()
|| has_flag(CNT_STATE_FUNC)
|| has_flag(CNT_USER_VARIABLE)
|| has_flag(CNT_DYNAMIC_USER_VARIABLE)
|| has_flag(CNT_ALIAS)
|| has_flag(CNT_VALUES)
|| has_flag(CNT_SEQ_EXPR)
@ -681,7 +681,7 @@ bool ObRawExpr::is_not_calculable_expr() const
{
return is_generalized_column()
|| has_flag(IS_STATE_FUNC)
|| has_flag(IS_USER_VARIABLE)
|| has_flag(IS_DYNAMIC_USER_VARIABLE)
|| has_flag(IS_ALIAS)
|| has_flag(IS_VALUES)
|| has_flag(IS_SEQ_EXPR)
@ -699,7 +699,7 @@ bool ObRawExpr::cnt_not_calculable_expr() const
// need add the same rules.
return has_generalized_column()
|| has_flag(CNT_STATE_FUNC)
|| has_flag(CNT_USER_VARIABLE)
|| has_flag(CNT_DYNAMIC_USER_VARIABLE)
|| has_flag(CNT_ALIAS)
|| has_flag(CNT_VALUES)
|| has_flag(CNT_SEQ_EXPR)
@ -742,7 +742,6 @@ int ObRawExpr::is_const_inherit_expr(bool &is_const_inherit,
|| T_FUN_SYS_SLEEP == type_
|| T_OP_PRIOR == type_
|| T_OP_ASSIGN == type_
|| T_OP_GET_USER_VAR == type_
|| T_FUN_NORMAL_UDF == type_
|| T_FUN_SYS_REMOVE_CONST == type_
|| T_FUN_SYS_WRAPPER_INNER == type_