lidavidm commented on a change in pull request #11127: URL: https://github.com/apache/arrow/pull/11127#discussion_r707565352
########## File path: cpp/src/arrow/compute/kernels/vector_nested_test.cc ########## @@ -51,6 +54,33 @@ TEST(TestVectorNested, ListFlattenChunkedArray) { } } +TEST(TestVectorNested, ListFlattenFixedSizeList) { + for (auto ty : {fixed_size_list(int16(), 2), fixed_size_list(uint32(), 2)}) { + const auto& out_ty = checked_cast<const FixedSizeListType&>(*ty).value_type(); + { + auto input = ArrayFromJSON(ty, "[[0, null], null, [2, 3], [0, 42]]"); + auto expected = ArrayFromJSON(out_ty, "[0, null, 2, 3, 0, 42]"); + CheckVectorUnary("list_flatten", input, expected); + + // Construct a list with a non-empty null slot Review comment: D'oh, thanks for catching this! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org