You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "XYenon (via GitHub)" <gi...@apache.org> on 2026/08/08 16:32:05 UTC

[PR] fix(json): use bytes sink for CBOR encoding [kvrocks]

XYenon opened a new pull request, #3580:
URL: https://github.com/apache/kvrocks/pull/3580

   ## Why
   
   `string_sink<std::string>` is incompatible with jsoncons 1.9.0 because the CBOR encoder appends buffers through `const uint8_t *`, while `string_sink<std::string>` expects `const char *`.
   
   Use `bytes_sink<std::string>`, which is intended for binary output and is also used by jsoncons' `encode_cbor` implementation. It is compatible with jsoncons 1.8.1 and 1.9.0 and produces the same serialized CBOR output.
   
   Related downstream update: https://github.com/NixOS/nixpkgs/pull/550324
   
   ## Validation
   
   - `./x.py build build-pr --ninja --unittest -j 8`
   - `./x.py test cpp build-pr` — 600 passed, 1 skipped
   - `./x.py test go build-pr -run 'TestJson/JSON_storage_format_CBOR' -count=1`
   - `./x.py check format --clang-format-path clang-format-18`
   - `./x.py check tidy build-pr -j 8 --clang-tidy-path clang-tidy-18 --run-clang-tidy-path run-clang-tidy-18`
   - `./x.py check golangci-lint`
   - `git diff --check`
   
   Prepared with assistance from Amp for investigating jsoncons API compatibility, preparing the focused change, and running local validation.


-- 
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: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(json): use bytes sink for CBOR encoding [kvrocks]

Posted by "jihuayu (via GitHub)" <gi...@apache.org>.
jihuayu merged PR #3580:
URL: https://github.com/apache/kvrocks/pull/3580


-- 
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: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org