You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@tsfile.apache.org by "ColinLeeo (via GitHub)" <gi...@apache.org> on 2026/10/08 08:05:56 UTC
[PR] fix(cpp): preserve quoted CSV line endings in tsfile-cli [tsfile]
ColinLeeo opened a new pull request, #996:
URL: https://github.com/apache/tsfile/pull/996
CSV imports currently turn CRLF inside quoted fields into LF because `read_record` strips each physical line's trailing carriage return before checking quote state. For example, `"line\r\nbreak"` loses its `\r` during import and subsequent CSV round trips.
Check quote state before trimming record boundaries so quoted CRLF, LF, and CR remain field data. Open input files in binary mode and keep redirected stdin/stdout in binary mode on Windows to prevent CRT newline translation.
Regression coverage checks mixed line endings, blank continuation lines, escaped quotes, physical line counts, EOF without a final newline, STRING tags, STRING/TEXT fields, and both `write → cat CSV → write` and `write → export CSV → write`.
Validation:
- Fresh Release build with LZ4 enabled on macOS.
- CLI and common CSV tests: 200 passed.
- Eight binary CLI scenarios covering LF/CRLF record boundaries, file/stdin input, and optional final newlines: passed.
- Scoped Spotless and clang-format 17.0.6 checks: passed.
The Windows-specific stream setup has not been exercised locally.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@tsfile.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(cpp): preserve quoted CSV line endings in tsfile-cli [tsfile]
Posted by "ColinLeeo (via GitHub)" <gi...@apache.org>.
ColinLeeo merged PR #996:
URL: https://github.com/apache/tsfile/pull/996
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@tsfile.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org