Github user HyukjinKwon commented on the issue:
https://github.com/apache/spark/pull/17693
I like the idea but I am not sure of `DROPMALFORMED` mode though. If we use
an expression with the mode enabled, whole record (not only the column but all
columns) will be dropped in some json expressions, probably not a generator
expressions (did I understand correctly?).
I think we don't explicitly support parse modes in both
`from_json`/`to_json` -
https://github.com/apache/spark/blob/465818389aab1217c9de5c685cfaee3ffaec91bb/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/jsonExpressions.scala#L551
It sets `FAILFAST` but resembles `PERMISSIVE` mode up to my knowledge.
---
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]