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.
1 parent 7e3e508 commit 7fcdb8dCopy full SHA for 7fcdb8d
pyiceberg/table/__init__.py
@@ -1173,8 +1173,9 @@ def overwrite(
1173
1174
_check_schema_compatible(self.schema(), other_schema=df.schema)
1175
# cast if the two schemas are compatible but not equal
1176
- if self.schema().as_arrow() != df.schema:
1177
- df = df.cast(self.schema().as_arrow())
+ table_arrow_schema = self.schema().as_arrow()
+ if table_arrow_schema != df.schema:
1178
+ df = df.cast(table_arrow_schema)
1179
1180
with self.transaction() as txn:
1181
with txn.update_snapshot(snapshot_properties=snapshot_properties).overwrite() as update_snapshot:
0 commit comments