Skip to content

Commit 482c3d5

Browse files
committed
Fix
1 parent 2d0f7dc commit 482c3d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyiceberg/manifest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,12 +985,12 @@ def _inherit_from_manifest(entry: ManifestEntry, manifest: ManifestFile) -> Mani
985985

986986
# in v1 tables, the sequence number is not persisted and can be safely defaulted to 0
987987
# in v2 tables, the sequence number should be inherited iff the entry status is ADDED
988-
if entry.sequence_number is None and (manifest.sequence_number == 0 or entry.status == ManifestEntryStatus.ADDED):
988+
if entry.sequence_number == 0 and (manifest.sequence_number == 0 or entry.status == ManifestEntryStatus.ADDED):
989989
entry.sequence_number = manifest.sequence_number
990990

991991
# in v1 tables, the file sequence number is not persisted and can be safely defaulted to 0
992992
# in v2 tables, the file sequence number should be inherited iff the entry status is ADDED
993-
if entry.file_sequence_number is None and (manifest.sequence_number == 0 or entry.status == ManifestEntryStatus.ADDED):
993+
if entry.file_sequence_number == 0 and (manifest.sequence_number == 0 or entry.status == ManifestEntryStatus.ADDED):
994994
# Only available in V2, always 0 in V1
995995
entry.file_sequence_number = manifest.sequence_number
996996

0 commit comments

Comments
 (0)