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

Function VerifyOneOf

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

Verifies that each row of the single-byte-wide column is one of the possibilities.

Source from the content-addressed store, hash-verified

292
293// Verifies that each row of the single-byte-wide column is one of the possibilities.
294void VerifyOneOf(const Datum& d, const std::unordered_set<char>& possibilities) {
295 int64_t length = d.length();
296 const char* col = reinterpret_cast<const char*>(d.array()->buffers[1]->data());
297 for (int64_t i = 0; i < length; i++)
298 ASSERT_TRUE(possibilities.find(col[i]) != possibilities.end());
299}
300
301// Verifies that each fixed-width row is one of the possibilities
302void VerifyOneOf(const Datum& d, int32_t byte_width,

Callers 4

VerifyOrdersFunction · 0.85
VerifyLineitemFunction · 0.85
VerifyNationFunction · 0.85
VerifyRegionFunction · 0.85

Calls 5

lengthMethod · 0.45
dataMethod · 0.45
arrayMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected