| 43 | } |
| 44 | |
| 45 | TEST(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 | |
| 57 | TEST(TestScalarNested, ListElementNonFixedListWithNulls) { |
| 58 | auto sample = "[[7, 5, 81], [6, null, 4, 7, 8], [3, 12, 2, 0], [1, 9], null]"; |
nothing calls this directly
no test coverage detected