-
Notifications
You must be signed in to change notification settings - Fork 28.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-49016][SQL] Restore the behavior that queries from raw CSV fil…
…es are disallowed when only include corrupt record column and assign name to `_LEGACY_ERROR_TEMP_1285` ### What changes were proposed in this pull request? From SQL migration guide:https://spark.apache.org/docs/latest/sql-migration-guide.html#upgrading-from-spark-sql-22-to-23 <img width="891" alt="image" src="https://github.com/user-attachments/assets/7745ec28-6484-44b0-ace1-5c21927659f3"> But the behavior related to CSV is inconsistent with the description in the document. After PR #35817 , the related code has been removed. ### Why are the changes needed? Maintain documentation and code consistency to avoid misunderstandings. ### Does this PR introduce _any_ user-facing change? Yes, but correct the result and keep the same as docs. ### How was this patch tested? Pass GA and add a test case. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #47506 from wayneguow/SPARK-49016. Authored-by: Wei Guo <[email protected]> Signed-off-by: Max Gekk <[email protected]>
- Loading branch information
Showing
6 changed files
with
54 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters