[ 
https://issues.apache.org/jira/browse/DRILL-4653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15557355#comment-15557355
 ] 

ASF GitHub Bot commented on DRILL-4653:
---------------------------------------

Github user kfaraaz commented on the issue:

    https://github.com/apache/drill/pull/518
  
    The below JSON is invalid, due to presence of duplicate key 'key'. Today 
Drill returns a DATA_READ error, does your proposed fix handle this case too ?
    [root@centos-01 ~]# cat f1.json
    {"key":"string", "key":123, "key":[1,2,3], "key":true, "key":false, 
"key":null, "key":{"key2":"b"}}
    
    Error returned by Drill 1.9.0
    
    0: jdbc:drill:schema=dfs.tmp> select * from `f1.json`;
    Error: DATA_READ ERROR: Error parsing JSON - You tried to write a BigInt 
type when you are using a ValueWriter of type NullableVarCharWriterImpl.
    
    File  /tmp/f1.json
    Record  1
    Fragment 0:0
    
    [Error Id: 06411bc5-2d59-4681-a84f-3f49086e18c0 on centos-01.qa.lab:31010] 
(state=,code=0)


> Malformed JSON should not stop the entire query from progressing
> ----------------------------------------------------------------
>
>                 Key: DRILL-4653
>                 URL: https://issues.apache.org/jira/browse/DRILL-4653
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Storage - JSON
>    Affects Versions: 1.6.0
>            Reporter: subbu srinivasan
>             Fix For: Future
>
>
> Currently Drill query terminates upon first encounter of a invalid JSON line.
> Drill has to continue progressing after ignoring the bad records. Something 
> similar to a setting of (ignore.malformed.json) would help.



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

Reply via email to