TwinklerG opened a new issue, #16581:
URL: https://github.com/apache/iceberg/issues/16581

   ### Query engine
   
   It does not matter.
   
   ### Question
   
   When using `UpdateSchema`, I noticed a column cannot be moved(or any other 
similar operation) by its new name after it has been renamed in the same 
SchemaUpdate.
   
   For example:
   
   ```java
   Schema newSchema =
           new SchemaUpdate(schemaWithIdentifierFields, SCHEMA_LAST_COLUMN_ID)
                   .renameColumn("data", "data_renamed")
                   .moveFirst("data_renamed")
                   .apply();
   ```
   
   This fails with: Cannot move missing column: data_renamed.(Actually I have 
to use the original name `data` in `moveFirst` method).
   
   Is this the intended behavior of UpdateSchema, where subsequent operations 
in the same update should continue to refer to renamed columns by their 
original names? Or should SchemaUpdate also allow resolving
    pending renamed names for move operations within the same update?


-- 
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: [email protected]

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