HonahX commented on issue #22: URL: https://github.com/apache/iceberg-python/issues/22#issuecomment-1797920066
Hi @vrd83. It depends on which catalog you want to use to alter the table. For the RestCatalog, this is not a prerequisite. To enable altering the write order, we can implement a `ReplaceSortOrder` ( `UpdateSortOrder`) in a similar manner to how we currently support UpdateSchema. You can see how` UpdateSchema` is implemented here for reference: https://github.com/apache/iceberg-python/blob/03fa9f0b6a86fc13d855b24ce92e07b145faa500/pyiceberg/table/__init__.py#L1314-L1319 https://github.com/apache/iceberg-python/blob/03fa9f0b6a86fc13d855b24ce92e07b145faa500/pyiceberg/table/__init__.py#L264-L270 For other catalogs, such as Glue, DynamoDB, SQL, and Hive, this will be a prerequisite. We need the `ReplaceSortOrder` thing and the three bullet points listed by @Fokko above. @Fokko, please correct me if I've missed anything about the RestCatalog part -- 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