You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "moomindani (via GitHub)" <gi...@apache.org> on 2026/07/08 11:18:07 UTC

[PR] Support writing V3 manifests and manifest lists [iceberg-python]

moomindani opened a new pull request, #3624:
URL: https://github.com/apache/iceberg-python/pull/3624

   Closes #3620 (part of #1551)
   
   # Rationale for this change
   
   Adds the writer side for V3 manifests and manifest lists (the V3 read schemas already exist):
   
   - **`ManifestWriterV3`**: writes manifest entries using the V3 record layout so the V3-only data file fields (`first_row_id`, `referenced_data_file`, `content_offset`, `content_size_in_bytes`) are actually written — with the default V2 record layout they would silently serialize as null. Data files bound to the V2 layout are rebound to V3.
   - **`ManifestListWriterV3`**: implements the spec's [First Row ID Assignment](https://iceberg.apache.org/spec/#first-row-id-assignment): existing `first_row_id` values are preserved, delete manifests are never assigned one, and unassigned data manifests get a running value starting at the snapshot's `first-row-id`, advanced by `existing_rows_count + added_rows_count`. The writer exposes `next_row_id` so the commit path can update the table's `next-row-id` (wiring is #3621). Metadata carries `first-row-id` and `format-version: 3`, matching the Java `ManifestListWriter.V3Writer`.
   
   This is writer-level only: nothing produces V3 snapshots yet (that's #3621, with table-level enablement in #3551 / #3622).
   
   ## Are these changes tested?
   
   Yes, five new tests: a V3 manifest round-trip verifying the V3 data file fields are written (including the V2-to-V3 rebinding path), first-row-id assignment across unassigned/preserved/delete/second-unassigned manifests (asserting `[1000, 77, null, 1125]` and `next_row_id == 1130`), and validation that `first_row_id` is required. All fail without the implementation and pass with it. No new failures in `tests/table`, `tests/catalog`, `tests/avro`.
   
   ## Are there any user-facing changes?
   
   No user-facing behavior changes; this adds writer capabilities used by upcoming V3 write support.
   
   This pull request and its description were written by Claude Fable 5.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Support writing V3 manifests and manifest lists [iceberg-python]

Posted by "moomindani (via GitHub)" <gi...@apache.org>.
moomindani commented on code in PR #3624:
URL: https://github.com/apache/iceberg-python/pull/3624#discussion_r3634769899


##########
pyiceberg/manifest.py:
##########


Review Comment:
   Fixed by adding `LATEST_MANIFEST_ENTRY_READ_VERSION` / `LATEST_MANIFEST_LIST_READ_VERSION` (derived from `max()` of the respective schema dicts, so they stay in sync as new format versions are added) and switching `fetch_manifest_entry` / `read_manifest_list` to read with these instead of `DEFAULT_READ_VERSION`. Reading an older file with the latest schema is safe since the added fields are all optional, so Avro schema resolution fills them with `None`. `DEFAULT_READ_VERSION` itself is unchanged and still used for constructing/writing records, so this only touches the two read call sites. Also added the corresponding V3 properties on `DataFile` (`first_row_id`, `referenced_data_file`, `content_offset`, `content_size_in_bytes`) so the values are actually exposed to callers, and extended the round-trip test to assert on their actual values rather than just presence.



##########
pyiceberg/manifest.py:
##########
@@ -1419,19 +1508,101 @@ def prepare_manifest(self, manifest_file: ManifestFile) -> ManifestFile:
         return wrapped_manifest_file
 
 
+class ManifestListWriterV3(ManifestListWriterV2):
+    """Writes V3 manifest lists, assigning `first_row_id` to data manifests.
+
+    Follows the spec's First Row ID Assignment: existing `first_row_id` values are
+    preserved, delete manifests are never assigned one, and data manifests without a
+    `first_row_id` are assigned a running value starting at the snapshot's
+    `first-row-id`, advanced by each assigned manifest's existing and added row counts.
+    """
+
+    _next_row_id: int
+
+    def __init__(
+        self,
+        output_file: OutputFile,
+        snapshot_id: int,
+        parent_snapshot_id: int | None,
+        sequence_number: int,
+        compression: AvroCompressionCodec,
+        first_row_id: int,
+    ):
+        super().__init__(output_file, snapshot_id, parent_snapshot_id, sequence_number, compression)
+        self._format_version = 3
+        self._meta = {
+            **self._meta,
+            "first-row-id": str(first_row_id),
+            "format-version": "3",
+        }
+        self._next_row_id = first_row_id
+
+    def __enter__(self) -> ManifestListWriter:
+        """Open the writer for writing, using the V3 record layout so `first_row_id` is written."""
+        self._writer = AvroOutputFile[ManifestFile](
+            output_file=self._output_file,
+            record_schema=MANIFEST_LIST_FILE_SCHEMAS[3],
+            file_schema=MANIFEST_LIST_FILE_SCHEMAS[3],
+            schema_name="manifest_file",
+            metadata=self._meta,
+        )
+        self._writer.__enter__()
+        return self
+
+    @property
+    def next_row_id(self) -> int:
+        """The row ID after the last assigned one; the table's `next-row-id` after this snapshot."""
+        return self._next_row_id
+
+    def _wrap(self, manifest_file: ManifestFile) -> ManifestFile:
+        """Rebind a manifest file to the V3 record layout.
+
+        Records not created with an explicit layout are bound to
+        MANIFEST_LIST_FILE_SCHEMAS[DEFAULT_READ_VERSION] (the from_args default),
+        so that is the layout to zip the positional data against.
+        """
+        if len(manifest_file._data) >= len(MANIFEST_LIST_FILE_SCHEMAS[3].fields):
+            return copy(manifest_file)

Review Comment:
   Fixed — `ManifestListWriterV3._wrap` now always rebinds through `from_args` instead of `copy()`, so mutating the returned manifest file's `first_row_id` never leaks back into the caller's record.
   
   One thing to flag separately: `ManifestListWriterV2.prepare_manifest` has the same shallow-copy sharing bug (`copy(manifest_file)` there also shares `_data`). I didn't touch it since it's pre-existing and out of scope for this PR, but wanted to make sure it's on your radar — happy to file a follow-up issue if useful.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Support writing V3 manifests and manifest lists [iceberg-python]

Posted by "moomindani (via GitHub)" <gi...@apache.org>.
moomindani commented on PR #3624:
URL: https://github.com/apache/iceberg-python/pull/3624#issuecomment-6135138959

   @cayetanobv thanks for testing this against the REST fixture, and for tracking down the cause. You're right: `_commit` sets `first_row_id` but never `added_rows`, and `_calculate_added_rows` has no caller. That gap is on main too, not something this branch introduces. This PR covers the manifest writers only; assigning row lineage on commit is #3621, which is still unassigned. A follow-up from you would be very welcome. Would you like to take #3621? Your `add_files` repro would make a good regression test.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Support writing V3 manifests and manifest lists [iceberg-python]

Posted by "abnobdoss (via GitHub)" <gi...@apache.org>.
abnobdoss commented on code in PR #3624:
URL: https://github.com/apache/iceberg-python/pull/3624#discussion_r3610944866


##########
pyiceberg/manifest.py:
##########


Review Comment:
   Per the comment on `_wrap_data_file`: we likely need to go through all the uses of `DEFAULT_READ_VERSION`, including this one. Reading a v3 manifest list here drops `first_row_id`, which is what makes a round trip fail. `fetch_manifest_entry` has the same issue for the new data file fields.



##########
pyiceberg/manifest.py:
##########
@@ -1419,19 +1508,101 @@ def prepare_manifest(self, manifest_file: ManifestFile) -> ManifestFile:
         return wrapped_manifest_file
 
 
+class ManifestListWriterV3(ManifestListWriterV2):
+    """Writes V3 manifest lists, assigning `first_row_id` to data manifests.
+
+    Follows the spec's First Row ID Assignment: existing `first_row_id` values are
+    preserved, delete manifests are never assigned one, and data manifests without a
+    `first_row_id` are assigned a running value starting at the snapshot's
+    `first-row-id`, advanced by each assigned manifest's existing and added row counts.
+    """
+
+    _next_row_id: int
+
+    def __init__(
+        self,
+        output_file: OutputFile,
+        snapshot_id: int,
+        parent_snapshot_id: int | None,
+        sequence_number: int,
+        compression: AvroCompressionCodec,
+        first_row_id: int,
+    ):
+        super().__init__(output_file, snapshot_id, parent_snapshot_id, sequence_number, compression)
+        self._format_version = 3
+        self._meta = {
+            **self._meta,
+            "first-row-id": str(first_row_id),
+            "format-version": "3",
+        }
+        self._next_row_id = first_row_id
+
+    def __enter__(self) -> ManifestListWriter:
+        """Open the writer for writing, using the V3 record layout so `first_row_id` is written."""
+        self._writer = AvroOutputFile[ManifestFile](
+            output_file=self._output_file,
+            record_schema=MANIFEST_LIST_FILE_SCHEMAS[3],
+            file_schema=MANIFEST_LIST_FILE_SCHEMAS[3],
+            schema_name="manifest_file",
+            metadata=self._meta,
+        )
+        self._writer.__enter__()
+        return self
+
+    @property
+    def next_row_id(self) -> int:
+        """The row ID after the last assigned one; the table's `next-row-id` after this snapshot."""
+        return self._next_row_id
+
+    def _wrap(self, manifest_file: ManifestFile) -> ManifestFile:
+        """Rebind a manifest file to the V3 record layout.
+
+        Records not created with an explicit layout are bound to
+        MANIFEST_LIST_FILE_SCHEMAS[DEFAULT_READ_VERSION] (the from_args default),
+        so that is the layout to zip the positional data against.
+        """
+        if len(manifest_file._data) >= len(MANIFEST_LIST_FILE_SCHEMAS[3].fields):
+            return copy(manifest_file)

Review Comment:
   `copy(manifest_file)` doesn't seem to work in its current form: the copy and the original share the same underlying `_data` list, so writing to one writes to both.



##########
pyiceberg/manifest.py:
##########
@@ -1284,18 +1295,96 @@ def prepare_entry(self, entry: ManifestEntry) -> ManifestEntry:
         return entry
 
 
+class ManifestWriterV3(ManifestWriterV2):
+    """Writes V3 manifest files.
+
+    The writer inherits the V2 sequence-number semantics; the V3 manifest entry
+    schema additionally carries `first_row_id`, `referenced_data_file`,
+    `content_offset` and `content_size_in_bytes` on the data file struct.
+
+    An optional `first_row_id` can be provided when rewriting a manifest whose
+    `first_row_id` is already known; it is carried into the produced manifest file
+    so the manifest list writer preserves it instead of assigning a new one. For
+    new manifests it is None and assigned when writing the manifest list.
+    """
+
+    _first_row_id: int | None
+
+    def __init__(
+        self,
+        spec: PartitionSpec,
+        schema: Schema,
+        output_file: OutputFile,
+        snapshot_id: int,
+        avro_compression: AvroCompressionCodec,
+        first_row_id: int | None = None,
+    ):
+        super().__init__(spec, schema, output_file, snapshot_id, avro_compression)
+        self._first_row_id = first_row_id
+
+    @property
+    def version(self) -> TableVersion:
+        return 3
+
+    def to_manifest_file(self) -> ManifestFile:
+        """Return the manifest file, bound to the V3 layout and carrying `first_row_id`."""
+        manifest_file = super().to_manifest_file()
+        args = {
+            field.name: value
+            for field, value in zip(MANIFEST_LIST_FILE_SCHEMAS[DEFAULT_READ_VERSION].fields, manifest_file._data, strict=True)
+        }
+        return ManifestFile.from_args(_table_format_version=3, first_row_id=self._first_row_id, **args)
+
+    def new_writer(self) -> AvroOutputFile[ManifestEntry]:
+        # Use the V3 record layout so the V3-only data file fields are written
+        return AvroOutputFile[ManifestEntry](
+            output_file=self._output_file,
+            file_schema=self._with_partition(3),
+            record_schema=self._with_partition(3),
+            schema_name="manifest_entry",
+            metadata=self._meta,
+        )
+
+    def _wrap_data_file(self, data_file: DataFile) -> DataFile:
+        """Rebind a data file to the V3 record layout."""
+        if len(data_file._data) >= len(DATA_FILE_TYPE[3].fields):
+            return data_file
+        args = {
+            field.name: value for field, value in zip(DATA_FILE_TYPE[DEFAULT_READ_VERSION].fields, data_file._data, strict=True)

Review Comment:
   Should this be `DEFAULT_READ_VERSION`? It assumes any record that isn't v3 is v2, but `DATA_FILE_TYPE` has 15 fields for v1, 16 for v2 and 20 for v3, so a v1-bound `DataFile` would fail the strict zip with a confusing error.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Support writing V3 manifests and manifest lists [iceberg-python]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #3624:
URL: https://github.com/apache/iceberg-python/pull/3624#issuecomment-6028176518

   This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that's incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Support writing V3 manifests and manifest lists [iceberg-python]

Posted by "cayetanobv (via GitHub) via issues" <is...@iceberg.apache.org>.
cayetanobv commented on PR #3624:
URL: https://github.com/apache/iceberg-python/pull/3624#issuecomment-7278953380

   @moomindani thanks for tracking that down, and for getting #4517 in so quickly. Nothing else from my side; #4102 is ready to follow once this lands.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Support writing V3 manifests and manifest lists [iceberg-python]

Posted by "moomindani (via GitHub)" <gi...@apache.org>.
moomindani commented on code in PR #3624:
URL: https://github.com/apache/iceberg-python/pull/3624#discussion_r3634771082


##########
pyiceberg/manifest.py:
##########
@@ -1284,18 +1295,96 @@ def prepare_entry(self, entry: ManifestEntry) -> ManifestEntry:
         return entry
 
 
+class ManifestWriterV3(ManifestWriterV2):
+    """Writes V3 manifest files.
+
+    The writer inherits the V2 sequence-number semantics; the V3 manifest entry
+    schema additionally carries `first_row_id`, `referenced_data_file`,
+    `content_offset` and `content_size_in_bytes` on the data file struct.
+
+    An optional `first_row_id` can be provided when rewriting a manifest whose
+    `first_row_id` is already known; it is carried into the produced manifest file
+    so the manifest list writer preserves it instead of assigning a new one. For
+    new manifests it is None and assigned when writing the manifest list.
+    """
+
+    _first_row_id: int | None
+
+    def __init__(
+        self,
+        spec: PartitionSpec,
+        schema: Schema,
+        output_file: OutputFile,
+        snapshot_id: int,
+        avro_compression: AvroCompressionCodec,
+        first_row_id: int | None = None,
+    ):
+        super().__init__(spec, schema, output_file, snapshot_id, avro_compression)
+        self._first_row_id = first_row_id
+
+    @property
+    def version(self) -> TableVersion:
+        return 3
+
+    def to_manifest_file(self) -> ManifestFile:
+        """Return the manifest file, bound to the V3 layout and carrying `first_row_id`."""
+        manifest_file = super().to_manifest_file()
+        args = {
+            field.name: value
+            for field, value in zip(MANIFEST_LIST_FILE_SCHEMAS[DEFAULT_READ_VERSION].fields, manifest_file._data, strict=True)
+        }
+        return ManifestFile.from_args(_table_format_version=3, first_row_id=self._first_row_id, **args)
+
+    def new_writer(self) -> AvroOutputFile[ManifestEntry]:
+        # Use the V3 record layout so the V3-only data file fields are written
+        return AvroOutputFile[ManifestEntry](
+            output_file=self._output_file,
+            file_schema=self._with_partition(3),
+            record_schema=self._with_partition(3),
+            schema_name="manifest_entry",
+            metadata=self._meta,
+        )
+
+    def _wrap_data_file(self, data_file: DataFile) -> DataFile:
+        """Rebind a data file to the V3 record layout."""
+        if len(data_file._data) >= len(DATA_FILE_TYPE[3].fields):
+            return data_file
+        args = {
+            field.name: value for field, value in zip(DATA_FILE_TYPE[DEFAULT_READ_VERSION].fields, data_file._data, strict=True)

Review Comment:
   Fixed by adding `_layout_version_from_field_count`, which recovers the source layout from the record's field count (each version's layout currently has a distinct field count) instead of assuming V2.
   
   I did think about how this holds up for a future V4: if V4 only adds fields (the pattern so far), field-count inference keeps working automatically — no code change needed beyond adding the V4 schema entry, same as how `LATEST_MANIFEST_ENTRY_READ_VERSION` / `LATEST_MANIFEST_LIST_READ_VERSION` (see the other thread) are derived via `max()` rather than hardcoded. But if V4 ever lands with the same field count as an existing version, or changes a field non-additively, field-count inference can no longer tell them apart — so I added an explicit check that raises `Ambiguous layout` in that case instead of silently binding to the wrong one. That failure mode felt important to guard against explicitly rather than leave implicit.
   
   One thing I'd like your take on: this is still inference, not the record actually knowing its own version. The more principled fix would have `Record`/`DataFile`/`ManifestFile` carry the format version they were bound with, so rebinding wouldn't need to guess at all — that's how Java's manifest records work, since they're self-describing rather than positional. I considered that, but went with field-count inference for now since it's consistent with the existing code's approach (the pre-existing early-return already used a field-count threshold) and, after switching reads to the latest schema, most records reaching this rebind path are already V3-shaped — it's now mostly a defensive path for records constructed programmatically at an older version, not a hot path. Changing `Record`'s core design to carry its own version felt like the right call for a dedicated follow-up, not something to fold into this PR's scope, but let me know if you'd weigh that differently.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Support writing V3 manifests and manifest lists [iceberg-python]

Posted by "cayetanobv (via GitHub) via issues" <is...@iceberg.apache.org>.
cayetanobv commented on PR #3624:
URL: https://github.com/apache/iceberg-python/pull/3624#issuecomment-7189421772

   @moomindani thanks for the heads-up. I've rebased #4102 onto the new squashed commit; it applied cleanly. One thing I noticed: on `8f12b48a`, a few tests in `tests/table/test_validate.py` fail when run after `tests/utils/test_manifest.py`. It looks like the cache tests' `importlib.reload(pyiceberg.manifest)` leaves different class objects behind for later tests. I hit the same thing in #4102 and fixed it on my side.
   
   What are your plans for merging #3624? Is anything still pending from the review, or is it waiting on a final approval? Knowing the timeline will help me plan the next steps on #4102.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Support writing V3 manifests and manifest lists [iceberg-python]

Posted by "cayetanobv (via GitHub)" <gi...@apache.org>.
cayetanobv commented on PR #3624:
URL: https://github.com/apache/iceberg-python/pull/3624#issuecomment-6136341816

   Yes, I'll take #3621. I'll base the branch on this PR, since `added-rows` comes from `ManifestListWriterV3.next_row_id`, and rebase once it merges. The `add_files` repro against the REST fixture goes in as the regression test.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Support writing V3 manifests and manifest lists [iceberg-python]

Posted by "xanderbailey (via GitHub) via issues" <is...@iceberg.apache.org>.
xanderbailey commented on PR #3624:
URL: https://github.com/apache/iceberg-python/pull/3624#issuecomment-6770169574

   Super excited to see this PR, I'm in the process of working on https://github.com/apache/iceberg-python/issues/3222 is there anything I can do here to help out? Is this just in need of review now?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Support writing V3 manifests and manifest lists [iceberg-python]

Posted by "xanderbailey (via GitHub) via issues" <is...@iceberg.apache.org>.
xanderbailey commented on code in PR #3624:
URL: https://github.com/apache/iceberg-python/pull/3624#discussion_r4584960011


##########
pyiceberg/table/update/snapshot.py:
##########
@@ -334,21 +334,22 @@ def _commit(self) -> UpdatesAndRequirements:
         manifest_list_file_path = location_provider.new_metadata_location(file_name)
         self._written_manifest_lists.append(manifest_list_file_path)
 
+        first_row_id: int | None = None
+
+        if self._transaction.table_metadata.format_version >= 3:
+            first_row_id = self._transaction.table_metadata.next_row_id
+
         with write_manifest_list(
             format_version=self._transaction.table_metadata.format_version,
             output_file=self._io.new_output(manifest_list_file_path),
             snapshot_id=self._snapshot_id,
             parent_snapshot_id=self._parent_snapshot_id,
             sequence_number=next_sequence_number,
             avro_compression=self._compression,
+            first_row_id=first_row_id,

Review Comment:
   I think we also need `added_rows` on the snapshot here, otherwise `AddSnapshotUpdate` fails on main with `Cannot add snapshot without added rows` (Java rejects it too). Might need to check that I'm reading this right. 



##########
pyiceberg/manifest.py:
##########
@@ -1330,18 +1373,102 @@ def prepare_entry(self, entry: ManifestEntry) -> ManifestEntry:
         return entry
 
 
+class ManifestWriterV3(ManifestWriterV2):
+    """Writes V3 manifest files.
+
+    The writer inherits the V2 sequence-number semantics; the V3 manifest entry
+    schema additionally carries `first_row_id`, `referenced_data_file`,
+    `content_offset` and `content_size_in_bytes` on the data file struct.
+
+    An optional `first_row_id` can be provided when rewriting a manifest whose
+    `first_row_id` is already known; it is carried into the produced manifest file
+    so the manifest list writer preserves it instead of assigning a new one. For
+    new manifests it is None and assigned when writing the manifest list.
+    """
+
+    _first_row_id: int | None
+
+    def __init__(
+        self,
+        spec: PartitionSpec,
+        schema: Schema,
+        output_file: OutputFile,
+        snapshot_id: int,
+        avro_compression: AvroCompressionCodec,
+        first_row_id: int | None = None,
+    ):
+        super().__init__(spec, schema, output_file, snapshot_id, avro_compression)
+        self._first_row_id = first_row_id
+
+    @property
+    def version(self) -> TableVersion:
+        return 3
+
+    def to_manifest_file(self) -> ManifestFile:

Review Comment:
   `super().to_manifest_file()` is already V3 layout so I think this can just be `manifest_file.first_row_id = self._first_row_id`?



##########
tests/table/test_snapshots.py:
##########
@@ -821,3 +821,40 @@ def test_overwrite_rejects_explicit_delete_without_parent_snapshot(
         with empty.transaction() as tx:
             with tx.update_snapshot().overwrite() as overwrite:
                 overwrite.delete_data_file(stale_file)
+
+
+def test_manifest_list_receives_first_row_id_for_v3(table_v3: Table) -> None:

Review Comment:
   nit: would be nice to do a real `_commit()` here rather than mocking, it would have caught the missing `added_rows` too.



##########
pyiceberg/manifest.py:
##########
@@ -1465,19 +1592,101 @@ def prepare_manifest(self, manifest_file: ManifestFile) -> ManifestFile:
         return wrapped_manifest_file
 
 
+class ManifestListWriterV3(ManifestListWriterV2):
+    """Writes V3 manifest lists, assigning `first_row_id` to data manifests.
+
+    Follows the spec's First Row ID Assignment: existing `first_row_id` values are
+    preserved, delete manifests are never assigned one, and data manifests without a
+    `first_row_id` are assigned a running value starting at the snapshot's
+    `first-row-id`, advanced by each assigned manifest's existing and added row counts.
+    """
+
+    _next_row_id: int
+
+    def __init__(
+        self,
+        output_file: OutputFile,
+        snapshot_id: int,
+        parent_snapshot_id: int | None,
+        sequence_number: int,
+        compression: AvroCompressionCodec,
+        first_row_id: int,
+    ):
+        super().__init__(output_file, snapshot_id, parent_snapshot_id, sequence_number, compression)
+        self._format_version = 3
+        self._meta = {
+            **self._meta,
+            "first-row-id": str(first_row_id),
+            "format-version": "3",
+        }
+        self._next_row_id = first_row_id
+
+    def __enter__(self) -> ManifestListWriter:
+        """Open the writer for writing, using the V3 record layout so `first_row_id` is written."""
+        self._writer = AvroOutputFile[ManifestFile](
+            output_file=self._output_file,
+            record_schema=MANIFEST_LIST_FILE_SCHEMAS[3],
+            file_schema=MANIFEST_LIST_FILE_SCHEMAS[3],
+            schema_name="manifest_file",
+            metadata=self._meta,
+        )
+        self._writer.__enter__()
+        return self
+
+    @property
+    def next_row_id(self) -> int:
+        """The row ID after the last assigned one; the table's `next-row-id` after this snapshot."""
+        return self._next_row_id
+
+    def _wrap(self, manifest_file: ManifestFile) -> ManifestFile:

Review Comment:
   Do we still need the field count detection? Nothing binds to V1/V2 anymore as far as I can see. Rust keeps one `ManifestFile` and converts when serializing. Could this just be a `copy()`? WDYT?



##########
pyiceberg/manifest.py:
##########
@@ -546,19 +547,23 @@ def sort_order_id(self) -> int | None:
 
     @property
     def first_row_id(self) -> int | None:
-        return self._data[16]
+        # V3-only field; absent on records bound to an older layout
+        return self._data[16] if len(self._data) > 16 else None

Review Comment:
   Claude finding, have not verified: This doesn't quite work for V2 records, V2 has `referenced_data_file` at index 16 so `first_row_id` returns the referenced file path. Not new to this PR, but since everything defaults to V3 now I'd probably just drop the guards.



##########
pyiceberg/manifest.py:
##########
@@ -1465,19 +1592,101 @@ def prepare_manifest(self, manifest_file: ManifestFile) -> ManifestFile:
         return wrapped_manifest_file
 
 
+class ManifestListWriterV3(ManifestListWriterV2):
+    """Writes V3 manifest lists, assigning `first_row_id` to data manifests.
+
+    Follows the spec's First Row ID Assignment: existing `first_row_id` values are
+    preserved, delete manifests are never assigned one, and data manifests without a
+    `first_row_id` are assigned a running value starting at the snapshot's
+    `first-row-id`, advanced by each assigned manifest's existing and added row counts.
+    """
+
+    _next_row_id: int
+
+    def __init__(
+        self,
+        output_file: OutputFile,
+        snapshot_id: int,
+        parent_snapshot_id: int | None,
+        sequence_number: int,
+        compression: AvroCompressionCodec,
+        first_row_id: int,
+    ):
+        super().__init__(output_file, snapshot_id, parent_snapshot_id, sequence_number, compression)
+        self._format_version = 3
+        self._meta = {
+            **self._meta,
+            "first-row-id": str(first_row_id),
+            "format-version": "3",
+        }
+        self._next_row_id = first_row_id
+
+    def __enter__(self) -> ManifestListWriter:
+        """Open the writer for writing, using the V3 record layout so `first_row_id` is written."""
+        self._writer = AvroOutputFile[ManifestFile](
+            output_file=self._output_file,
+            record_schema=MANIFEST_LIST_FILE_SCHEMAS[3],
+            file_schema=MANIFEST_LIST_FILE_SCHEMAS[3],
+            schema_name="manifest_file",
+            metadata=self._meta,
+        )
+        self._writer.__enter__()
+        return self
+
+    @property
+    def next_row_id(self) -> int:
+        """The row ID after the last assigned one; the table's `next-row-id` after this snapshot."""
+        return self._next_row_id
+
+    def _wrap(self, manifest_file: ManifestFile) -> ManifestFile:
+        """Rebind a manifest file to the V3 record layout.
+
+        The manifest file's original layout version is recovered from its field count (each version's
+        layout has a distinct number of fields) so its positional data is zipped against the fields it
+        was actually bound to. Rebinding always produces a fresh record, so mutating the returned
+        manifest file (e.g. assigning `first_row_id`) never leaks back to the caller's record.
+        """
+        source_version = _layout_version_from_field_count(MANIFEST_LIST_FILE_SCHEMAS, len(manifest_file._data))
+        args = {
+            field.name: value
+            for field, value in zip(MANIFEST_LIST_FILE_SCHEMAS[source_version].fields, manifest_file._data, strict=True)
+        }
+        return ManifestFile.from_args(_table_format_version=3, **args)
+
+    def prepare_manifest(self, manifest_file: ManifestFile) -> ManifestFile:
+        wrapped_manifest_file = super().prepare_manifest(self._wrap(manifest_file))
+
+        if wrapped_manifest_file.content == ManifestContent.DATA and wrapped_manifest_file.first_row_id is None:

Review Comment:
   Rust [clears `first_row_id` on delete manifests](https://github.com/apache/iceberg-rust/blob/eeb1e41f959589347ac98a0575a325cdc923f6e9/crates/iceberg/src/spec/manifest_list/writer.rs#L275-L278) and Java does the same, might be worth matching that here.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Support writing V3 manifests and manifest lists [iceberg-python]

Posted by "moomindani (via GitHub) via issues" <is...@iceberg.apache.org>.
moomindani commented on PR #3624:
URL: https://github.com/apache/iceberg-python/pull/3624#issuecomment-6906312472

   Thanks! Yes, it is ready and only needs a committer review; the branch is mergeable and CI is green. If your encryption work builds on the V3 writers, trying it against this branch and leaving a review with what you find would help, since it shows a second use case beyond row lineage (#3621).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Support writing V3 manifests and manifest lists [iceberg-python]

Posted by "cayetanobv (via GitHub)" <gi...@apache.org>.
cayetanobv commented on PR #3624:
URL: https://github.com/apache/iceberg-python/pull/3624#issuecomment-6062769218

   Tested this branch (`c152089da`) against the Apache REST catalog fixture 1.10.1. The manifest work does what it says: `ManifestWriterV3` and `ManifestListWriterV3` are there and `write_manifest` dispatches on version 3. `add_files` to a v3 table still fails, but one step later than before.
   
   ```
   CommitStateUnknownException: RESTError 500
   ```
   
   The server names the cause:
   
   ```
   java.lang.IllegalArgumentException: Invalid added-rows (required when first-row-id is set): null
   ```
   
   `_SnapshotProducer._commit` sets `first_row_id` and not `added_rows` (`table/update/snapshot.py`, lines 337-361 on this branch):
   
   ```python
   first_row_id: int | None = None
   if self._transaction.table_metadata.format_version >= 3:
       first_row_id = self._transaction.table_metadata.next_row_id
   ...
   snapshot = Snapshot(
       snapshot_id=self._snapshot_id,
       ...
       first_row_id=first_row_id,
   )
   ```
   
   `_calculate_added_rows` is defined at line 212 in the same class and has no caller, so the `AddSnapshotUpdate` carries `first-row-id` without `added-rows`.
   
   Reproduction, against the REST fixture with an S3 warehouse:
   
   ```python
   from pyiceberg.catalog import load_catalog
   import pyarrow as pa, pyarrow.parquet as pq, tempfile, pathlib
   
   cat = load_catalog("t", **{"type": "rest", "uri": "http://localhost:8181", ...})
   d = pathlib.Path(tempfile.mkdtemp()); src = d / "data.parquet"
   pq.write_table(pa.table({"id": pa.array([1, 2, 3], type=pa.int64())}), src)
   
   t = cat.create_table("ns.reg", schema=..., properties={"format-version": "3"})
   t.add_files([f"file://{src}"])     # RESTError 500
   ```
   
   I am glad to open a follow-up with the assignment and a test, or it may belong in this pull request.
   
   *Context: we are evaluating version 3 geometry tables for [Portolan](https://www.portolan-sdi.org/), which is why we exercise `add_files` on version 3 rather than `append`.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Support writing V3 manifests and manifest lists [iceberg-python]

Posted by "moomindani (via GitHub) via issues" <is...@iceberg.apache.org>.
moomindani commented on code in PR #3624:
URL: https://github.com/apache/iceberg-python/pull/3624#discussion_r4702142833


##########
pyiceberg/table/update/snapshot.py:
##########
@@ -334,21 +334,22 @@ def _commit(self) -> UpdatesAndRequirements:
         manifest_list_file_path = location_provider.new_metadata_location(file_name)
         self._written_manifest_lists.append(manifest_list_file_path)
 
+        first_row_id: int | None = None
+
+        if self._transaction.table_metadata.format_version >= 3:
+            first_row_id = self._transaction.table_metadata.next_row_id
+
         with write_manifest_list(
             format_version=self._transaction.table_metadata.format_version,
             output_file=self._io.new_output(manifest_list_file_path),
             snapshot_id=self._snapshot_id,
             parent_snapshot_id=self._parent_snapshot_id,
             sequence_number=next_sequence_number,
             avro_compression=self._compression,
+            first_row_id=first_row_id,

Review Comment:
   You're reading it right: since #3972, `AddSnapshotUpdate` rejects a V3 snapshot without `added_rows`, and `_commit` never sets it. That is already the case on `main`, so this PR doesn't change it. I'd keep this PR to the writers and leave the fix to #4102 (closes #3621). It is stacked on this PR and sets `added_rows` to `writer.next_row_id - first_row_id`, as Java's `SnapshotProducer` does.
   



##########
pyiceberg/manifest.py:
##########
@@ -546,19 +547,23 @@ def sort_order_id(self) -> int | None:
 
     @property
     def first_row_id(self) -> int | None:
-        return self._data[16]
+        # V3-only field; absent on records bound to an older layout
+        return self._data[16] if len(self._data) > 16 else None

Review Comment:
   Confirmed, and agreed. `main` now reads every record with the V3 layout (`DEFAULT_READ_VERSION = 3`), so I dropped the version guards and the tests for them.
   



##########
pyiceberg/manifest.py:
##########
@@ -1330,18 +1373,102 @@ def prepare_entry(self, entry: ManifestEntry) -> ManifestEntry:
         return entry
 
 
+class ManifestWriterV3(ManifestWriterV2):
+    """Writes V3 manifest files.
+
+    The writer inherits the V2 sequence-number semantics; the V3 manifest entry
+    schema additionally carries `first_row_id`, `referenced_data_file`,
+    `content_offset` and `content_size_in_bytes` on the data file struct.
+
+    An optional `first_row_id` can be provided when rewriting a manifest whose
+    `first_row_id` is already known; it is carried into the produced manifest file
+    so the manifest list writer preserves it instead of assigning a new one. For
+    new manifests it is None and assigned when writing the manifest list.
+    """
+
+    _first_row_id: int | None
+
+    def __init__(
+        self,
+        spec: PartitionSpec,
+        schema: Schema,
+        output_file: OutputFile,
+        snapshot_id: int,
+        avro_compression: AvroCompressionCodec,
+        first_row_id: int | None = None,
+    ):
+        super().__init__(spec, schema, output_file, snapshot_id, avro_compression)
+        self._first_row_id = first_row_id
+
+    @property
+    def version(self) -> TableVersion:
+        return 3
+
+    def to_manifest_file(self) -> ManifestFile:

Review Comment:
   Yes, done: `to_manifest_file` now just sets `manifest_file.first_row_id = self._first_row_id`.
   



##########
pyiceberg/manifest.py:
##########
@@ -1465,19 +1592,101 @@ def prepare_manifest(self, manifest_file: ManifestFile) -> ManifestFile:
         return wrapped_manifest_file
 
 
+class ManifestListWriterV3(ManifestListWriterV2):
+    """Writes V3 manifest lists, assigning `first_row_id` to data manifests.
+
+    Follows the spec's First Row ID Assignment: existing `first_row_id` values are
+    preserved, delete manifests are never assigned one, and data manifests without a
+    `first_row_id` are assigned a running value starting at the snapshot's
+    `first-row-id`, advanced by each assigned manifest's existing and added row counts.
+    """
+
+    _next_row_id: int
+
+    def __init__(
+        self,
+        output_file: OutputFile,
+        snapshot_id: int,
+        parent_snapshot_id: int | None,
+        sequence_number: int,
+        compression: AvroCompressionCodec,
+        first_row_id: int,
+    ):
+        super().__init__(output_file, snapshot_id, parent_snapshot_id, sequence_number, compression)
+        self._format_version = 3
+        self._meta = {
+            **self._meta,
+            "first-row-id": str(first_row_id),
+            "format-version": "3",
+        }
+        self._next_row_id = first_row_id
+
+    def __enter__(self) -> ManifestListWriter:
+        """Open the writer for writing, using the V3 record layout so `first_row_id` is written."""
+        self._writer = AvroOutputFile[ManifestFile](
+            output_file=self._output_file,
+            record_schema=MANIFEST_LIST_FILE_SCHEMAS[3],
+            file_schema=MANIFEST_LIST_FILE_SCHEMAS[3],
+            schema_name="manifest_file",
+            metadata=self._meta,
+        )
+        self._writer.__enter__()
+        return self
+
+    @property
+    def next_row_id(self) -> int:
+        """The row ID after the last assigned one; the table's `next-row-id` after this snapshot."""
+        return self._next_row_id
+
+    def _wrap(self, manifest_file: ManifestFile) -> ManifestFile:

Review Comment:
   Dropped the field-count detection. I didn't use `copy()`, though: `Record` uses `__slots__ = ("_data",)`, and `copy.copy` returns a record that shares `_data`, so setting `first_row_id` on the copy would also change the caller's manifest file. `prepare_manifest` builds a fresh `ManifestFile(*manifest_file._data)` instead, and `test_write_manifest_list_v3_does_not_mutate_input_manifests` pins that.
   



##########
pyiceberg/manifest.py:
##########
@@ -1465,19 +1592,101 @@ def prepare_manifest(self, manifest_file: ManifestFile) -> ManifestFile:
         return wrapped_manifest_file
 
 
+class ManifestListWriterV3(ManifestListWriterV2):
+    """Writes V3 manifest lists, assigning `first_row_id` to data manifests.
+
+    Follows the spec's First Row ID Assignment: existing `first_row_id` values are
+    preserved, delete manifests are never assigned one, and data manifests without a
+    `first_row_id` are assigned a running value starting at the snapshot's
+    `first-row-id`, advanced by each assigned manifest's existing and added row counts.
+    """
+
+    _next_row_id: int
+
+    def __init__(
+        self,
+        output_file: OutputFile,
+        snapshot_id: int,
+        parent_snapshot_id: int | None,
+        sequence_number: int,
+        compression: AvroCompressionCodec,
+        first_row_id: int,
+    ):
+        super().__init__(output_file, snapshot_id, parent_snapshot_id, sequence_number, compression)
+        self._format_version = 3
+        self._meta = {
+            **self._meta,
+            "first-row-id": str(first_row_id),
+            "format-version": "3",
+        }
+        self._next_row_id = first_row_id
+
+    def __enter__(self) -> ManifestListWriter:
+        """Open the writer for writing, using the V3 record layout so `first_row_id` is written."""
+        self._writer = AvroOutputFile[ManifestFile](
+            output_file=self._output_file,
+            record_schema=MANIFEST_LIST_FILE_SCHEMAS[3],
+            file_schema=MANIFEST_LIST_FILE_SCHEMAS[3],
+            schema_name="manifest_file",
+            metadata=self._meta,
+        )
+        self._writer.__enter__()
+        return self
+
+    @property
+    def next_row_id(self) -> int:
+        """The row ID after the last assigned one; the table's `next-row-id` after this snapshot."""
+        return self._next_row_id
+
+    def _wrap(self, manifest_file: ManifestFile) -> ManifestFile:
+        """Rebind a manifest file to the V3 record layout.
+
+        The manifest file's original layout version is recovered from its field count (each version's
+        layout has a distinct number of fields) so its positional data is zipped against the fields it
+        was actually bound to. Rebinding always produces a fresh record, so mutating the returned
+        manifest file (e.g. assigning `first_row_id`) never leaks back to the caller's record.
+        """
+        source_version = _layout_version_from_field_count(MANIFEST_LIST_FILE_SCHEMAS, len(manifest_file._data))
+        args = {
+            field.name: value
+            for field, value in zip(MANIFEST_LIST_FILE_SCHEMAS[source_version].fields, manifest_file._data, strict=True)
+        }
+        return ManifestFile.from_args(_table_format_version=3, **args)
+
+    def prepare_manifest(self, manifest_file: ManifestFile) -> ManifestFile:
+        wrapped_manifest_file = super().prepare_manifest(self._wrap(manifest_file))
+
+        if wrapped_manifest_file.content == ManifestContent.DATA and wrapped_manifest_file.first_row_id is None:

Review Comment:
   Done: delete manifests are now written with a null `first_row_id`, matching Java and Rust. Covered by `test_write_manifest_list_v3_clears_first_row_id_on_delete_manifests`.
   



##########
tests/table/test_snapshots.py:
##########
@@ -821,3 +821,40 @@ def test_overwrite_rejects_explicit_delete_without_parent_snapshot(
         with empty.transaction() as tx:
             with tx.update_snapshot().overwrite() as overwrite:
                 overwrite.delete_data_file(stale_file)
+
+
+def test_manifest_list_receives_first_row_id_for_v3(table_v3: Table) -> None:

Review Comment:
   Agreed. A real `_commit()` on a V3 table fails until `added_rows` is set, though, so here it could only assert the failure. #4102 sets `added_rows` and adds end-to-end commits against the REST fixture, so I'd let the real-commit test land there and keep this one scoped to what the producer passes to the writer.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Support writing V3 manifests and manifest lists [iceberg-python]

Posted by "moomindani (via GitHub)" <gi...@apache.org>.
moomindani commented on PR #3624:
URL: https://github.com/apache/iceberg-python/pull/3624#issuecomment-6036822179

   Not stale, this is waiting for review. Rebased onto main, which needed one fix: since #3954, `DataFile.from_args` rejects fields outside the target layout, so rebinding a V1 data file to V3 failed on `block_size_in_bytes`. c152089d drops the V1-only fields, and `test_write_manifest_v3_rebinds_v1_data_file` covers it. @kevinjqliu, since this touches the path changed in #3954, would you be able to take a look?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Support writing V3 manifests and manifest lists [iceberg-python]

Posted by "moomindani (via GitHub) via issues" <is...@iceberg.apache.org>.
moomindani commented on PR #3624:
URL: https://github.com/apache/iceberg-python/pull/3624#issuecomment-7177786129

   @xanderbailey thanks for the careful review. All six points held up. I rewrote the branch as one commit on current `main`; the replies above say what changed for each.
   
   @cayetanobv heads-up: the base commits under #4102 have changed, so it will need a rebase onto the new head.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Support writing V3 manifests and manifest lists [iceberg-python]

Posted by "moomindani (via GitHub) via issues" <is...@iceberg.apache.org>.
moomindani commented on PR #3624:
URL: https://github.com/apache/iceberg-python/pull/3624#issuecomment-7256952395

   @cayetanobv thanks for rebasing so quickly.
   
   On the test-order failure: I get the same seven `tests/table/test_validate.py` failures on `main` (`7864d4c3`) when they run after `tests/utils/test_manifest.py`, so it predates this PR. It comes from the manifest cache-size tests added in #2993, which call `importlib.reload(pyiceberg.manifest)`. CI doesn't hit it because `tests/table` runs before `tests/utils`. I opened #4517 to fix it separately, so #3624 and #4102 stay focused.
   
   On merging: nothing is pending on my side. All six of xanderbailey's points are addressed and CI is green, so it is waiting on a committer review. I can't give a date for that.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org