Anurag-S1ngh opened a new pull request, #4550: URL: https://github.com/apache/iceberg-python/pull/4550
Closes #3542 # Rationale for this change `Catalog.rename_table` is a mutation, but every implementation reloaded the destination table and returned it. The return value is unused by callers, and the extra load doubles the catalog requests for a rename. Change the return type to `None` and drop the reload. This is the v1 breaking change tracked in #3542. ## Are these changes tested? - `pytest tests/catalog/test_rest.py tests/catalog/test_sql.py tests/catalog/test_glue.py tests/catalog/test_dynamodb.py` (335 passed) - `pytest tests/catalog/test_hive.py -k rename_table` (5 passed) - `ruff check` and `ruff format --check` on the changed files ## Are there any user-facing changes? Yes. `rename_table` now returns `None` instead of the reloaded `Table`. This is intended for the next major release. -- 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]
