Fokko commented on issue #10830:
URL: https://github.com/apache/iceberg/issues/10830#issuecomment-2261424723

   Yes, this works:
   
   ```java
     @Test
     public void testMoveAfterRename() {
       Schema schema =
         new Schema(
                 required(1, "b", Types.IntegerType.get()),
                 required(2, "c", Types.IntegerType.get()));
   
       Schema actual = new SchemaUpdate(schema, 4)
               .moveBefore("c", "b")
               .renameColumn("c", "a")
               .apply();
   
       Schema expected =
               new Schema(
                       required(2, "a", Types.IntegerType.get()),
                       required(1, "b", Types.IntegerType.get()));
       assertThat(actual.asStruct()).isEqualTo(expected.asStruct());
     }
   ```
   
   To make the other way around work, we have to track the in-flight renames, 
so it is essentially more bookkeeping. Just wanted to check if this is 
intentional.


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

Reply via email to