You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2020/05/06 23:52:37 UTC

[GitHub] [incubator-iceberg] danielcweeks commented on pull request #995: Add column reordering to UpdateSchema

danielcweeks commented on pull request #995:
URL: https://github.com/apache/incubator-iceberg/pull/995#issuecomment-624950741


   So, this all looks good in terms of implementing these three move behaviors and I suspect a single column move is probably the most common case.  Hive supports a replace columns where you provide a new order list of positions and (of course depending on the file format and column resolution) will reorder the columns.  
   
   It appears that Spark doesn't support ALTER TABLE ... REPLACE COLUMNS and presto has no syntax for reordering (also my understanding is there is no SQL standard for reordering).
   
   It might be nice to have an option to take the existing schema and provide a new ordered list of columns (though that can be modeled with these primitives, so possibly a future enhancement?).
   
   +1 (nice test coverage)


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org