wgtmac commented on code in PR #50271:
URL: https://github.com/apache/arrow/pull/50271#discussion_r3631902823
##########
cpp/src/parquet/arrow/arrow_reader_writer_test.cc:
##########
@@ -3412,6 +3412,75 @@ TEST(ArrowReadWrite, FixedSizeList) {
CheckSimpleRoundtrip(table, 2, props_store_schema);
}
+TEST(ArrowReadWrite, FixedSizeListNull) {
+ using ::arrow::field;
+ using ::arrow::fixed_size_list;
+
+ auto type = fixed_size_list(::arrow::int16(), /*size=*/3);
+
+ const char* json = R"([
+ null,
+ [1, 2, 3],
+ null,
+ [4, 5, 6],
+ null])";
+ auto array = ::arrow::ArrayFromJSON(type, json);
+ auto table = ::arrow::Table::Make(::arrow::schema({field("root", type)}),
{array});
Review Comment:
Is it possible to use `::arrow::TableFromJSON`. BTW, it seems we can use a
single test case to hold all these variants?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]