drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Phillips (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-2817) Drill should throw a more meaningful error message when we have json records separated by ',' in a file
Date Tue, 07 Jul 2015 00:51:04 GMT

     [ 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:     (was: 1.2.0)
                   1.3.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.3.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)

Mime
View raw message