[SPARK-26122][SQL] Support encoding for multiLine in CSV datasource#23091
Closed
MaxGekk wants to merge 4 commits intoapache:masterfrom
Closed
[SPARK-26122][SQL] Support encoding for multiLine in CSV datasource#23091MaxGekk wants to merge 4 commits intoapache:masterfrom
MaxGekk wants to merge 4 commits intoapache:masterfrom
Conversation
Member
Author
|
@HyukjinKwon Please, take a look at the PR. |
HyukjinKwon
approved these changes
Nov 20, 2018
Member
HyukjinKwon
left a comment
There was a problem hiding this comment.
LGTM if the tests pass. I already tested this locally a while ago.
Member
|
FYI hey @priancho IIRC, you proposed a similar change before in the mailing list. I wasn't positive about that because I was thinking we should deprecate |
|
Test build #99021 has finished for PR 23091 at commit
|
Member
|
Merged to master. |
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? In the PR, I propose to pass the CSV option `encoding`/`charset` to `uniVocity` parser to allow parsing CSV files in different encodings when `multiLine` is enabled. The value of the option is passed to the `beginParsing` method of `CSVParser`. ## How was this patch tested? Added new test to `CSVSuite` for different encodings and enabled/disabled header. Closes apache#23091 from MaxGekk/csv-miltiline-encoding. Authored-by: Maxim Gekk <maxim.gekk@databricks.com> Signed-off-by: hyukjinkwon <gurwls223@apache.org>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
In the PR, I propose to pass the CSV option
encoding/charsettouniVocityparser to allow parsing CSV files in different encodings whenmultiLineis enabled. The value of the option is passed to thebeginParsingmethod ofCSVParser.How was this patch tested?
Added new test to
CSVSuitefor different encodings and enabled/disabled header.