Skip to main content
Version: Next

Batch Reads

Spark DataSource API

The hudi-spark module offers the DataSource API to read a Hudi table into a Spark DataFrame.

A time-travel query example:

val tripsDF =
option("as.of.instant", "2021-07-28 14:11:08.000").
tripsDF.where(tripsDF.fare > 20.0).show()


Daft supports reading Hudi tables using daft.read_hudi() function.

# Read Apache Hudi table into a Daft DataFrame.
import daft

df = daft.read_hudi("some-table-uri")
df = df.where(df["foo"] > 5)

Check out the Daft docs for Hudi integration.