Finish support for RFC4180 for CSV bulk insert operations#2338
Merged
lilgreenbird merged 2 commits intomicrosoft:mainfrom Apr 1, 2024
Merged
Finish support for RFC4180 for CSV bulk insert operations#2338lilgreenbird merged 2 commits intomicrosoft:mainfrom
lilgreenbird merged 2 commits intomicrosoft:mainfrom
Conversation
…umnDelimitersCSV is set to true
Contributor
Author
|
@microsoft-github-policy-service agree |
Contributor
|
thank you for your contribution, the team will take a look at this when time permits |
barryw-mssql
previously approved these changes
Mar 21, 2024
Contributor
barryw-mssql
left a comment
There was a problem hiding this comment.
Appears to handle newline in Mac, Linux, and Windows formats
Jeffery-Wasty
previously approved these changes
Mar 21, 2024
lilgreenbird
suggested changes
Mar 26, 2024
Contributor
lilgreenbird
left a comment
There was a problem hiding this comment.
please use file formatter to format this PR
tkyc
previously approved these changes
Mar 26, 2024
lilgreenbird
suggested changes
Mar 26, 2024
Contributor
lilgreenbird
left a comment
There was a problem hiding this comment.
please use file formatter to format this PR all files need to be formatted before merge
32656a6
Contributor
Author
I think I have what you are looking for now. |
lilgreenbird
approved these changes
Mar 27, 2024
Jeffery-Wasty
approved these changes
Mar 27, 2024
barryw-mssql
approved these changes
Mar 27, 2024
tkyc
approved these changes
Mar 27, 2024
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.
RFC4180 specifies support for fields that contain newlines as long as they are quoted. See section 6 in the specification here: https://www.ietf.org/rfc/rfc4180.txt
This PR enhances the read operation when the option escapeColumnDelimitersCSV is set to true to allow newline characters to survive the CSV parse process and find their way into the record. An existing unit test was enhanced to test the behavior.