Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/11756#discussion_r56306144
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/DataFrameReader.scala ---
@@ -288,6 +288,9 @@ class DataFrameReader private[sql](sqlContext:
SQLContext) extends Logging {
* </li>
* <li>`allowNumericLeadingZeros` (default `false`): allows leading
zeros in numbers
* (e.g. 00012)</li>
+ * <li>`mode` (default `PERMISSIVE`): allows a mode for dealing with
corrupt records
+ * during parsing. When fails to parse, `PERMISSIVE` mode sets `null`,
`DROPMALFORMED` drops the
+ * record and `FAILFAST` throws an exception.<li>
--- End diff --
Could I maybe edit this without some examples? It is becoming a bit messy..
---
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]