Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(java): support limit and offset interface for spark connector #3253

Merged
merged 4 commits into from
Dec 16, 2024

Conversation

SaintBacchus
Copy link
Collaborator

@SaintBacchus SaintBacchus commented Dec 16, 2024

Add the SupportsPushDownLimit and SupportsPushDownOffset interface for LanceScanBuilder.

When set the limit, lance spark scan will push it down the lance dataset.

When set the offset, lance spark scan will check the fragments first, only single fragment can push the offset down to the lance datasets since multi fragments has no meaning of offsets.

And rename all the LanceConfig fields from options into config.

@github-actions github-actions bot added enhancement New feature or request java labels Dec 16, 2024
Copy link

ACTION NEEDED
Lance follows the Conventional Commits specification for release automation.

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.

@SaintBacchus SaintBacchus changed the title feat: support limit offset for spark connector feat: support limit and offset interface for spark connector Dec 16, 2024
@SaintBacchus SaintBacchus changed the title feat: support limit and offset interface for spark connector feat: support limit and offset interface for spark connector Dec 16, 2024
@wjones127 wjones127 changed the title feat: support limit and offset interface for spark connector feat(java): support limit and offset interface for spark connector Dec 16, 2024
Copy link
Contributor

@wjones127 wjones127 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. Nice work!

@wjones127 wjones127 merged commit 1a12c21 into lancedb:main Dec 16, 2024
14 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