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

Function MakeDecimalVector

cpp/src/gandiva/tests/in_expr_test.cc:42–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 arrow::MemoryPool* pool_;
41};
42std::vector<Decimal128> MakeDecimalVector(std::vector<std::string> values) {
43 std::vector<arrow::Decimal128> ret;
44 for (auto str : values) {
45 Decimal128 decimal_value;
46 int32_t decimal_precision;
47 int32_t decimal_scale;
48
49 DCHECK_OK(
50 Decimal128::FromString(str, &decimal_value, &decimal_precision, &decimal_scale));
51
52 ret.push_back(decimal_value);
53 }
54 return ret;
55}
56
57TEST_F(TestIn, TestInSimple) {
58 // schema for input fields

Callers 3

VerifyMethod · 0.70
TEST_FFunction · 0.70
TEST_FFunction · 0.70

Calls 2

FromStringFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected