rdblue commented on a change in pull request #2007:
URL: https://github.com/apache/iceberg/pull/2007#discussion_r550296960



##########
File path: 
core/src/test/java/org/apache/iceberg/TestTableUpdatePartitionSpec.java
##########
@@ -140,6 +140,19 @@ public void testRenameField() {
 
     Assert.assertEquals("should match evolved spec", evolvedSpec, 
table.spec());
     Assert.assertEquals(1002, table.spec().lastAssignedFieldId());
+
+    table.updateSpec()
+        .renameField("id_bucket_8", "id_partition")
+        .commit();
+
+    evolvedSpec = PartitionSpec.builderFor(table.schema())
+        .withSpecId(3)
+        .bucket("data", 16, "data_bucket")
+        .bucket("id", 8, "id_partition")
+        .truncate("id", 4, "id_trunc_4")
+        .build();
+    Assert.assertEquals("should match evolved spec", evolvedSpec, 
table.spec());
+    Assert.assertEquals(1002, table.spec().lastAssignedFieldId());

Review comment:
       This seems like it should be its own test case. Could you move it?




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to