cloud-fan commented on PR #58977:
URL: https://github.com/apache/spark/pull/58977#issuecomment-6774265157

   Thanks for the rework. On the legacy flag: yes, please add an internal 
`spark.sql.legacy.*` configuration that restores exact matching of 
`columnNameOfCorruptRecord` for the CSV and JSON readers, `from_csv` and 
`from_json`, and name it in the migration guide. Users whose data has a column 
named like the option apart from case lose that column's values on upgrade, and 
`spark.sql.caseSensitive=true` is not a good way back for them: it is an 
internal config whose doc discourages enabling it, and it changes how every 
identifier in the session resolves. This review raises the flag as a finding. 
It also raises three related issues: `from_csv` and `from_json` still read 
`spark.sql.caseSensitive` where the task runs, so the `df.rdd` disagreement can 
still happen for them; JSON pruning can still turn a case-variant data field 
into the corrupt record column when the schema also has an exactly named one; 
and the `from_xml` path has no TODO yet.
   
   <!-- SPARK_DEV_REVIEW_REPLY 
{"feedback_id":"conversation:6770611603","thread_id":"conversation:6770611603","verdict_sha256":"8bc5603e59edfaaf5929a77b4484535e8fd52580a050e2148f32b118522ed737"}
 -->


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to