feat: add a fast dataset version ID API#6303
Conversation
|
ACTION NEEDED The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification. For details on the error please inspect the "PR Title Check" action. |
PR ReviewClean, well-scoped change. The fast path avoids constructing the full No blocking issues found. Tests cover current, updated, and historical version reads across all three languages. JNI pattern is consistent with existing One minor note (non-blocking): LGTM. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
Dataset::version_id()in Rust to return the checked-out manifest version without building full version metadatadataset.versionand default checkout refs through the new fast pathDataset.version()through a new JNI version-id accessor while keepinggetVersion()unchangedTesting
cargo test -p lance test_version_id_fast_pathcargo check --manifest-path java/lance-jni/Cargo.tomlcargo check --manifest-path python/Cargo.tomlpytestunavailable)