Github user gengliangwang commented on a diff in the pull request: https://github.com/apache/spark/pull/22814#discussion_r228064742 --- Diff: docs/sql-data-sources-avro.md --- @@ -177,6 +180,18 @@ Data source options of Avro can be set using the `.option` method on `DataFrameR Currently supported codecs are <code>uncompressed</code>, <code>snappy</code>, <code>deflate</code>, <code>bzip2</code> and <code>xz</code>.<br> If the option is not set, the configuration <code>spark.sql.avro.compression.codec</code> config is taken into account.</td> <td>write</td> </tr> + <tr> + <td><code>mode</code></td> + <td>PERMISSIVE</td> + <td>The <code>mode</code> option allows to specify parse mode for function <code>from_avro</code>.<br> + Currently supported modes are: + <ul> + <li><code>PERMISSIVE</code>: Corrupt records are processed as null result.</li> --- End diff -- If the input schema is not `record` type in Avro, e.g. a `int`, then it is simply `null`. Just try using the wording "null result" to include both case.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org