Parse CRLF with TSV files#59747
Conversation
|
This is an automatic comment. The PR descriptions does not match the template. Please, edit it accordingly. The error is: Changelog category is empty |
2 similar comments
|
This is an automatic comment. The PR descriptions does not match the template. Please, edit it accordingly. The error is: Changelog category is empty |
|
This is an automatic comment. The PR descriptions does not match the template. Please, edit it accordingly. The error is: Changelog category is empty |
|
I will take a look when I am back from vacation next week |
|
This is an automated comment for commit 4cfe266 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
|
@Avogar is there a way to check what is causing the A Sync check to fail? I don't see any logs or further details on this one when I follow the link from the robot-clickhouse comment - link seems broken. |
|
A Sync is a special internal check for developers, I will fix it, don't worry about it |
…parse_crlf_with_TSV_files
…parse_crlf_with_TSV_files
…erence Removed mispelled file
|
I actually don't understand why build fails in file that wasn't changed in this PR... |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
User can now parse CRLF with TSV format using a setting
input_format_tsv_crlf_end_of_line. Closes #56257.Documentation entry for user-facing changes
Description of changes made
input_format_tsv_crlf_end_of_linebool support_crlftoreadEscapedStringIntoandreadEscapedStringIntoImplas well as toreadTSVFieldreadEscapedStringI added a new functionreadEscapedStringCRLF, the reasoning behind this being thatreadEscapedStringis used in many other places in the code base.readEscapedStringIntoImplto parse Fields correctly in the case thatsupport_crlfis true.checkForCarriageReturnandskipRowEndDelimiterso that exceptions are not thrown with crlfI used the attached data set for testing and used
unix2dos data_small.tsvanddos2unix data_small.tsvto convert back and forth between line ending types to testhttps://gist.github.com/Blargian/0e36a74519d9c52ed0d0fba13ce5fc78