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

As json reader reads a field with empty lists, IOOB could happen

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • Storage - JSON
    • None

    Description

      If a field in a json file has many empty lists before a non-empty list, there could be an IOOB exception.

      Running the following query on the folder with files in the attachment can reproduce the observation:

      select a from`folder`
      

      Exception:
      org.apache.drill.common.exceptions.UserRemoteException: DATA_READ ERROR: index: 4448, length: 4

      Attachments

        1. a.json
          0.1 kB
          Sean Hsuan-Yi Chu
        2. b.json
          0.0 kB
          Sean Hsuan-Yi Chu
        3. c.json
          10 kB
          Sean Hsuan-Yi Chu

        Activity

          People

            seanhychu Sean Hsuan-Yi Chu
            seanhychu Sean Hsuan-Yi Chu
            Khurram Faraaz Khurram Faraaz
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: