Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions be/src/exprs/case_expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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;
Expand Down