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

Function TEST

cpp/src/arrow/compute/kernels/scalar_if_else_test.cc:1237–1241  ·  view source on GitHub ↗

GH-47825: BitmapOp overrides partial leading byte for unaligned chunked execution.

Source from the content-addressed store, hash-verified

1235
1236// GH-47825: BitmapOp overrides partial leading byte for unaligned chunked execution.
1237TEST(TestIfElse, ChunkedUnalignedBitmapOp) {
1238 auto cond = ArrayFromJSON(boolean(), "[true, true]");
1239 auto if_true = ChunkedArrayFromJSON(boolean(), {"[true]", "[true]"});
1240 auto if_false = ArrayFromJSON(boolean(), "[true, true]");
1241 ASSERT_OK_AND_ASSIGN(auto result, CallFunction("if_else", {cond, if_true, if_false}));
1242 ASSERT_OK(result.chunked_array()->ValidateFull());
1243 AssertDatumsEqual(ChunkedArrayFromJSON(boolean(), {"[true, true]"}), result);
1244}

Callers

nothing calls this directly

Calls 15

ArrayFromJSONFunction · 0.85
ChunkedArrayFromJSONFunction · 0.85
ScalarFromJSONFunction · 0.85
CheckScalarFunction · 0.85
TestCaseWhenRandomFunction · 0.85
day_time_intervalFunction · 0.85
month_day_nano_intervalFunction · 0.85
decimal256Function · 0.85
fixed_size_binaryFunction · 0.85
mapFunction · 0.85
fixed_size_listFunction · 0.85
struct_Function · 0.85

Tested by

no test coverage detected