You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Steven Phillips (JIRA)" <ji...@apache.org> on 2015/04/29 00:20:06 UTC

[jira] [Updated] (DRILL-2817) Drill should throw a more meaningful error message when we have json records separated by ',' in a file

     [ https://issues.apache.org/jira/browse/DRILL-2817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Phillips updated DRILL-2817:
-----------------------------------
    Fix Version/s: 1.0.0

> Drill should throw a more meaningful error message when we have json records separated by ',' in a file
> -------------------------------------------------------------------------------------------------------
>
>                 Key: DRILL-2817
>                 URL: https://issues.apache.org/jira/browse/DRILL-2817
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - JSON
>            Reporter: Rahul Challapalli
>            Assignee: Steven Phillips
>              Labels: error_message_must_fix
>             Fix For: 1.0.0
>
>
> git.commit.id.abbrev=5cd36c5
> Data Set contains records separated by ',':
> {code}
> {
>   "id" : 1
> },
> {
>   "id" : 2
> }
> {code}
> Query from Drill :
> {code}
> select * from `temp.json`;
> Query failed: DATA_READ ERROR: Error parsing JSON. - Unexpected character (',' (code 44)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
> Filename /drill/testdata/complex/json/temp.json
> Record 2
> Column 3
> Fragment 0:0
> [9803ff81-7329-4e13-ae7d-b1004502384f on qa-node191.qa.lab:31010]
> Error: exception while executing query: Failure while executing query. (state=,code=0)
> {code}
> We should improve the error message to iindicate that we should not use ',' to separate json records.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)