amogh-jahagirdar commented on code in PR #10352: URL: https://github.com/apache/iceberg/pull/10352#discussion_r1605819844
########## core/src/main/java/org/apache/iceberg/SchemaUpdate.java: ########## @@ -533,6 +537,34 @@ private static Schema applyChanges( } } + Map<Integer, List<Integer>> specToDeletes = Maps.newHashMap(); Review Comment: Maybe put this in a separate `checkNotDeletingColumnsInActiveSpecs` method. ########## core/src/main/java/org/apache/iceberg/SchemaUpdate.java: ########## @@ -533,6 +537,34 @@ private static Schema applyChanges( } } + Map<Integer, List<Integer>> specToDeletes = Maps.newHashMap(); Review Comment: This is a mapping from a spec to the requested fields to delete, where the fields are referenced as part of that spec. It's a reverse mapping which makes surfacing the error details for the case where it's an active partition spec easier. Probably needs a better name though -- 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