sungwy commented on issue #979:
URL: https://github.com/apache/iceberg-python/issues/979#issuecomment-2259421102
Hi @Fokko - I'm confirming that I can reproduce the issue with the following
test:
```
def test_delete_after_partition_evolution_from_partitioned(session_catalog:
RestCatalog) -> None:
identifier =
"default.test_delete_after_partition_evolution_from_partitioned"
arrow_table = pa.Table.from_arrays([
pa.array([2, 3, 4, 5, 6]),
pa.array([
datetime(2021, 5, 19),
datetime(2022, 7, 25),
datetime(2023, 3, 22),
datetime(2024, 7, 17),
datetime(2025, 2, 22)
])
], names=['idx', 'ts'])
try:
session_catalog.drop_table(identifier)
except NoSuchTableError:
pass
tbl = session_catalog.create_table(
identifier,
schema=Schema(
NestedField(1, 'idx', LongType()),
NestedField(2, 'ts', TimestampType())
),
partition_spec=PartitionSpec(
PartitionField(
source_id=2, field_id=1000, transform=IdentityTransform(),
name="ts"
)
)
)
tbl.append(arrow_table)
with tbl.transaction() as tx:
with tx.update_spec() as spec:
spec.add_field('idx', IdentityTransform())
tbl.delete("ts == '2024-07-17T00:00:00.000000'")
```
It looks like this is an issue with tables with any partition evolution, and
not specific to an unpartitioned table
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]