Repository navigation
[Data][Delta DSv2 features][1/5] Require deltalake 1.5.0 or later in read_delta - #68504
Draft
abhishekverma-ray wants to merge 1 commit into
Draft
abhishekverma-ray wants to merge 1 commit into
abhishekverma-ray wants to merge 1 commit into
Conversation
abhishekverma-ray
changed the base branch from
abhishek/delta-dsv2-8-v2-checkpoint
to
master
November 24, 2026 08:43
abhishekverma-ray
changed the base branch from
master
to
abhishek/delta-dsv2-8-v2-checkpoint
November 24, 2026 08:44
abhishekverma-ray
force-pushed
the
abhishek/delta-dsv2-8-v2-checkpoint
branch
from
November 25, 2026 02:54
06914fc to
c7b77b6
Compare
abhishekverma-ray
force-pushed
the
abhishek/delta-features-1-min-version
branch
from
November 25, 2026 02:54
d1c0572 to
38f3321
Compare
Ray declares no deltalake dependency, and an older deltalake failed deep inside the reader (deltalake 0.x returns PyArrow tables and has a different API). read_delta now checks the installed release right after importing it and raises ImportError naming the minimum, 1.5.0, the version CI tests. Only the release numbers are compared, so a pre-release or development build of a supported release (1.6.0rc1) passes. A version string that doesn't parse passes too, rather than blocking a vendored build. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Abhishek Verma <[email protected]>
abhishekverma-ray
force-pushed
the
abhishek/delta-dsv2-8-v2-checkpoint
branch
from
November 26, 2026 03:34
c7b77b6 to
df99b8d
Compare
abhishekverma-ray
force-pushed
the
abhishek/delta-features-1-min-version
branch
from
November 26, 2026 03:34
38f3321 to
198fec0
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
read_deltanow checks the installeddeltalakerelease right after importing it and raises a clearImportErrorif it's older than 1.5.0, the version CI tests.This is the first of five PRs that add Delta features on top of the Delta DataSourceV2 stack; its base is the top of that stack (#68287).
Before
Ray declares no
deltalakedependency. An olderdeltalake(0.x returns PyArrow tables and has a different API) failed deep inside the reader with an unrelated error.After
read_deltaraises, for example:Only the release numbers are compared, so a pre-release or development build of a supported release (
1.6.0rc1,1.5.0.dev0) passes. A version string that doesn't parse, such as a vendored build's, passes too. This avoids the pre-release problem aparse_version(...) >= parse_version("1.6")check has.flowchart TD subgraph Before subgraph BS[Subsystem: API] B1["read_delta: import deltalake"] --> B2["read"] end end subgraph After subgraph AS[Subsystem: API] A1["read_delta: import deltalake"] --> A3["check_deltalake_version (>= 1.5.0)"] --> A2["read"] end end classDef added fill:#c8e6c9,stroke:#2e7d32,color:#000 class A3 addedSubsystems
API (
read_api.read_delta); the check lives informats/delta/delta_datasource_v2.py.Not a duplicate
No open PR adds a
deltalakeversion check; the search for open Delta PRs only finds the Delta DataSourceV2 stack this builds on.Testing
Local: pyenv with deltalake 1.5.0 and pyarrow 23.
pytest python/ray/data/tests/datasource/test_delta.py: 66 passed. The newtest_delta_read_checks_the_deltalake_versionfakesdeltalake.__version__: 0.25.5 and 1.4.2 raise; 1.5.0 and 1.6.0rc1 read the table. Without the check, the two raising cases fail.AI assistance was used (Claude Code); every line has been reviewed by the submitter.
🤖 Generated with Claude Code