Skip to content

Conversation

@fangbo
Copy link
Contributor

@fangbo fangbo commented Feb 3, 2026

If the new dataset's allocator does not init. The operation on the new dataset will fail.

@majin1102 Could you please review it. Thank you .

@github-actions github-actions bot added bug Something isn't working java labels Feb 3, 2026
Copy link
Contributor

@majin1102 majin1102 left a comment

Choose a reason for hiding this comment

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

Thanks for working on this.
Left one comment.

try (LockManager.ReadLock readLock = lockManager.acquireReadLock()) {
Preconditions.checkArgument(nativeDatasetHandle != 0, "Dataset is closed");
return nativeCheckout(ref);
Dataset newDataset = nativeCheckout(ref);
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we could add some tests to verify operational after checking out branches?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add getSchema invoking on new dataset in test cases.

Copy link
Contributor

@majin1102 majin1102 left a comment

Choose a reason for hiding this comment

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

looks good to me

@majin1102 majin1102 merged commit 556851b into lance-format:main Feb 3, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working java

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants