Skip to content

Output of ipc::reader::tests::projection_should_work fails validation #1548

@alamb

Description

@alamb

Describe the bug
The force_validate check added in #1546 reveals that some array created as part of projection_should_work test fails validation.

It is not clear if the validation is incorrect or something about ipc

To Reproduce
Uncomment the

    #[cfg(not(feature = "force_validate"))]

And then run the test like:

cargo test --features=force_validate -p arrow

lines for the following tests and the will fail:

---- ipc::reader::tests::projection_should_work stdout ----
thread 'ipc::reader::tests::projection_should_work' panicked at 'called `Result::unwrap()` on an `Err` value: InvalidArgumentError("Last offset 251658240 of List(Field { name: \"item\", data_type: Int32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: None }) is larger than values length 15")', arrow/src/array/data.rs:301:34

Expected behavior
The tests should pass when force_validate is on

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrowChanges to the arrow cratebug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions