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

RPC Error querying JSON with empty nested maps

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 1.0.0
    • None
    • Centos 4 node MapR cluster

    Description

      When querying large number of documents in multiple directories with multiple JSON files in each, and some documents have no top level map that is used for a predicate, Drill produces a RPC error in the log.

      Query

      > select t.retweeted_status.`user`.name as name, count(t.retweeted_status.favorited) as rt_count from `./nfl` t where t.retweeted_status.`user`.name is not null group by t.retweeted_status.`user`.name order by count(t.retweeted_status.favorited) desc limit 10;
      
      Query failed: Query failed: Failure while running fragment., index: 0, length: 1 (expected: range(0, 0)) [ b96e3bfa-74c9-4b78-886b-9a2c3fc4ea9b on se-node13.se.lab:31010 ]
      [ b96e3bfa-74c9-4b78-886b-9a2c3fc4ea9b on se-node13.se.lab:31010 ]
      

      Drillbit log attached

      Attachments

        1. drillbit.log
          48 kB
          Andries Engelbrecht

        Activity

          People

            sudheeshkatkam Sudheesh Katkam
            aengelbrecht Andries Engelbrecht
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: