Skip to content

feat(python): expose enable_stable_row_ids in commit()#5908

Merged
wjones127 merged 2 commits intolance-format:mainfrom
fecet:feat/commit-enable-stable-row-ids
Feb 12, 2026
Merged

feat(python): expose enable_stable_row_ids in commit()#5908
wjones127 merged 2 commits intolance-format:mainfrom
fecet:feat/commit-enable-stable-row-ids

Conversation

@fecet
Copy link
Copy Markdown
Contributor

@fecet fecet commented Feb 7, 2026

Summary

  • Expose enable_stable_row_ids parameter in LanceDataset.commit() and commit_transaction(), allowing atomic creation of datasets with stable row IDs via the commit path.
  • Thread the parameter through Python → PyO3 → CommitBuilder.use_stable_row_ids().

Closes #5906

Test plan

  • cargo check -p pylance passes
  • cargo clippy -p pylance passes with no warnings
  • New test test_commit_with_stable_row_ids verifies that commit(Overwrite, enable_stable_row_ids=True) creates a dataset with sequential stable row IDs across append

…t_transaction()`

Allow setting `enable_stable_row_ids` when creating a dataset via the
`commit()` path, enabling atomic creation of datasets with stable row
IDs. The parameter is threaded through Python → PyO3 → CommitBuilder.

Closes lance-format#5906
@github-actions github-actions Bot added enhancement New feature or request python labels Feb 7, 2026
@brunoalano
Copy link
Copy Markdown

@fecet any estimated date to merge this PR?

Comment thread python/python/lance/dataset.py Outdated
@wjones127 wjones127 self-assigned this Feb 11, 2026
Copy link
Copy Markdown
Contributor Author

@fecet fecet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed: updated the docstring to clarify that enable_stable_row_ids only applies when creating a new dataset.

@wjones127 wjones127 merged commit 255a7ed into lance-format:main Feb 12, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LanceDataset.commit(Overwrite) cannot set enable_stable_row_ids feature flag

3 participants