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

Method MakeDecimalVector

cpp/src/gandiva/tests/decimal_single_test.cc:86–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84};
85
86ArrayPtr TestDecimalOps::MakeDecimalVector(const DecimalScalar128& in) {
87 std::vector<arrow::Decimal128> ret;
88
89 Decimal128 decimal_value = in.value();
90
91 auto decimal_type = std::make_shared<arrow::Decimal128Type>(in.precision(), in.scale());
92 return MakeArrowArrayDecimal(decimal_type, {decimal_value}, {true});
93}
94
95void TestDecimalOps::Verify(DecimalTypeUtil::Op op, const std::string& function,
96 const DecimalScalar128& x, const DecimalScalar128& y,

Callers

nothing calls this directly

Calls 3

valueMethod · 0.45
precisionMethod · 0.45
scaleMethod · 0.45

Tested by

no test coverage detected