Skip to content

Update annotation with V3#1587

Merged
kevinjqliu merged 2 commits into
mainfrom
fd-follow-up-v3
Jan 30, 2025
Merged

Update annotation with V3#1587
kevinjqliu merged 2 commits into
mainfrom
fd-follow-up-v3

Conversation

@Fokko

@Fokko Fokko commented Jan 28, 2025

Copy link
Copy Markdown
Contributor

Missed this in #1554

@kevinjqliu kevinjqliu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i swear i saw this was already done. turns our there are 2 dups!!

TableMetadata = Annotated[Union[TableMetadataV1, TableMetadataV2, TableMetadataV3], Field(discriminator="format_version")]

@Fokko

Fokko commented Jan 30, 2025

Copy link
Copy Markdown
Contributor Author

@kevinjqliu Maybe you already saw this at the Deletion Vector PR: https://github.com/apache/iceberg-python/pull/1516/files#diff-a7fbd8c6b0564308ca872ba479f0e240ff2c893d15776a14e52b91b48e9ac470R693

I noticed it over there that it was missing, but it isn't really part of the DV PR.

@kevinjqliu

kevinjqliu commented Jan 30, 2025

Copy link
Copy Markdown
Contributor

@Fokko I meant this change already exists on L568

there are two

TableMetadata = Annotated[Union[TableMetadataV1, TableMetadataV2, TableMetadataV3], Field(discriminator="format_version")]

in pyiceberg/table/metadata.py

was added here
https://github.com/apache/iceberg-python/pull/1554/files#diff-a7fbd8c6b0564308ca872ba479f0e240ff2c893d15776a14e52b91b48e9ac470R576

@Fokko

Fokko commented Jan 30, 2025

Copy link
Copy Markdown
Contributor Author

Ah good catch @kevinjqliu. Probably the type: ignore hid the error from the linter, thanks!

@kevinjqliu kevinjqliu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🪄

@kevinjqliu kevinjqliu merged commit 37916c4 into main Jan 30, 2025
@kevinjqliu kevinjqliu deleted the fd-follow-up-v3 branch January 30, 2025 18:38
@kevinjqliu

Copy link
Copy Markdown
Contributor

Already added in #1554

@Fokko

Fokko commented Jan 30, 2025

Copy link
Copy Markdown
Contributor Author

Less is more, thanks @kevinjqliu 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants