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

IOBException when querying a table which has 1 file and a subfolder with 1 file

    XMLWordPrintableJSON

Details

    Description

      git.commit.id.abbrev=5fbd274

      Below is the folder structure

      Data Structure :

      data1
        -- a.json
        -- folder1
             -- b.json
      

      Query :

      0: jdbc:drill:schema=dfs_eea> select * from `data1`;
      +------------+---------------+-----------------+
      |    dir0    | executionTime | stationBeanList |
      +------------+---------------+-----------------+
      | folder1    | 2014-11-04 11:54:01 AM | [{"id":72,"stationName":"W 52 St & 11 Ave", ..........
      java.lang.IndexOutOfBoundsException: index: -4, length: 4 (expected: range(0, 4))
      	at io.netty.buffer.DrillBuf.checkIndexD(DrillBuf.java:200)
      	at io.netty.buffer.DrillBuf.chk(DrillBuf.java:222)
      	at io.netty.buffer.DrillBuf.getInt(DrillBuf.java:500)
      	at org.apache.drill.exec.vector.UInt4Vector$Accessor.get(UInt4Vector.java:299)
      	at org.apache.drill.exec.vector.complex.RepeatedMapVector$RepeatedMapAccessor.getValueCount(RepeatedMapVector.java:470)
      	at org.apache.drill.exec.vector.accessor.BoundCheckingAccessor.getObject(BoundCheckingAccessor.java:142)
      	at org.apache.drill.jdbc.impl.TypeConvertingSqlAccessor.getObject(TypeConvertingSqlAccessor.java:790)
      	at org.apache.drill.jdbc.AvaticaDrillSqlAccessor.getObject(AvaticaDrillSqlAccessor.java:165)
      	at net.hydromatic.avatica.AvaticaResultSet.getObject(AvaticaResultSet.java:351)
      	at sqlline.SqlLine$Rows$Row.<init>(SqlLine.java:2388)
      	at sqlline.SqlLine$IncrementalRows.hasNext(SqlLine.java:2504)
      	at sqlline.SqlLine$TableOutputFormat.print(SqlLine.java:2148)
      	at sqlline.SqlLine.print(SqlLine.java:1809)
      	at sqlline.SqlLine$Commands.execute(SqlLine.java:3766)
      	at sqlline.SqlLine$Commands.sql(SqlLine.java:3663)
      	at sqlline.SqlLine.dispatch(SqlLine.java:889)
      	at sqlline.SqlLine.begin(SqlLine.java:763)
      	at sqlline.SqlLine.start(SqlLine.java:498)
      	at sqlline.SqlLine.main(SqlLine.java:460)
      

      I attached the error log and the data file. Let me know if you need anything

      Attachments

        1. data1.tar
          12 kB
          Rahul Kumar Challapalli
        2. error.log
          6 kB
          Rahul Kumar Challapalli

        Activity

          People

            dsbos Daniel Barclay
            rkins Rahul Kumar Challapalli
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: