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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: Storage - JSON
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: