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][api] implement HudiDataSource #46273

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xushiyan
Copy link

@xushiyan xushiyan commented Jun 26, 2024

Why are these changes needed?

Support read from Hudi table into Ray dataset.

Related issue number

Closes #46272

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@xushiyan xushiyan force-pushed the add-hudi-datasource branch 5 times, most recently from 7bc3894 to 97f9de1 Compare June 28, 2024 18:11
@xushiyan xushiyan marked this pull request as ready for review June 28, 2024 18:20
ds = ray.data.read_hudi_table(target_table_path)

assert ds.count() == 5
assert ds.schema() is not None
Copy link
Author

Choose a reason for hiding this comment

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

gonna add more assertions on the dataset content

Comment on lines +17 to +18
--extra-index-url https://test.pypi.org/simple
hudi==0.1.0
Copy link
Author

Choose a reason for hiding this comment

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

this is temporary for this PR to pass. the --extra-index-url will be removed once the official release is out

self,
table_uri: str,
storage_options: Optional[Dict[str, str]] = None,
):
Copy link
Author

Choose a reason for hiding this comment

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

would prefer to support column projections and row filtering through additional arguments as follow-up since the feature is not yet supported

@MicroCheck //python:ray/data/tests/test_hudi

Signed-off-by: Shiyan Xu <2701446+xushiyan@users.noreply.github.com>
@anyscalesam anyscalesam added data Ray Data-related issues @external-author-action-required Alternate tag for PRs where the author doesn't have labeling permission. labels Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data Ray Data-related issues @external-author-action-required Alternate tag for PRs where the author doesn't have labeling permission.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Data] Support read Hudi table as a DataSource
2 participants