You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Victoria Markman (JIRA)" <ji...@apache.org> on 2014/12/18 22:18:25 UTC
[jira] [Created] (DRILL-1891) Error message does not get propagated
correctly when reading from JSON file
Victoria Markman created DRILL-1891:
---------------------------------------
Summary: Error message does not get propagated correctly when reading from JSON file
Key: DRILL-1891
URL: https://issues.apache.org/jira/browse/DRILL-1891
Project: Apache Drill
Issue Type: Bug
Components: Storage - JSON
Affects Versions: 0.7.0
Reporter: Victoria Markman
I made a mistake in t.json file (extra colon in the last row):
{ "a1": 0 , "b1": "a"}
{ "a1": 1 , "b1": "b"}
{ "a1": 2 , "b1": "c"}
{ "a1":: 3 , "b1": "c"}
Error message below pretty much tells me everything that went wrong.
0: jdbc:drill:schema=dfs> select a1 from `t.json` where a1 is not null;
Query failed: Query stopped., Unexpected character (':' (code 58)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: org.apache.drill.exec.vector.complex.fn.JsonReader@53c10ede; line: 3, column: 9] [ 64182782-ebba-4c6a-a963-005b8cb48339 on atsqa4-133.qa.lab:31010 ]
However, if a result of query above is an input to any other operator, I get this error message:
0: jdbc:drill:schema=dfs> select a1 from `t.json` where a1 is not null group by a1;
Query failed: Query failed: Failure while running fragment., You tried to do a batch data read operation when you were in a state of STOP. You can only do this type of operation when you are in a state of OK or OK_NEW_SCHEMA. [ 955aac65-5e43-4430-baf6-ed6bb8a020d9 on atsqa4-133.qa.lab:31010 ]
[ 955aac65-5e43-4430-baf6-ed6bb8a020d9 on atsqa4-133.qa.lab:31010 ]
Error: exception while executing query: Failure while executing query. (state=,code=0)
Very painful for the user if query is really complex.
The same behavior if file does not exist.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)