anuragmantri commented on code in PR #11842: URL: https://github.com/apache/iceberg/pull/11842#discussion_r1896047271
########## core/src/main/java/org/apache/iceberg/SchemaUpdate.java: ########## @@ -533,6 +534,25 @@ private static Schema applyChanges( } } + if (base != null) { + for (int fieldIdToDelete : deletes) { + base.specsById() + .forEach( + (specId, spec) -> { + // Prevent dropping fields that are referenced in older partitions specs in use. + if (!specId.equals(base.defaultSpecId())) { Review Comment: This makes sense. My concern is that this is a big behavior change. Users cannot drop partition columns at all. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org