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

[Java] Appending Empty List Vector yields NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 4.0.0
    • Component/s: Java

      Description

      Attempting to append a list vector that is empty to another vector that is also empty using VectorAppender raises an NPE. Instead, it should just skip processing and do nothing. 

      java.lang.IndexOutOfBoundsException: index: 0, length: 4 (expected: range(0, 0))
       at org.apache.arrow.memory.ArrowBuf.checkIndexD(ArrowBuf.java:318)
       at org.apache.arrow.memory.ArrowBuf.chk(ArrowBuf.java:305)
       at org.apache.arrow.memory.ArrowBuf.getInt(ArrowBuf.java:424)
       at org.apache.arrow.vector.util.VectorAppender.visit(VectorAppender.java:195)
       at org.apache.arrow.vector.util.VectorAppender.visit(VectorAppender.java:45)
       at org.apache.arrow.vector.complex.ListVector.accept(ListVector.java:449)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nickb611 Nick Bruno
              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 1h 20m
                  1h 20m