case_expr lost largeint
This commit is contained in:
@ -335,6 +335,9 @@ void CaseExpr::get_child_val(int child_idx, ExprContext* ctx, TupleRow* row, Any
|
||||
case TYPE_DECIMAL:
|
||||
*reinterpret_cast<DecimalVal*>(dst) = _children[child_idx]->get_decimal_val(ctx, row);
|
||||
break;
|
||||
case TYPE_LARGEINT:
|
||||
*reinterpret_cast<LargeIntVal*>(dst) = _children[child_idx]->get_large_int_val(ctx, row);
|
||||
break;
|
||||
default:
|
||||
DCHECK(false) << _children[child_idx]->type();
|
||||
}
|
||||
@ -375,6 +378,9 @@ bool CaseExpr::any_val_eq(const TypeDescriptor& type, const AnyVal* v1, const An
|
||||
case TYPE_DECIMAL:
|
||||
return AnyValUtil::equals(type, *reinterpret_cast<const DecimalVal*>(v1),
|
||||
*reinterpret_cast<const DecimalVal*>(v2));
|
||||
case TYPE_LARGEINT:
|
||||
return AnyValUtil::equals(type, *reinterpret_cast<const LargeIntVal*>(v1),
|
||||
*reinterpret_cast<const LargeIntVal*>(v2));
|
||||
default:
|
||||
DCHECK(false) << type;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user