bugfix: always add column convert for dependant expr of gen col

This commit is contained in:
JinmaoLi
2024-08-23 14:44:41 +00:00
committed by ob-robot
parent 230369e51b
commit e48a0f2d22
10 changed files with 136 additions and 141 deletions

View File

@ -979,7 +979,7 @@ int ObSQLUtils::make_generated_expression_from_str(const common::ObString &expr_
ObExprResType dest_type;
dest_type.set_meta(gen_col.get_meta_type());
dest_type.set_accuracy(gen_col.get_accuracy());
if (ObRawExprUtils::need_column_conv(dest_type, *expr)) {
if (ObRawExprUtils::need_column_conv(dest_type, *expr, true)) {
if (OB_FAIL(ObRawExprUtils::build_column_conv_expr(expr_factory, &gen_col, expr, &session))) {
LOG_WARN("create column convert expr failed", K(ret));
}