We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
schema-id == 0
1 parent 3b5d3f3 commit 2bd8cf2Copy full SHA for 2bd8cf2
pyiceberg/table/__init__.py
@@ -944,8 +944,8 @@ def snapshot(self) -> Optional[Snapshot]:
944
def projection(self) -> Schema:
945
snapshot_schema = self.table.schema()
946
if snapshot := self.snapshot():
947
- if snapshot_schema_id := snapshot.schema_id:
948
- snapshot_schema = self.table.schemas()[snapshot_schema_id]
+ if snapshot.schema_id is not None:
+ snapshot_schema = self.table.schemas()[snapshot.schema_id]
949
950
if "*" in self.selected_fields:
951
return snapshot_schema
0 commit comments