Repository navigation
Writing v3 Table Metadata #3551
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -630,9 +630,6 @@ def serialize_model(self, handler: ModelWrapSerializerWithoutInfo) -> dict[str, | |
| serialized.pop("encryption-keys", None) | ||
| return serialized | ||
|
|
||
| def model_dump_json(self, exclude_none: bool = True, exclude: Any | None = None, by_alias: bool = True, **kwargs: Any) -> str: | ||
| raise NotImplementedError("Writing V3 is not yet supported, see: https://github.com/apache/iceberg-python/issues/1551") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One edge case this change surfaces: the v3 spec allows an optional |
||
|
|
||
|
|
||
| TableMetadata = Annotated[TableMetadataV1 | TableMetadataV2 | TableMetadataV3, Field(discriminator="format_version")] | ||
|
|
||
|
|
@@ -724,6 +721,7 @@ def new_table_metadata( | |
| properties=properties, | ||
| last_partition_id=fresh_partition_spec.last_assigned_field_id, | ||
| table_uuid=table_uuid, | ||
| next_row_id=INITIAL_ROW_ID, | ||
| ) | ||
| else: | ||
| raise ValidationError(f"Unknown format version: {format_version}") | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.