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

Rust/Java incorrect serialization of Struct wrapped Int8Dictionary

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.0.0
    • None
    • Java, Rust

    Description

      Using rust, serialized datatype to a file with a schema of

      Field { name: "val", data_type: Struct([Field { name: "val", data_type: Utf8, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: None }]), nullable: false, dict_id: 0, dict_is_ordered: false, metadata: None }

      Using a java client to read the serialized datatype results in a schema of

      Schema<val: Struct<val: Utf8 not null> not null>

      whilst calling ArrowFileReader.loadNextBatch() results in

      Exception in thread "main" java.util.NoSuchElementExceptionException in thread "main" java.util.NoSuchElementException at java.base/java.util.ArrayList$Itr.next(ArrayList.java:1000) at org.apache.arrow.vector.VectorLoader.loadBuffers(VectorLoader.java:81) at org.apache.arrow.vector.VectorLoader.loadBuffers(VectorLoader.java:99) at org.apache.arrow.vector.VectorLoader.load(VectorLoader.java:61) at org.apache.arrow.vector.ipc.ArrowReader.loadRecordBatch(ArrowReader.java:205) at org.apache.arrow.vector.ipc.ArrowFileReader.loadNextBatch(ArrowFileReader.java:153)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jngai Justin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: