Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion python/ray/data/read_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4306,6 +4306,7 @@ def read_unity_catalog(
@PublicAPI(stability="alpha")
def read_delta(
path: Union[str, List[str]],
version: Optional[int] = None,
*,
filesystem: Optional["pyarrow.fs.FileSystem"] = None,
columns: Optional[List[str]] = None,
Expand Down Expand Up @@ -4333,6 +4334,7 @@ def read_delta(
Args:
path: A single file path for a Delta Lake table. Multiple tables are not yet
supported.
version: The version of the Delta Lake table to read. If not specified, the latest version is read.
filesystem: The PyArrow filesystem
implementation to read from. These filesystems are specified in the
`pyarrow docs <https://arrow.apache.org/docs/python/api/\
Expand Down Expand Up @@ -4402,7 +4404,7 @@ def read_delta(
raise ValueError("Only a single Delta Lake table path is supported.")

# Get the parquet file paths from the DeltaTable
paths = DeltaTable(path).file_uris()
paths = DeltaTable(path, version=version).file_uris()

return read_parquet(
paths,
Expand Down