-
Notifications
You must be signed in to change notification settings - Fork 352
feat: enhancing java LanceFileReader by adding projection push down and ranges lookup functionality #3888
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
Conversation
…and projection pushdown functionalities.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@leaves12138 thanks for your contribution. Left some comments.
java/core/src/main/java/com/lancedb/lance/file/LanceFileReader.java
Outdated
Show resolved
Hide resolved
java/core/src/main/java/com/lancedb/lance/file/LanceFileReader.java
Outdated
Show resolved
Hide resolved
|
||
try (ArrowReader batches = | ||
reader.readAll( | ||
null, Arrays.asList(Range.of(1, 11), Range.of(14, 19), Range.of(20, 21)), 100)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's behavior about Range.of(1, 14), Range.of(11, 19), Range.of(20, 21)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It takes rows of [1,2,3,4,5,6,7,8,9,10,14,15,16,17,18,20]. It divided to range [1,11], [14,19], [20,21]
Just for test, random choose. Make sure multiple ranges will not cause an error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Inhance java LanceFileReader function, allow projection push down and ranges lookup push down.