Maxim Gekk created SPARK-25243:
----------------------------------

             Summary: Use FailureSafeParser in from_json
                 Key: SPARK-25243
                 URL: https://issues.apache.org/jira/browse/SPARK-25243
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 2.3.1
            Reporter: Maxim Gekk


The 
[FailureSafeParser|https://github.com/apache/spark/blob/a8a1ac01c4732f8a738b973c8486514cd88bf99b/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FailureSafeParser.scala#L28]
  is used in parsing JSON, CSV files and dataset of strings. It supports the 
[PERMISSIVE, DROPMALFORMED and 
FAILFAST|https://github.com/apache/spark/blob/5264164a67df498b73facae207eda12ee133be7d/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/ParseMode.scala#L31-L44]
 modes. The ticket aims to make the from_json function compatible to regular 
parsing via FailureSafeParser and support above modes



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

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

Reply via email to