You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "madeirak (via GitHub)" <gi...@apache.org> on 2024/03/21 09:14:11 UTC

[I] How to use pyiceberg to operate partition field and rename table [iceberg-python]

madeirak opened a new issue, #537:
URL: https://github.com/apache/iceberg-python/issues/537

   ### Feature Request / Improvement
   
   1. How to use pyiceberg to add/drop/replace partition field
   2. How to use pyiceberg to rename table
   
   I used spark ddl before, but because of transaction, I want to use pyiceberg


-- 
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-unsubscribe@iceberg.apache.org.apache.org

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


Re: [I] How to use pyiceberg to operate partition field and rename table [iceberg-python]

Posted by "amogh-jahagirdar (via GitHub)" <gi...@apache.org>.
amogh-jahagirdar commented on issue #537:
URL: https://github.com/apache/iceberg-python/issues/537#issuecomment-2016861138

   Renaming a table is already supported via the `catalog.rename_table` API 
   https://py.iceberg.apache.org/reference/pyiceberg/catalog/#pyiceberg.catalog.Catalog.rename_table
   
   So you'd do something like
   
   ```
   from pyiceberg.catalog import load_catalog
   catalog = load_catalog('your_catalog')
   catalog.rename_table('db.table', 'db.renamed_table')
   ```


-- 
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-unsubscribe@iceberg.apache.org

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


Re: [I] How to use pyiceberg to operate partition field and rename table [iceberg-python]

Posted by "amogh-jahagirdar (via GitHub)" <gi...@apache.org>.
amogh-jahagirdar closed issue #537: How to use pyiceberg to operate partition field and rename table
URL: https://github.com/apache/iceberg-python/issues/537


-- 
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-unsubscribe@iceberg.apache.org

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


Re: [I] How to use pyiceberg to operate partition field and rename table [iceberg-python]

Posted by "amogh-jahagirdar (via GitHub)" <gi...@apache.org>.
amogh-jahagirdar commented on issue #537:
URL: https://github.com/apache/iceberg-python/issues/537#issuecomment-2016860519

   Hi @madeirak for partition evolution, that will be released in 0.7 but if you wanted to try it out in advance you could install from [source](https://py.iceberg.apache.org/contributing/#installation-from-source).
   
   
   API docs on partition evolution: https://github.com/apache/iceberg-python/blob/main/mkdocs/docs/api.md#partition-evolution


-- 
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-unsubscribe@iceberg.apache.org

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


Re: [I] How to use pyiceberg to operate partition field and rename table [iceberg-python]

Posted by "amogh-jahagirdar (via GitHub)" <gi...@apache.org>.
amogh-jahagirdar commented on issue #537:
URL: https://github.com/apache/iceberg-python/issues/537#issuecomment-2016861301

   I'm going to close this for now since the above two points should cover your use cases but please feel free to reopen in case I missed something or if you have any more questions!


-- 
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-unsubscribe@iceberg.apache.org

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