@@ -3371,9 +3371,10 @@ TEST(ArrowReadWrite, LargeListView) {
33713371 auto values = ArrayFromJSON (::arrow::int32 (), " [1, 2, 3, 4, 5]" );
33723372 auto offsets = ArrayFromJSON (::arrow::int64 (), " [3, 0, 5, 1]" );
33733373 auto sizes = ArrayFromJSON (::arrow::int64 (), " [2, 1, 0, 2]" );
3374+ auto element = ::arrow::field (" element" , ::arrow::int32 ());
33743375 ASSERT_OK_AND_ASSIGN (auto array, ::arrow::LargeListViewArray::FromArrays (
3375- ::arrow::large_list_view (::arrow::int32()) ,
3376- *offsets, * sizes, *values, default_memory_pool()));
3376+ ::arrow::large_list_view (element), *offsets ,
3377+ *sizes, *values, default_memory_pool()));
33773378 auto table = Table::Make (
33783379 ::arrow::schema ({::arrow::field (" root" , array->type (), false )}), {array});
33793380
@@ -3385,7 +3386,7 @@ TEST(ArrowReadWrite, LargeListView) {
33853386 checked_cast<const ::arrow::LargeListViewArray&>(*array),
33863387 default_memory_pool()));
33873388 auto expected = Table::Make (
3388- ::arrow::schema ({::arrow::field (" root" , ::arrow::large_list (:: arrow::int32 ()) )}),
3389+ ::arrow::schema ({::arrow::field (" root" , ::arrow::large_list (element), false )}),
33893390 {expected_array});
33903391 ArrowReaderProperties reader_props;
33913392 reader_props.set_list_type (::arrow::Type::LARGE_LIST );
0 commit comments