Skip to content
This repository was archived by the owner on Nov 21, 2026. It is now read-only.

bindings: insert_columns takes a commit_every beyond 32 bits like insert_many, and lookup_by_key's docstring says what it returns - #323

Merged
tae898 merged 1 commit into
mainfrom
fix/insert-columns-commit-every
Oct 13, 2026
Merged

tae898 merged 1 commit into
mainfrom
fix/insert-columns-commit-every

Conversation

@tae898

@tae898 tae898 commented Oct 13, 2026

Copy link
Copy Markdown

Fixes #322.

insert_columns clamps commit_every at 2**31 - 1 before it crosses into the Java int, so any int works as it does for insert_many. The docstring of lookup_by_key now describes the first matching record or None that the method returns (the API page already did).

Checked before the push, on cores 8-9, against a wheel built from this branch's sources: the new test (three values, 231, 1010, and 2**63 - 1) fails on main and passes here; test_insert_columns.py, test_bulk_insert.py, and test_core.py pass (104 tests); the repro of #322 inserts 5 rows for every value; pre-commit on the changed files and mkdocs build --strict pass.

Swept: insert_many converts commit_every in Python and needs no clamp. The other uses of a commit count (graph_batch, the importer, the async executor) are configuration of engine builders with their own limits; I did not change or test them.

🤖 Generated with Claude Code

https://claude.ai/code/session_01222vQiEr2wJRo4UhFYo9Fv

…ert_many, and lookup_by_key's docstring says what it returns (Fixes #322)

The Java loop counts in an int, so commit_every of 2**31 or more raised before anything was written. It is clamped at 2**31 - 1, which means never within one call, as a larger value does for insert_many.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01222vQiEr2wJRo4UhFYo9Fv
@tae898
tae898 merged commit e42eec1 into main Oct 13, 2026
50 checks passed
@tae898
tae898 deleted the fix/insert-columns-commit-every branch October 13, 2026 20:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

insert_columns raises 'Cannot convert value to Java int' for a commit_every beyond 32 bits, which insert_many accepts

1 participant