-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[Data] Add read_lance
API to read Lance Dataset
#45106
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c21
requested review from
ericl,
scv119,
amogkam,
scottjlee,
bveeramani,
raulchen,
stephanie-wang and
omatthew98
as code owners
May 2, 2024 09:19
This PR adds a new datasource for Ray Data that reads from LanceDB. This datasource is a thin wrapper around the LanceDB Python client that allows users to read data from LanceDB into Ray Data. On branch anyscalebrent/lancedb_datasource Changes to be committed: modified: python/ray/data/__init__.py modified: python/ray/data/datasource/__init__.py new file: python/ray/data/datasource/lancedb_datasource.py modified: python/ray/data/read_api.py
Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/ray/data/datasource/__init__.py modified: python/ray/data/datasource/lancedb_datasource.py
Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/ray/data/read_api.py
Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/ray/data/__init__.py modified: python/ray/data/datasource/__init__.py renamed: python/ray/data/datasource/lancedb_datasource.py -> python/ray/data/datasource/lance_datasource.py modified: python/ray/data/read_api.py
Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/ray/data/datasource/__init__.py modified: python/ray/data/datasource/lance_datasource.py
Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/ray/data/__init__.py modified: python/ray/data/datasource/__init__.py
Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/ray/data/read_api.py Signed-off-by: Brent Bain <[email protected]>
Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/ray/data/read_api.py
Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/ray/data/datasource/lance_datasource.py
Signed-off-by: Brent Bain <[email protected]> The __init__ method of the LanceDatasource class now uses Optional instead of Union for the parameters. Changes to be committed: modified: python/ray/data/datasource/lance_datasource.py
This change updates lance_datasource to a simpler implementation of to_batches. Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/ray/data/datasource/lance_datasource.py
Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/ray/data/datasource/lance_datasource.py
Yield isn't working as expected. Changing back to return. Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/ray/data/datasource/lance_datasource.py
Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/ray/data/datasource/lance_datasource.py
Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/ray/data/datasource/lance_datasource.py
Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/ray/data/datasource/lance_datasource.py
Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/ray/data/datasource/lance_datasource.py
Changes to lance_datasource parallelism handling. Added initial test for lance_datasource. Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/ray/data/datasource/lance_datasource.py modified: python/ray/data/read_api.py new file: python/ray/data/tests/test_lance.py
Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/ray/data/datasource/lance_datasource.py modified: python/ray/data/tests/test_lance.py
Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/requirements/ml/data-test-requirements.txt
Signed-off-by: Brent Bain <[email protected]> Changes to be committed: modified: python/ray/data/BUILD
Signed-off-by: Cheng Su <[email protected]>
c21
force-pushed
the
anyscalebrent/lancedb_datasource
branch
from
May 2, 2024 09:22
871ee78
to
9bb0356
Compare
c21
changed the title
[Data] Add API to read Lance Dataset
[Data] Add May 2, 2024
read_lance
API to read Lance Dataset
Signed-off-by: Cheng Su <[email protected]>
Signed-off-by: Cheng Su <[email protected]>
scottjlee
approved these changes
May 2, 2024
8 tasks
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
This PR is an update on top of #44853 .
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.