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

chore: refactor write_deltalake in writer.py #2695

Merged
merged 5 commits into from
Jul 24, 2024

Conversation

fpgmaas
Copy link
Contributor

@fpgmaas fpgmaas commented Jul 22, 2024

Description

Te body of the write_deltalake function is quite long, and thus a bit difficult to read and understand. This PR proposes to reduce the complexity of the write_deltalake function a little bit, by extracting some logic to a separate function, and moving some function definitions to outside of the body.

I guess this is a bit opinionated, so if you think this does not add value, feel free to close the PR.

@github-actions github-actions bot added the binding/python Issues for the Python package label Jul 22, 2024
ion-elgreco
ion-elgreco previously approved these changes Jul 22, 2024
@ion-elgreco ion-elgreco enabled auto-merge (squash) July 22, 2024 19:58
auto-merge was automatically disabled July 24, 2024 05:27

Head branch was pushed to by a user without write access

@fpgmaas fpgmaas requested a review from ion-elgreco July 24, 2024 05:30
@fpgmaas
Copy link
Contributor Author

fpgmaas commented Jul 24, 2024

@ion-elgreco sorry, could you trigger the pipeline once again? I accidentally used tuple to type hint, which is not compatbile with Python<3.9

@ion-elgreco ion-elgreco enabled auto-merge (squash) July 24, 2024 06:07
@ion-elgreco ion-elgreco merged commit 1e67935 into delta-io:main Jul 24, 2024
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/python Issues for the Python package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants