Skip to content

Add partition evolution #193

@nicor88

Description

@nicor88

Feature Request / Improvement

Context

One of the advantage of Iceberg is that the original "partition" design can be changed over time. This is often the case, as a table is originally implemented for a specific query access pattern, and that can change over time.

Requirements

I would like to use pyiceberg to "evolve" partitions, specifically changing the partition specs.
e.g.

new_partition_spec = PartitionSpec(
    PartitionField(source_id=1, field_id=1000, transform=DayTransform(), name="event_date"),
   PartitionField(source_id=2, field_id=1001, name="marketing_channel")
)

with table.update_partitions() as table_update:
   table_update. update_partition_specs(new_partition_spec)

or something similar.

Reference

https://iceberg.apache.org/docs/latest/evolution/#partition-evolution

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions