Skip to content

fix(java): reuse session for OpenDatasetBuilder.buildFromNamespaceClient#6536

Open
fangbo wants to merge 2 commits into
lance-format:mainfrom
fangbo:set-session-open-dataset
Open

fix(java): reuse session for OpenDatasetBuilder.buildFromNamespaceClient#6536
fangbo wants to merge 2 commits into
lance-format:mainfrom
fangbo:set-session-open-dataset

Conversation

@fangbo

@fangbo fangbo commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

@jackye1995 I think the session can be reused. Could you please take a look and see if this makes sense? Thank you.

@github-actions github-actions Bot added bug Something isn't working A-java Java bindings + JNI labels Apr 16, 2026
@fangbo

fangbo commented Apr 16, 2026

Copy link
Copy Markdown
Contributor Author

Related lance-format/lance-spark#353 cc @LuciferYang

@fangbo
fangbo force-pushed the set-session-open-dataset branch from 170b95e to 37b25f3 Compare April 16, 2026 09:01

@LuciferYang LuciferYang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: can we add a test that opens a dataset via namespace client with a ReadOptions-level session and verifies cache reuse would prevent this class of regression.

@fangbo
fangbo force-pushed the set-session-open-dataset branch from 37b25f3 to dcfc666 Compare April 23, 2026 07:51
@fangbo

fangbo commented Apr 23, 2026

Copy link
Copy Markdown
Contributor Author

nit: can we add a test that opens a dataset via namespace client with a ReadOptions-level session and verifies cache reuse would prevent this class of regression.

Thank you for advice. I have added a test case for this modification.

@fangbo
fangbo force-pushed the set-session-open-dataset branch from c6c5ba4 to 4bd0467 Compare April 24, 2026 02:09

@LuciferYang LuciferYang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1, LGTM

@fangbo
fangbo force-pushed the set-session-open-dataset branch from 4bd0467 to ff5bce2 Compare April 24, 2026 07:13
@github-actions github-actions Bot added the Stale label Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-java Java bindings + JNI bug Something isn't working Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants