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

format-excel assumes that rowIterator returns every row

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Execution - Data Types
    • None

    Description

      In ExcelBatchReader, this code makes the wrong assumption:

          for (int i = 1; i < rowNumber; i++) {
               currentRow = rowIterator.next();
          } 

       
      There are 2 for loops like this.

      Empty Rows will not necessarily be returned by the iterator. Basically, rows without populated cells could easily be skipped. Think of the Sheet as being represented as a sparse matrix - because it is stored like this.

       

       

       

      Attachments

        Activity

          People

            cgivre Charles Givre
            pj.fanning PJ Fanning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: