Repository navigation
fix: update tsfile cli and add auto-updating boundary in CLAUDE.md - #1108
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
GORILLA_V1 accepts CSV NaN values despite reserving NaN as an end sentinel, allowing successful writes that fail to round-trip and requiring input rejection plus an embedded-NaN regression test.
1 open issue
What changed in this PR
This PR reduces memory use in the C++ CLI’s row-output path and aligns encoding validation with SDK capabilities, including ALP support.
Changes:
- Stage stdout on disk, publish in 64 KiB blocks, and stream exports to temporary targets.
- Reclaim previous rows’ materialized strings and add output and codec regression coverage.
- Update documentation and require SDK changes to synchronize applicable CLI functionality, tests, and skills.
| File | Description |
|---|---|
| skills/tsfile/references/encoding-compression.md | Document CLI codec support and RLE precision. |
| skills/tsfile/references/cpp.md | Clarify result-row string lifetimes. |
| skills/tsfile-cli/SKILL.md | Update output staging and codec guidance. |
| cpp/tools/skills/tsfile-cli/SKILL.md | Synchronize packaged CLI guidance. |
| cpp/tools/README.md | Explain disk staging and expanded encoding support. |
| cpp/tools/format/staged_output.h | Declare disk-backed output staging. |
| cpp/tools/format/staged_output.cc | Implement buffered staging and publication. |
| cpp/tools/format/output_format.cc | Reuse SDK encoding names. |
| cpp/tools/commands/row_query.cc | Integrate optional disk-backed staging. |
| cpp/tools/commands/commands.h | Expose the output-staging option. |
| cpp/tools/commands/cmd_write.cc | Validate encodings through SDK factories. |
| cpp/tools/commands/cmd_export.cc | Bypass redundant export staging. |
| cpp/test/tools/output_format_test.cc | Test staging, output failures, and encoding names. |
| cpp/test/tools/command_e2e_test.cc | Verify bounded publication writes. |
| cpp/test/tools/codec_round_trip_test.cc | Exercise 160 type/encoding combinations. |
| cpp/test/reader/block/reusable_tsblock_test.cc | Test row-string memory reclamation. |
| cpp/src/reader/table_result_set.cc | Release previous rows’ string storage. |
| CLAUDE.md | Require SDK, CLI, and skill synchronization. |
Review effort: Balanced
Contributor
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
4 open issues
EncoderFactory::free/DecoderFactory::freeare called unconditionally, but… · New Reject embedded NaNs in GORILLA_V1 inputparse_encoding_name()now accepts any string present incommon::s_encoding_names, which can… · Newpublish()assumesfile_is non-null, but it only checksstream_.good(). If a caller ever… · New
Review effort: Lite
Copilot stopped reviewing on behalf of
ColinLeeo due to an error
November 16, 2026 17:19
Use std::end(buffer_) for the streambuf put-area bounds so CodeQL's cpp/suspicious-add-sizeof check no longer flags the char array, and guard publish() against a null tmpfile stream before touching it.
ColinLeeo
approved these changes
Nov 18, 2026
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.


Summary