This is an automated email from the ASF dual-hosted git repository. xushiyan pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/hudi.git
The following commit(s) were added to refs/heads/asf-site by this push: new 6c29efa83d9 [DOCS] Add Daft read example (#11133) 6c29efa83d9 is described below commit 6c29efa83d95f46206510c32ac050f93c3e10e60 Author: Shiyan Xu <2701446+xushi...@users.noreply.github.com> AuthorDate: Tue Apr 30 21:08:16 2024 -0500 [DOCS] Add Daft read example (#11133) --- website/docs/reading_tables_batch_reads.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/website/docs/reading_tables_batch_reads.md b/website/docs/reading_tables_batch_reads.md index 2055a9685df..d247fd4c3d0 100644 --- a/website/docs/reading_tables_batch_reads.md +++ b/website/docs/reading_tables_batch_reads.md @@ -18,3 +18,18 @@ val tripsDF = spark.read. load(basePath) tripsDF.where(tripsDF.fare > 20.0).show() ``` + +## Daft + +[Daft](https://www.getdaft.io/) supports reading Hudi tables using `daft.read_hudi()` function. + +```Python +# Read Apache Hudi table into a Daft DataFrame. +import daft + +df = daft.read_hudi("some-table-uri") +df = df.where(df["foo"] > 5) +df.show() +``` + +Check out the Daft docs for [Hudi integration](https://www.getdaft.io/projects/docs/en/latest/user_guide/integrations/hudi.html).