Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-10684

[Rust] Logical equality should consider parent array nullability

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 3.0.0
    • Rust

    Description

      When creating a struct array with a primitive child array, it is possible for the child to be non-nullable, while its parent struct array is nullable.

      In this scenario, the child array's slots where the parent is null, become invalidated, such that an array with [1, 2, 3] having slot 2 being null, should be interpreted as [1, 0, 3].

      This issue becomes evident in Parquet roundtrip tests, as we end up not able to correctly compare nested structures that have non-null children.

      The specification caters for the above behaviour, see http://arrow.apache.org/docs/format/Columnar.html#struct-layout .

      When a struct has nulls, its child array(s) nullability is subject to the parent struct.

      Attachments

        Issue Links

          Activity

            People

              nevi_me Neville Dipale
              nevi_me Neville Dipale
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m