delta-io / delta-rs

A native Rust library for Delta Lake, with bindings into Python
https://delta-io.github.io/delta-rs/
Apache License 2.0
1.97k stars 365 forks source link

Make load_version return DeltaTable object #868

Closed MrPowers closed 7 months ago

MrPowers commented 1 year ago

Description

The Python load_version method returns None, so you can't do this:

dt = DeltaTable("tmp/some_delta_lake")
dt.load_version(0).to_pandas()

You have to do this:

dt = DeltaTable("tmp/some_delta_lake")
dt.load_version(0)
dt.to_pandas()

Would it be alright to update the API to allow for the fluent style of programming?

ion-elgreco commented 7 months ago

Closing it as per short discussion with Will in the above mentioned pr