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

[Java] Method getBufferSizeFor in BaseRepeatedValueVector/ListVector not correct

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 0.15.0
    • Java

    Description

      Currently, getBufferSizeFor in BaseRepeatedValueVector implemented as below:

      if (valueCount == 0) {
      
        return 0;
      
      }
      
      return ((valueCount + 1) * OFFSET_WIDTH) + vector.getBufferSizeFor(valueCount);
      

      Here vector.getBufferSizeFor(valueCount) seems not right which should be

       

      int innerVectorValueCount = offsetBuffer.getInt(valueCount * OFFSET_WIDTH);
      
      vector.getBufferSizeFor(innerVectorValueCount)
      

       ListVector has the same problem.

      Attachments

        Issue Links

          Activity

            People

              tianchen92 Ji Liu
              tianchen92 Ji Liu
              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 10m
                  1h 10m