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

[Java] JsonFileReader doesn't intialize some vectors approperately

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.8.0
    • Java
    • None

    Description

      One example is for ListVector, the JsonFileReader sets the validity, offset and data, but doesn't set `lastSet` variable in the ListVector instance.

      ArrowFileReader works correct before it invokes `loadFieldBuffers` and intialize `lastSet` correctly:
      https://github.com/apache/arrow/blob/master/java/vector/src/main/java/org/apache/arrow/vector/complex/ListVector.java#L120

      This doesn't break integration tests but can cause weird bugs when people call methods on the vector read from json.

      Attachments

        Activity

          People

            icexelloss Li Jin
            icexelloss Li Jin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: