Skip to content

[C++][Parquet] NotImplemented: Lists with non-zero length null components are not supported #35697

Description

@mapleFU

Describe the bug, including details regarding any error messages, version, and platform.

When I tests the code below:

TEST(ArrowReadWrite, NestedFixedSizeList) {
using ::arrow::field;
using ::arrow::fixed_size_list;
using ::arrow::struct_;
auto type = fixed_size_list(fixed_size_list(::arrow::int16(), 2), /*size=*/2);
constchar* json = R"([ [[1, 2], [3,4]], null, [null, [7, 8]], [[9, 10], null]])";
auto array = ::arrow::ArrayFromJSON(type, json);
auto table = ::arrow::Table::Make(::arrow::schema({field("root", type)}), {array});
auto props_store_schema = ArrowWriterProperties::Builder().store_schema()->build();
CheckSimpleRoundtrip(table, 2, props_store_schema);
}

This can pass the test, however:

TEST(ArrowReadWrite, NestedFixedSizeList3) {
using ::arrow::field;
using ::arrow::fixed_size_list;
using ::arrow::struct_;
auto type = fixed_size_list(fixed_size_list(::arrow::int16(), 2), /*size=*/2);
constchar* json = R"([ [[1, 2], [3, 4]], null, [[5, 6], null], [null, [7, 8]]])";
auto array = ::arrow::ArrayFromJSON(type, json);
auto table = ::arrow::Table::Make(::arrow::schema({field("root", type)}), {array});
auto props_store_schema = ArrowWriterProperties::Builder().store_schema()->build();
CheckSimpleRoundtrip(table, 2, props_store_schema);
}

It reports that " NotImplemented: Lists with non-zero length null components are not supported"

Component(s)

C++, Parquet

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions