Skip to content

docs: document version checkout via lance_dataset_open#19

Merged
jja725 merged 1 commit intolance-format:mainfrom
LuciferYang:feat/issue-13-checkout-docs
Apr 27, 2026
Merged

docs: document version checkout via lance_dataset_open#19
jja725 merged 1 commit intolance-format:mainfrom
LuciferYang:feat/issue-13-checkout-docs

Conversation

@LuciferYang
Copy link
Copy Markdown
Contributor

Summary

  • Adds an inline example for opening at a specific version to lance_dataset_open's C and C++ docstrings
  • Adds a short "Open at a specific version" section to the README usage block

Motivation

lance_dataset_open already takes a version argument (0 = latest, otherwise the specific version id), but it was buried in the parameter list and easy to miss. With lance_dataset_versions (#17) now available, time-travel is a two-line recipe — this makes that recipe discoverable without reading the source.

No ABI or code changes.

Closes #13.

lance_dataset_open already takes a version argument — 0 for latest, any
other id for that specific version — but the capability wasn't obvious
from the existing docstrings. This adds an inline example to the C
header and C++ wrapper, and a short "Open at a specific version" section
to the README so checkout is discoverable without reading the source.

No ABI or code changes.

Closes lance-format#13.
Copy link
Copy Markdown
Collaborator

@jja725 jja725 left a comment

Choose a reason for hiding this comment

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

LGTM. Docs-only — README example matches the C/C++ docstrings, version sentinel (0 = latest) is consistent with the existing lance_dataset_open signature.

@jja725 jja725 self-requested a review April 27, 2026 20:06
@jja725 jja725 merged commit 7657f0f into lance-format:main Apr 27, 2026
7 checks passed
jja725 added a commit that referenced this pull request Apr 28, 2026
## Summary

Bring the README roadmap in line with what actually shipped on `main`:

- Fix the **header path links** at the top — `include/lance.h` /
`include/lance.hpp` 404'd after #26 (Phase 4 packaging) moved the
headers under `include/lance/`.
- **Phase 3 → Dataset write**: flip `[ ]` → `[x]` (`lance_dataset_write`
from #16, `lance_dataset_write_with_params` from #20).
- **Phase 3 → Version management**: flip `[ ]` → `[x]` — list
(`lance_dataset_versions`, #18), rollback (`lance_dataset_restore`,
#18), and version checkout (`lance_dataset_open(uri, opts, version)`,
documented in #19).
- **Additional features**: add `Substrait filter pushdown` row pointing
at `lance_scanner_set_substrait_filter` (#25).

No source changes; docs only.

## Test plan

- [x] Markdown renders correctly (links resolve to
`include/lance/lance.h` and `include/lance/lance.hpp`)
- [x] `git diff origin/main` shows only the four targeted edits
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.

Document version checkout via lance_dataset_open

2 participants