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

[Java] Appending Empty List Vector yields NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 4.0.0
    • 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

              Unassigned Unassigned
              nickb611 Nick Bruno
              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 - 1h 20m
                  1h 20m