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

@ -880,8 +880,7 @@ int ObStaticEngineCG::generate_calc_exprs(
&& T_CTE_SEARCH_COLUMN != raw_expr->get_expr_type()
&& T_CTE_CYCLE_COLUMN != raw_expr->get_expr_type()
&& T_PSEUDO_EXTERNAL_FILE_COL != raw_expr->get_expr_type()
&& !(raw_expr->is_const_expr() || raw_expr->has_flag(IS_USER_VARIABLE))
// TODO:@guoping.wgp, following T_FUN_SYS_PART restrictions should be removed later
&& !(raw_expr->is_const_expr() || raw_expr->has_flag(IS_DYNAMIC_USER_VARIABLE))
&& !(T_FUN_SYS_PART_HASH == raw_expr->get_expr_type() || T_FUN_SYS_PART_KEY == raw_expr->get_expr_type())) {
if (raw_expr->is_calculated()) {
ret = OB_ERR_UNEXPECTED;