Skip to content

[C++][Parquet] Support writing lists that have null elements that are non-empty. #24425

Closed as not planned

Description

@asfimport

With the new V2 level writing engine we can detect this case but fail as not implemented.  Fixing this will require changes to the "core" parquet API.

Reporter: Micah Kornfield / @emkornfield

Related issues:

Note: This issue was originally created as ARROW-8228. Please see the migration documentation for further details.

Activity

  1. asfimport commented on Sep 28, 2020

    @asfimport
    Author

    Antoine Pitrou / @pitrou:
    [~emkornfield@gmail.com] Can you elaborate on what's needed here?

    The following is working at least:

    >>> table = pa.table({"lists": [[1,2,None], None, [], [4,5]]})
    >>> pq.write_table(table, "tt.pq")
    >>> pq.read_table("tt.pq")
    pyarrow.Table
    lists: list<item: int64>
      child 0, item: int64
    >>> pq.read_table("tt.pq").to_pandas()
                 lists
    0  [1.0, 2.0, nan]
    1             None
    2               []
    3       [4.0, 5.0]
  2. asfimport commented on Sep 29, 2020

    @asfimport
    Author

    Micah Kornfield / @emkornfield:
    The case that isn't covered is if you have something like:

    Null bitmap: [Not Null, Null, Not Null]

    List_offset = [0, 2, 5, 7]

    Data= [0, 1, 2, 3, 4, 5, 6]

     

    Nullable FixedSizeList also runs into this issue (any nulls in the middle can't be written).

  3. asfimport commented on Jan 25, 2022

    @asfimport
    Author

    Joris Van den Bossche / @jorisvandenbossche:
    Example with fixed size list:

    >>> arr = pa.array([[1, 2], None, [3, 4]], pa.list_(pa.int64(), 2))
    >>> arr.values
    <pyarrow.lib.Int64Array object at 0x7f64aeebb820>
    [
      1,
      2,
      null,
      null,
      3,
      4
    ]
    
    >>> pq.write_table(pa.table({"col": arr}), "test.parquet")
    ArrowNotImplementedError: Lists with non-zero length null components are not supported
  4. asfimport commented on Jan 25, 2022

    @asfimport
    Author
  5. github-actions commented on Dec 26, 2025

    @github-actions

    This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.

  6. added
    Status: stale-warning
    on Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: C++Status: stale-warningType: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions