Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-6262

IndexOutOfBoundException in RecordBatchSize for empty variableWidthVector

    XMLWordPrintableJSON

Details

    Description

      ColumnSize inside RecordBatchSizer while computing the totalDataSize for VariableWidthVector throws IndexOutOfBoundException when the underlying vector is empty without any allocated memory.

      This happens because the way totalDataSize is computed is using the offsetVector value at an index n where n is total number of records in the vector. When vector is empty then n=0 and offsetVector drillbuf is empty as well. So while retrieving value at index 0 from offsetVector exception is thrown. 

      Attachments

        Issue Links

          Activity

            People

              shamirwasia Sorabh Hamirwasia
              shamirwasia Sorabh Hamirwasia
              Padma Penumarthy Padma Penumarthy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: