This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Repository navigation
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
Conversation
…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
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes #322.
insert_columnsclampscommit_everyat 2**31 - 1 before it crosses into the Javaint, so any int works as it does forinsert_many. The docstring oflookup_by_keynow describes the first matching record orNonethat 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, andtest_core.pypass (104 tests); the repro of #322 inserts 5 rows for every value;pre-commiton the changed files andmkdocs build --strictpass.Swept:
insert_manyconvertscommit_everyin 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