iceberg-python icon indicating copy to clipboard operation
iceberg-python copied to clipboard

[bug] `table.inspect.partitions()` does not respect partition evolution

Open kevinjqliu opened this issue 5 months ago • 0 comments

Apache Iceberg version

main (development)

Please describe the bug 🐞

Notebook to repro https://gist.github.com/kevinjqliu/e3f454d829d8711ecf9909e11a20add6

Expectation: First, the table is partitioned by the timestamp field. After evolving the partition spec by adding the category field, table.inspect.partitions() should still use the table's old partition spec. Additionally, after adding data using the new partition spec, I should expect to see both old and new partition specs.

kevinjqliu avatar Aug 31 '24 15:08 kevinjqliu