Skip to content

[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

Closed

Conversation

MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Dec 5, 2018

What changes were proposed in this pull request?

Updated SQL migration guide according to changes in #23120

@MaxGekk
Copy link
Member Author

MaxGekk commented Dec 5, 2018

@cloud-fan Please, have a look at the PR.

@SparkQA
Copy link

SparkQA commented Dec 5, 2018

Test build #99720 has finished for PR 23235 at commit 8c115f7.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@@ -35,6 +35,8 @@ displayTitle: Spark SQL Upgrading Guide

- 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.
Copy link
Member

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.

Copy link
Member Author

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

@SparkQA
Copy link

SparkQA commented Dec 5, 2018

Test build #99728 has finished for PR 23235 at commit 463f9e1.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@asfgit asfgit closed this in dd518a1 Dec 5, 2018
jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
## 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>
@MaxGekk MaxGekk deleted the failuresafe-partial-result-followup branch August 17, 2019 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants