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

Function TEST

cpp/src/arrow/compute/kernels/vector_selection_test.cc:109–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107// ----------------------------------------------------------------------
108
109TEST(GetTakeIndices, Basics) {
110 // Drop null cases
111 CheckTakeIndicesCase("[]", "[]", FilterOptions::DROP);
112 CheckTakeIndicesCase("[null]", "[]", FilterOptions::DROP);
113 CheckTakeIndicesCase("[null, false, true, true, false, true]", "[2, 3, 5]",
114 FilterOptions::DROP);
115
116 // Emit null cases
117 CheckTakeIndicesCase("[]", "[]", FilterOptions::EMIT_NULL);
118 CheckTakeIndicesCase("[null]", "[null]", FilterOptions::EMIT_NULL);
119 CheckTakeIndicesCase("[null, false, true, true]", "[null, 2, 3]",
120 FilterOptions::EMIT_NULL);
121}
122
123TEST(GetTakeIndices, NullValidityBuffer) {
124 BooleanArray filter(1, *AllocateEmptyBitmap(1), /*null_bitmap=*/nullptr);

Callers

nothing calls this directly

Calls 15

CheckTakeIndicesCaseFunction · 0.85
AllocateEmptyBitmapFunction · 0.85
ArrayFromJSONFunction · 0.85
CallFunctionFunction · 0.85
AssertTakeRARFunction · 0.85
AssertTakeCACFunction · 0.85
AssertTakeCCCFunction · 0.85
TakeCACFunction · 0.85
TakeCCCFunction · 0.85
AssertTakeTATFunction · 0.85
AssertTakeTCTFunction · 0.85
TestClass · 0.85

Tested by

no test coverage detected