Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/11881#discussion_r56946310
--- Diff: python/pyspark/sql/readwriter.py ---
@@ -166,10 +166,13 @@ def json(self, path, schema=None):
during parsing.
* ``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 \
+ ``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.
+ * ``columnNameOfCorruptRecord`` (default
``_corrupt_record``): allows renaming the \
+ new field having malformed string created by
``PERMISSIVE`` mode. \
+ This overwrites ``spark.sql.columnNameOfCorruptRecord``.
--- End diff --
overrides?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]