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

[data] move many datasource classes for internal #46169

Merged
merged 2 commits into from
Jun 28, 2024
Merged

Conversation

can-anyscale
Copy link
Collaborator

@can-anyscale can-anyscale commented Jun 21, 2024

@@ -1,12 +1,14 @@
import logging
Copy link
Member

Choose a reason for hiding this comment

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

For consistency with the Datasource implementations, could we move the Datasink implementations to _internal and also remove leading underscores from the names (e.g., move ray.data.datasource.mongo_datasink._MongoDatasink to ray.data._internal.datasource.mongo_datasink.MongoDatasink?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

will do

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Connection,
CSVDatasource,
Datasource,
ImageDatasource,
Copy link
Member

Choose a reason for hiding this comment

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

ImageDatasource, LancecDatasource, TFRecordDatasource, and TorchDatasource are annotated as developer APIs but they should be internal. Could we remove the annotations and also move them to _internal? (Saw there's already a PR for TFRecordDatasource: #46171)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

absolutely

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

actually if it's ok let me do it in a follow up PR to reduce the size of this one

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

can-anyscale added a commit that referenced this pull request Jun 28, 2024
Move datasink classes to internal, as discussed in
#46169

Test:
- CI

---------

Signed-off-by: can <[email protected]>
can-anyscale and others added 2 commits June 28, 2024 20:13
Move three developerapi datasource classes to internal

Test:
- CI

---------

Signed-off-by: can <[email protected]>
@can-anyscale can-anyscale enabled auto-merge (squash) June 28, 2024 21:25
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label Jun 28, 2024
@can-anyscale can-anyscale merged commit dfab0f4 into master Jun 28, 2024
7 of 8 checks passed
@can-anyscale can-anyscale deleted the can-dd02 branch June 28, 2024 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants