You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/04/25 10:20:58 UTC
[GitHub] [spark] HyukjinKwon commented on a diff in pull request #36339: [SPARK-39001][SQL][DOCS] Document which options are unsupported in CSV and JSON functions
HyukjinKwon commented on code in PR #36339:
URL: https://github.com/apache/spark/pull/36339#discussion_r857475632
##########
docs/sql-data-sources-json.md:
##########
@@ -172,7 +172,7 @@ Data source options of JSON can be set via:
<td>Allows a mode for dealing with corrupt records during parsing.<br>
<ul>
<li><code>PERMISSIVE</code>: when it meets a corrupted record, puts the malformed string into a field configured by <code>columnNameOfCorruptRecord</code>, and sets malformed fields to <code>null</code>. To keep corrupt records, an user can set a string type field named <code>columnNameOfCorruptRecord</code> in an user-defined schema. If a schema does not have the field, it drops corrupt records during parsing. When inferring a schema, it implicitly adds a <code>columnNameOfCorruptRecord</code> field in an output schema.</li>
- <li><code>DROPMALFORMED</code>: ignores the whole corrupted records.</li>
+ <li><code>DROPMALFORMED</code>: ignores the whole corrupted records. This mode is unsupported in the JSON built-in functions.</li>
Review Comment:
Wording here is slightly different because it throws an exception that this mode is not supported. In other cases, they are no-op.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org