spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cloud-fan <>
Subject [GitHub] spark pull request: [SPARK-13764][SQL] Parse modes in JSON data so...
Date Wed, 16 Mar 2016 12:16:10 GMT
Github user cloud-fan commented on a diff in the pull request:
    --- Diff: python/pyspark/sql/ ---
    @@ -162,6 +162,14 @@ def json(self, path, schema=None):
                     (e.g. 00012)
                 * ``allowBackslashEscapingAnyCharacter`` (default ``false``): allows accepting
quoting \
                     of all character using backslash quoting mechanism
    +            *  ``mode`` (default ``PERMISSIVE``): allows a mode for dealing with corrupt
records \
    +                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 \
    +                 ``null`` for extra fields.
    +                *  ``DROPMALFORMED`` : ignores the whole corrupted records and append.
    --- End diff --
    should remove `and append`?

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message