Skip to content

feat: add additional index APIs to support count rows split plan#5447

Merged
jackye1995 merged 3 commits intolance-format:mainfrom
jackye1995:count-missing
Dec 11, 2025
Merged

feat: add additional index APIs to support count rows split plan#5447
jackye1995 merged 3 commits intolance-format:mainfrom
jackye1995:count-missing

Conversation

@jackye1995
Copy link
Copy Markdown
Contributor

@jackye1995 jackye1995 commented Dec 9, 2025

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@github-actions github-actions Bot added enhancement New feature or request java labels Dec 9, 2025
@jackye1995 jackye1995 changed the title feat: add additional index APIs to support split plan feat: add additional index APIs to support count rows split plan Dec 10, 2025
@jackye1995 jackye1995 requested a review from majin1102 December 10, 2025 00:24
Copy link
Copy Markdown
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 some comments.
Please take a look

*
* @return list of Index objects with complete metadata including index type and fragment coverage
*/
public List<org.lance.index.Index> getIndexes() {
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.

Maybe we could use the short name and import it

}
}

private native List<org.lance.index.Index> nativeGetIndexes();
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.

same as above

Comment thread java/lance-jni/src/blocking_dataset.rs Outdated
Ok(array_list)
}

fn create_java_index<'local>(
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.

I guess this is duplicated with https://github.com/majin1102/lance/blob/772c6d87a5b1d9530b5f3772fba7c33cf5c55b3a/java/lance-jni/src/transaction.rs#L81-L170

Maybe we should move that code here and add this index_type

*
* @return a new Index instance
*/
public static Index create(
Copy link
Copy Markdown
Contributor

@majin1102 majin1102 Dec 10, 2025

Choose a reason for hiding this comment

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

I wonder this should be a "create". It doesn't look like not a create index but only generate an object.

I think we could just use the private constructor in JNI?

Copy link
Copy Markdown
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

@jackye1995 jackye1995 merged commit e9be2eb into lance-format:main Dec 11, 2025
7 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 java

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants