You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "John Zhuge (JIRA)" <ji...@apache.org> on 2019/02/22 01:38:00 UTC

[jira] [Resolved] (SPARK-20314) Inconsistent error handling in JSON parsing SQL functions

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

John Zhuge resolved SPARK-20314.
--------------------------------
    Resolution: Duplicate

Resolve it as duplicate.

> Inconsistent error handling in JSON parsing SQL functions
> ---------------------------------------------------------
>
>                 Key: SPARK-20314
>                 URL: https://issues.apache.org/jira/browse/SPARK-20314
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.1.0
>            Reporter: Eric Wasserman
>            Priority: Major
>
> Most parse errors in the JSON parsing SQL functions (e.g. json_tuple, get_json_object) will return a null(s) if the JSON is badly formed. However, if Jackson determines that the string includes invalid characters it will throw an exception (java.io.CharConversionException: Invalid UTF-32 character) that Spark does not catch. This creates a robustness problem in that these functions cannot be used at all when there may be dirty data as these exceptions will kill the jobs.



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

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