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

Function TEST

cpp/src/arrow/compute/kernels/scalar_nested_test.cc:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45TEST(TestScalarNested, ListValueLength) {
46 for (auto ty : {list(int32()), large_list(int32()), list_view(int32()),
47 large_list_view(int32())}) {
48 CheckScalarUnary("list_value_length", ty, "[[0, null, 1], null, [2, 3], []]",
49 GetOffsetType(*ty), "[3, null, 2, 0]");
50 }
51
52 CheckScalarUnary("list_value_length", fixed_size_list(int32(), 3),
53 "[[0, null, 1], null, [2, 3, 4], [1, 2, null]]", int32(),
54 "[3, null, 3, 3]");
55}
56
57TEST(TestScalarNested, ListElementNonFixedListWithNulls) {
58 auto sample = "[[7, 5, 81], [6, null, 4, 7, 8], [3, 12, 2, 0], [1, 9], null]";

Callers

nothing calls this directly

Calls 15

listFunction · 0.85
large_listFunction · 0.85
list_viewFunction · 0.85
large_list_viewFunction · 0.85
CheckScalarUnaryFunction · 0.85
GetOffsetTypeFunction · 0.85
fixed_size_listFunction · 0.85
ArrayFromJSONFunction · 0.85
ScalarFromJSONFunction · 0.85
CheckScalarFunction · 0.85
CallFunctionFunction · 0.85
RaisesFunction · 0.85

Tested by

no test coverage detected