fix gis hash

This commit is contained in:
obdev
2023-01-28 18:26:43 +08:00
committed by ob-robot
parent 10cf0f58c9
commit 59d26b53a0
3 changed files with 64 additions and 5 deletions

View File

@ -61,10 +61,8 @@ uint64_t ObSharedExprResolver::hash_expr_tree(ObRawExpr *expr, uint64_t hash_cod
if (expr->get_expr_type() == T_QUESTIONMARK) {
// do nothing
} else if (expr->is_const_raw_expr()) {
if (expr->get_expr_type() != T_GEOMETRY) { // GIS does not support hash func
hash_code = common::do_hash(static_cast<ObConstRawExpr *>(expr)->get_value(),
hash_code);
}
hash_code = common::do_hash(static_cast<ObConstRawExpr *>(expr)->get_value(),
hash_code);
} else if (expr->get_expr_type() == T_FUN_SYS_CAST) {
hash_code = hash_expr_tree(expr->get_param_expr(0), hash_code, false);
} else if (!is_root) {