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

Drill should pinpoint to the "Problem Record" when it fails to parse a json file

    XMLWordPrintableJSON

Details

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

    Description

      git.commit.id.abbrev=98b208e

      Data :

      {"name":"name1", "id":1}
      {"name":"name2", "id":2}
      {"name":"name3", "id":3}
      {"name":"name4", "id":04}
      {"name":"name5", "id":5}
      

      Query :

       select * from cp.`file.json`;
      Query failed: Screen received stop request sent. Invalid numeric value: Leading zeroes not allowed
       at [Source: java.io.BufferedReader@202fbdb4; line: 1, column: 24] [c11a17bd-1a3a-4eed-a848-6d79225399d3]
      
      Error: exception while executing query: Failure while trying to get next result batch. (state=,code=0)
      

      The msg should point to the exact record which is causing the problem as it will be hard looking into the data and finding out the problem record.

      Attachments

        1. DRILL-1245.1.patch.txt
          18 kB
          Hanifi Gunes

        Issue Links

          Activity

            People

              adeneche Abdel Hakim Deneche
              rkins Rahul Kumar Challapalli
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: