[refactor] Remove decimal v1 related code from code base (#6079)
remove ALL DECIMAL V1 type code , this is a part of #6073
This commit is contained in:
@ -17,8 +17,8 @@
|
||||
|
||||
#include "exprs/case_expr.h"
|
||||
|
||||
#include "exprs/expr_context.h"
|
||||
#include "exprs/anyval_util.h"
|
||||
#include "exprs/expr_context.h"
|
||||
#include "gen_cpp/Exprs_types.h"
|
||||
#include "runtime/runtime_state.h"
|
||||
|
||||
@ -112,9 +112,6 @@ void CaseExpr::get_child_val(int child_idx, ExprContext* ctx, TupleRow* row, Any
|
||||
case TYPE_OBJECT:
|
||||
*reinterpret_cast<StringVal*>(dst) = _children[child_idx]->get_string_val(ctx, row);
|
||||
break;
|
||||
case TYPE_DECIMAL:
|
||||
*reinterpret_cast<DecimalVal*>(dst) = _children[child_idx]->get_decimal_val(ctx, row);
|
||||
break;
|
||||
case TYPE_DECIMALV2:
|
||||
*reinterpret_cast<DecimalV2Val*>(dst) = _children[child_idx]->get_decimalv2_val(ctx, row);
|
||||
break;
|
||||
@ -159,9 +156,6 @@ bool CaseExpr::any_val_eq(const TypeDescriptor& type, const AnyVal* v1, const An
|
||||
case TYPE_OBJECT:
|
||||
return AnyValUtil::equals(type, *reinterpret_cast<const StringVal*>(v1),
|
||||
*reinterpret_cast<const StringVal*>(v2));
|
||||
case TYPE_DECIMAL:
|
||||
return AnyValUtil::equals(type, *reinterpret_cast<const DecimalVal*>(v1),
|
||||
*reinterpret_cast<const DecimalVal*>(v2));
|
||||
case TYPE_DECIMALV2:
|
||||
return AnyValUtil::equals(type, *reinterpret_cast<const DecimalV2Val*>(v1),
|
||||
*reinterpret_cast<const DecimalV2Val*>(v2));
|
||||
@ -226,7 +220,6 @@ CASE_COMPUTE_FN_WRAPPER(FloatVal, float_val)
|
||||
CASE_COMPUTE_FN_WRAPPER(DoubleVal, double_val)
|
||||
CASE_COMPUTE_FN_WRAPPER(StringVal, string_val)
|
||||
CASE_COMPUTE_FN_WRAPPER(DateTimeVal, datetime_val)
|
||||
CASE_COMPUTE_FN_WRAPPER(DecimalVal, decimal_val)
|
||||
CASE_COMPUTE_FN_WRAPPER(DecimalV2Val, decimalv2_val)
|
||||
|
||||
} // namespace doris
|
||||
|
||||
Reference in New Issue
Block a user