[FEAT MERGE] implement dynamic sampling

This commit is contained in:
wangt1xiuyi
2023-04-27 12:15:28 +00:00
committed by ob-robot
parent 56f85c9c76
commit f745b47cbc
86 changed files with 6754 additions and 2282 deletions

View File

@ -832,6 +832,10 @@ int ObTransformSimplifyExpr::do_check_like_condition(ObRawExpr *&expr,
}
}
if (OB_SUCC(ret)) {
if (text_expr->get_expr_type() == T_FUN_SYS_CAST &&
text_expr->has_flag(IS_INNER_ADDED_EXPR)) {//avoid reconstuct sql is wrong.
text_expr->clear_flag(IS_INNER_ADDED_EXPR);
}
if (OB_FAIL(ObRawExprUtils::create_equal_expr(*ctx_->expr_factory_,
ctx_->session_info_,
pattern_expr,