RussellSpitzer opened a new pull request, #8731:
URL: https://github.com/apache/iceberg/pull/8731

   When unionByName is now called with schema update we first check to see 
whether or not all the elements in the struct are in the same order (while 
ignoring if additional columns have been added.) If they are, then we place new 
columns in their correct places rather than at the end of the schema.
   
   This is a new behavior but helpful for those folks who have an evolving 
schema coming from other sources and would like it to look exactly the same in 
Iceberg.
   
   For example
   ```
   //Old Behavior
   <A, B> + <A, C, B> => <A, B, C>
   
   // New Behavior
   <A, B> + <A, C, B> => <A, C, B>
   ```
   This change will not effect any structs in which the original fields are 
missing or misordered
   
   ```
   // Same behavior
   <A, B> + <B, A, C> => < A, B, C>
   <A, B> + <C> => <A, B, C>
   <A, B> + <C, B> => <A, B, C>
   ```


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