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

load_cdf can't read last version #3165

Open
ion-elgreco opened this issue Jan 27, 2025 · 1 comment
Open

load_cdf can't read last version #3165

ion-elgreco opened this issue Jan 27, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@ion-elgreco
Copy link
Collaborator

Environment

Delta-rs version: latest on main

Binding: python

Bug

What happened:
When you try to read latest version with load_cdf it fails.

What you expected to happen:
Be able to read the latest version, if you read latest -1 only it works fine.

How to reproduce it:

from deltalake import DeltaTable
import polars as pl

pl.DataFrame({"foo":[1,2,3]}).write_delta(
    "foo_table", 
    mode='append', 
    delta_write_options = {"configuration": {"delta.enableChangeDataFeed": "true"}} )

DeltaTable("foo_table").load_cdf(starting_version=0, ending_version=0, allow_out_of_range=False).read_all()

DeltaError: Invalid table version: 0

@hntd187 can you look into this?

@ion-elgreco ion-elgreco added the bug Something isn't working label Jan 27, 2025
@ion-elgreco
Copy link
Collaborator Author

Reading the last two versions works fine as well, but exclusively reading the last version doesn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant