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

Function GetScalars

cpp/src/arrow/compute/kernels/test_util_internal.cc:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64ScalarVector GetScalars(const DatumVector& inputs, int64_t index) {
65 ScalarVector scalars;
66 for (const auto& input : inputs) {
67 if (input.is_array()) {
68 scalars.push_back(*input.make_array()->GetScalar(index));
69 } else {
70 scalars.push_back(input.scalar());
71 }
72 }
73 return scalars;
74}
75
76} // namespace
77

Callers 2

CheckScalarFunction · 0.70
CheckDictionaryFunction · 0.70

Calls 5

is_arrayMethod · 0.80
push_backMethod · 0.80
make_arrayMethod · 0.80
GetScalarMethod · 0.45
scalarMethod · 0.45

Tested by

no test coverage detected