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

[FEAT] Add support for pyiceberg v0.7 #2594

Merged
merged 6 commits into from
Aug 1, 2024
Merged

Conversation

kevinzwang
Copy link
Member

PyIceberg v0.7.0 was just released. One of the new changes is the Transaction API, which replaces some of the private functions that we have been using. This PR adds support for those changes

@github-actions github-actions bot added the enhancement New feature or request label Aug 1, 2024
@kevinzwang
Copy link
Member Author

kevinzwang commented Aug 1, 2024

Gonna run these tests on pyiceberg==0.6.0 first to ensure no regressions, then update our requirements-dev to 0.7.0.

Update: no regressions

]:
raise ValueError(
f"Not all partition types are supported for writes. Following partitions cannot be written using pyarrow: {unsupported_partitions}."
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, so partitioned write are supported? But certain transforms arent'?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that's the case, do we have tests yet for partitioned writes on tables with "simple" partition transforms (e.g. identity)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good catch. Missed this when I ported the logic over from pyiceberg. What we should really be doing is checking if the table is partitioned and error if it is

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok checked the code and we already raise an error on a partitioned table and the method to do that is the same between pyiceberg versions. I removed this check since it won't do anything right now

@kevinzwang kevinzwang requested a review from jaychia August 1, 2024 20:00
@kevinzwang kevinzwang merged commit 73138c9 into main Aug 1, 2024
44 checks passed
@kevinzwang kevinzwang deleted the kevin/pyiceberg-0.7-support branch August 1, 2024 21:28
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 this pull request may close these issues.

2 participants