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

Block schema field drop if it is reference by an active partition or sort field

Open gabeiglio opened this issue 4 months ago • 0 comments

Closes #2166

Rationale for this change

We should block when an user wants to drop a column if that column is being referenced by either a partition spec or sort order field.

Are these changes tested?

Yes, I added unit tests for every incompatible schema change in partitions and sort orders. Also added two new integration tests in test_catalog to test for this scenario

Are there any user-facing changes?

No

gabeiglio avatar Sep 02 '25 06:09 gabeiglio