drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Hyde (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-1241) Query that returns 0 rows gives alarming error
Date Fri, 01 Aug 2014 21:27:39 GMT
Julian Hyde created DRILL-1241:

             Summary: Query that returns 0 rows gives alarming error
                 Key: DRILL-1241
                 URL: https://issues.apache.org/jira/browse/DRILL-1241
             Project: Apache Drill
          Issue Type: Bug
            Reporter: Julian Hyde

When I run a query with 'limit 0' I got an error that sounded like an internal protocol error.

0: jdbc:drill:zk=local> SELECT * FROM cp.`employee.json` limit 0;
Query failed: Failure while running fragment. The incoming iterator returned a state of NONE
on the first batch. There should always be at least one batch output before returning NONE

Error: exception while executing query: Failure while trying to get next result batch. (state=,code=0)

Should be more like a user error, since Drill cannot handle queries that return 0 rows. Or
maybe (if as I surmise the problem is that Drill just doesn't know the names of the columns)
generate a default column 'unknown_result_set_schema' and no rows.

This message was sent by Atlassian JIRA

View raw message