Description
Currently, JSON data source just fails to read if some JSON documents are malformed.
PERMISSIVE : sets other fields to null when it meets a corrupted record and puts the malformed string into a new field configured by spark.sql.columnNameOfCorruptRecord. When a schema is set by user, it sets null for extra fields.
DROPMALFORMED : ignores the whole corrupted records.
FAILFAST: throws an exception when it meets corrupted records.
Attachments
Issue Links
- relates to
-
SPARK-3308 Ability to read JSON Arrays as tables
- Resolved
- links to