Skip to content

Reject negative varint values - #401

Merged
ruslandoga merged 4 commits into
masterfrom
rd/reject-negative-varints
Aug 2, 2026
Merged

Reject negative varint values#401
ruslandoga merged 4 commits into
masterfrom
rd/reject-negative-varints

Conversation

@ruslandoga

Copy link
Copy Markdown
Collaborator

Summary

  • Reject negative integer values passed to encode(:varint, value) with an ArgumentError.
  • Add regression coverage for negative varint encoding.

Tests

  • mix test test/ch/row_binary_test.exs (62 passed)
  • mix test (472/474 passed; two unrelated property tests encountered pre-existing ClickHouse tables)

Comment thread lib/ch/row_binary.ex Outdated
Comment thread test/ch/row_binary_test.exs Outdated
Comment thread test/ch/row_binary_test.exs Outdated
@ruslandoga
ruslandoga merged commit c6bb5b2 into master Aug 2, 2026
3 checks passed
@ruslandoga
ruslandoga deleted the rd/reject-negative-varints branch August 2, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant