Fix lead/lag window function deduce real type error

This commit is contained in:
hezuojiao
2023-08-01 21:42:33 +00:00
committed by ob-robot
parent bbe0a67b5d
commit e52e45c84e

View File

@ -2485,6 +2485,8 @@ int ObRawExprDeduceType::visit(ObWinFunRawExpr &expr)
} else {
// json or max, do nothing
}
} else if (ob_is_real_type(res_type.get_type())) {
res_type.set_double();
} else {}
ObCastMode def_cast_mode = CM_NONE;
ObRawExpr *cast_expr = NULL;