-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-26151][SQL][FOLLOWUP] Return partial results for bad CSV records #23235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-26151][SQL][FOLLOWUP] Return partial results for bad CSV records #23235
Conversation
|
@cloud-fan Please, have a look at the PR. |
|
Test build #99720 has finished for PR 23235 at commit
|
docs/sql-migration-guide-upgrade.md
Outdated
|
|
||
| - Since Spark 3.0, CSV datasource uses java.time API for parsing and generating CSV content. New formatting implementation supports date/timestamp patterns conformed to ISO 8601. To switch back to the implementation used in Spark 2.4 and earlier, set `spark.sql.legacy.timeParser.enabled` to `true`. | ||
|
|
||
| - In Spark version 2.4 and earlier, CSV datasource converts a malformed CSV string to a row with all `null`s in the PERMISSIVE mode if specified schema is `StructType`. Since Spark 3.0, returned row can contain non-`null` fields if some of CSV column values were parsed and converted to desired types successfully. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, from_csv and to_csv are added in 3.0 so it's intentionally not mentioned. BTW, I think CSV functionalities can only have StructType so maybe we don't have to mention.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right. I will remove the part about StructType
|
Test build #99728 has finished for PR 23235 at commit
|
|
thanks, merging to master! |
## What changes were proposed in this pull request? Updated SQL migration guide according to changes in apache#23120 Closes apache#23235 from MaxGekk/failuresafe-partial-result-followup. Lead-authored-by: Maxim Gekk <maxim.gekk@databricks.com> Co-authored-by: Maxim Gekk <max.gekk@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
What changes were proposed in this pull request?
Updated SQL migration guide according to changes in #23120