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

Sorabh Hamirwasia updated DRILL-7060:
-------------------------------------
    Labels: ready-to-commit  (was: )

> Support JsonParser Feature 'ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER' in 
> JsonReader
> ---------------------------------------------------------------------------------
>
>                 Key: DRILL-7060
>                 URL: https://issues.apache.org/jira/browse/DRILL-7060
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Storage - JSON
>    Affects Versions: 1.15.0, 1.16.0
>            Reporter: Abhishek Girish
>            Assignee: Abhishek Girish
>            Priority: Major
>              Labels: ready-to-commit
>             Fix For: 1.16.0
>
>
> Some JSON files may have strings with backslashes - which are read as escape 
> characters. By default only standard escape characters are allowed. So 
> querying such files would fail. For example see:
> Data
> {code}
> {"file":"C:\Sfiles\escape.json"}
> {code}
> Error
> {code}
> (com.fasterxml.jackson.core.JsonParseException) Unrecognized character escape 
> 'S' (code 83)
>  at [Source: (org.apache.drill.exec.store.dfs.DrillFSDataInputStream); line: 
> 1, column: 178]
>     com.fasterxml.jackson.core.JsonParser._constructError():1804
>     com.fasterxml.jackson.core.base.ParserMinimalBase._reportError():663
>     
> com.fasterxml.jackson.core.base.ParserMinimalBase._handleUnrecognizedCharacterEscape():640
>     com.fasterxml.jackson.core.json.UTF8StreamJsonParser._decodeEscaped():3243
>     com.fasterxml.jackson.core.json.UTF8StreamJsonParser._skipString():2537
>     com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken():683
>     org.apache.drill.exec.vector.complex.fn.JsonReader.writeData():342
>     org.apache.drill.exec.vector.complex.fn.JsonReader.writeDataSwitch():298
>     org.apache.drill.exec.vector.complex.fn.JsonReader.writeToVector():246
>     org.apache.drill.exec.vector.complex.fn.JsonReader.write():205
>     org.apache.drill.exec.store.easy.json.JSONRecordReader.next():216
>     org.apache.drill.exec.physical.impl.ScanBatch.internalNext():223
> ...
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to