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

expose target_file_size in python side for WriterProperties #2810

Closed
deanm0000 opened this issue Aug 21, 2024 · 3 comments · Fixed by #2811
Closed

expose target_file_size in python side for WriterProperties #2810

deanm0000 opened this issue Aug 21, 2024 · 3 comments · Fixed by #2811
Labels
enhancement New feature or request

Comments

@deanm0000
Copy link

Description

In optimize.z_order and optimize.compact there is the target_size parameter but at an initial write the target size isn't an available parameter

Use Case

Related Issue(s)

@ion-elgreco
Copy link
Collaborator

@deanm0000 after the fix you can do this also for first writes:

df.write_delta("test_table", mode='overwrite', delta_write_options={"configuration":{'delta.targetFileSize':str(2*104857600)}})

@deanm0000
Copy link
Author

I was thinking this would stand alone from that fix so it'd show up in the docs here https://delta-io.github.io/delta-rs/api/delta_writer/#deltalake.write_deltalake

@ion-elgreco
Copy link
Collaborator

ion-elgreco commented Aug 21, 2024

I can also expose target_file_size as well, will do that tomorrow :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants