MCPcopy Create free account
hub / github.com/apache/arrow / BuildDecimalLValue

Method BuildDecimalLValue

cpp/src/gandiva/llvm_generator.cc:560–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560std::shared_ptr<DecimalLValue> LLVMGenerator::BuildDecimalLValue(llvm::Value* value,
561 DataTypePtr arrow_type) {
562 // only decimals of size 128-bit supported.
563 DCHECK(is_decimal_128(arrow_type));
564 auto decimal_type =
565 arrow::internal::checked_cast<arrow::DecimalType*>(arrow_type.get());
566 return std::make_shared<DecimalLValue>(value, nullptr,
567 types()->i32_constant(decimal_type->precision()),
568 types()->i32_constant(decimal_type->scale()));
569}
570
571#define ADD_VISITOR_TRACE(...) \
572 if (generator_->enable_ir_traces_) { \

Callers 3

VisitMethod · 0.80
BuildIfElseMethod · 0.80
BuildFunctionCallMethod · 0.80

Calls 5

is_decimal_128Function · 0.85
typesFunction · 0.70
getMethod · 0.45
precisionMethod · 0.45
scaleMethod · 0.45

Tested by

no test coverage detected