RussellSpitzer commented on code in PR #10737: URL: https://github.com/apache/iceberg/pull/10737#discussion_r1703504713
########## core/src/main/java/org/apache/iceberg/BaseUpdatePartitionSpec.java: ########## @@ -62,15 +62,20 @@ class BaseUpdatePartitionSpec implements UpdatePartitionSpec { private int lastAssignedPartitionId; BaseUpdatePartitionSpec(TableOperations ops) { + this(ops, ops.current().spec()); + } + + BaseUpdatePartitionSpec(TableOperations ops, PartitionSpec spec) { this.ops = ops; this.caseSensitive = true; this.base = ops.current(); this.formatVersion = base.formatVersion(); - this.spec = base.spec(); + this.spec = spec; this.schema = spec.schema(); this.nameToField = indexSpecByName(spec); this.transformToField = indexSpecByTransform(spec); - this.lastAssignedPartitionId = base.lastAssignedPartitionId(); + this.lastAssignedPartitionId = Review Comment: I'm not sure I understand the change here, why would lastAssignedPartitionId be drawn from the "spec"? Shouldn't this always be the lastAssignedPartitionId? -- 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