You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2021/05/25 08:13:00 UTC

[jira] [Commented] (SPARK-21756) Add JSON option to allow unquoted control characters

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

Apache Spark commented on SPARK-21756:
--------------------------------------

User 'vinodkc' has created a pull request for this issue:
https://github.com/apache/spark/pull/19008

> Add JSON option to allow unquoted control characters
> ----------------------------------------------------
>
>                 Key: SPARK-21756
>                 URL: https://issues.apache.org/jira/browse/SPARK-21756
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.1.0
>            Reporter: Bryan Chen
>            Assignee: Vinod KC
>            Priority: Major
>             Fix For: 2.3.0
>
>
> Hi, we have unquoted control chars in raw json data and the JSON reader just failed at parsing those and complains they are malformed records.
> Can we add an allowUnquotedControlChars in JSONOptions for this scenario? The default value would be set to false according to the spec though.
> {panel:title=From JacksonParser}
>         /**
>          * Feature that determines whether parser will allow
>          * JSON Strings to contain unquoted control characters
>          * (ASCII characters with value less than 32, including
>          * tab and line feed characters) or not.
>          * If feature is set false, an exception is thrown if such a
>          * character is encountered.
>          *<p>
>          * Since JSON specification requires quoting for all control characters,
>          * this is a non-standard feature, and as such disabled by default.
>          */
>         ALLOW_UNQUOTED_CONTROL_CHARS(false),
> {panel}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org