Github user HyukjinKwon commented on the issue:
https://github.com/apache/spark/pull/16386
> the corrupt column will contain the filename instead of the literal JSON
if there is a parsing failure
I am worried of changing the behaviour. I understand why it had to be here
as you described in the description but we have `input_file_name` functions for
these. I would not expect, at least, there are file names in `_corrupt_record`.
We need to document this around `spark.sql.columnNameOfCorruptRecord` in
`SQLConf` and `columnNameOfCorruptRecord` in read/writer in Python and Scala if
this is acceptable.
---
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]