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

Function ValidateBatch

cpp/src/arrow/acero/tpch_node_test.cc:75–83  ·  view source on GitHub ↗

Verifies that the data is valid Arrow and ensures it's not null.

Source from the content-addressed store, hash-verified

73
74// Verifies that the data is valid Arrow and ensures it's not null.
75void ValidateBatch(const ExecBatch& batch) {
76 for (const Datum& d : batch.values) {
77 ASSERT_EQ(d.kind(), Datum::ARRAY);
78 const auto array = d.make_array();
79 ASSERT_OK(array->ValidateFull());
80 TestInitialized(*array);
81 ASSERT_EQ(array->data()->buffers[0].get(), nullptr);
82 }
83}
84
85// Verifies that each element is seen exactly once, and that it's between min and max
86// inclusive

Callers 8

VerifySupplierFunction · 0.70
VerifyPartFunction · 0.70
VerifyPartSuppFunction · 0.70
VerifyCustomerFunction · 0.70
VerifyOrdersFunction · 0.70
VerifyLineitemFunction · 0.70
VerifyNationFunction · 0.70
VerifyRegionFunction · 0.70

Calls 6

TestInitializedFunction · 0.85
make_arrayMethod · 0.80
kindMethod · 0.45
ValidateFullMethod · 0.45
getMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected