Re: [PR] Support for REPLACE TABLE operation [iceberg-python]

2024-04-25 Thread via GitHub
Fokko commented on code in PR #433: URL: https://github.com/apache/iceberg-python/pull/433#discussion_r1579083787 ## pyiceberg/catalog/__init__.py: ## @@ -710,6 +760,45 @@ def _get_updated_props_and_update_summary( return properties_update_summary, updated_properties

Re: [PR] Support for REPLACE TABLE operation [iceberg-python]

2024-03-24 Thread via GitHub
anupam-saini commented on code in PR #433: URL: https://github.com/apache/iceberg-python/pull/433#discussion_r1527602013 ## pyiceberg/catalog/__init__.py: ## @@ -710,6 +760,45 @@ def _get_updated_props_and_update_summary( return properties_update_summary,

Re: [PR] Support for REPLACE TABLE operation [iceberg-python]

2024-03-19 Thread via GitHub
anupam-saini commented on code in PR #433: URL: https://github.com/apache/iceberg-python/pull/433#discussion_r1527602013 ## pyiceberg/catalog/__init__.py: ## @@ -710,6 +760,45 @@ def _get_updated_props_and_update_summary( return properties_update_summary,

Re: [PR] Support for REPLACE TABLE operation [iceberg-python]

2024-03-17 Thread via GitHub
anupam-saini commented on code in PR #433: URL: https://github.com/apache/iceberg-python/pull/433#discussion_r1527602013 ## pyiceberg/catalog/__init__.py: ## @@ -710,6 +760,45 @@ def _get_updated_props_and_update_summary( return properties_update_summary,

Re: [PR] Support for REPLACE TABLE operation [iceberg-python]

2024-03-14 Thread via GitHub
Fokko commented on code in PR #433: URL: https://github.com/apache/iceberg-python/pull/433#discussion_r1524545642 ## pyiceberg/catalog/__init__.py: ## @@ -710,6 +760,45 @@ def _get_updated_props_and_update_summary( return properties_update_summary, updated_properties

Re: [PR] Support for REPLACE TABLE operation [iceberg-python]

2024-02-29 Thread via GitHub
anupam-saini commented on PR #433: URL: https://github.com/apache/iceberg-python/pull/433#issuecomment-1972462085 Now with Sort Order and Partition Spec updates, this PR has all the necessary pieces for create-replace table operation and is ready for review. @Fokko @syun64 --

Re: [PR] Support for REPLACE TABLE operation [iceberg-python]

2024-02-20 Thread via GitHub
anupam-saini commented on code in PR #433: URL: https://github.com/apache/iceberg-python/pull/433#discussion_r1496863736 ## pyiceberg/schema.py: ## @@ -1213,34 +1213,50 @@ def build_position_accessors(schema_or_type: Union[Schema, IcebergType]) -> Dict return

Re: [PR] Support for REPLACE TABLE operation [iceberg-python]

2024-02-16 Thread via GitHub
anupam-saini commented on code in PR #433: URL: https://github.com/apache/iceberg-python/pull/433#discussion_r1493065425 ## pyiceberg/schema.py: ## @@ -1213,34 +1213,50 @@ def build_position_accessors(schema_or_type: Union[Schema, IcebergType]) -> Dict return

Re: [PR] Support for REPLACE TABLE operation [iceberg-python]

2024-02-16 Thread via GitHub
anupam-saini commented on PR #433: URL: https://github.com/apache/iceberg-python/pull/433#issuecomment-1949447704 Thank you @Fokko for taking time to explain in such great detail. Now it makes much more sense to have this part of the Catalog API. Made changes as suggested. -- This is an

Re: [PR] Support for REPLACE TABLE operation [iceberg-python]

2024-02-16 Thread via GitHub
syun64 commented on code in PR #433: URL: https://github.com/apache/iceberg-python/pull/433#discussion_r1493052840 ## pyiceberg/schema.py: ## @@ -1213,34 +1213,50 @@ def build_position_accessors(schema_or_type: Union[Schema, IcebergType]) -> Dict return

Re: [PR] Support for REPLACE TABLE operation [iceberg-python]

2024-02-16 Thread via GitHub
anupam-saini commented on code in PR #433: URL: https://github.com/apache/iceberg-python/pull/433#discussion_r1493051291 ## pyiceberg/schema.py: ## @@ -1213,34 +1213,50 @@ def build_position_accessors(schema_or_type: Union[Schema, IcebergType]) -> Dict return

Re: [PR] Support for REPLACE TABLE operation [iceberg-python]

2024-02-16 Thread via GitHub
Fokko commented on PR #433: URL: https://github.com/apache/iceberg-python/pull/433#issuecomment-1948180604 @anupam-saini Thanks for working on this. I'm not sure if the following API is where people would expect it: ```python with table.transaction() as transaction:

Re: [PR] Support for REPLACE TABLE operation [iceberg-python]

2024-02-15 Thread via GitHub
syun64 commented on code in PR #433: URL: https://github.com/apache/iceberg-python/pull/433#discussion_r1491658399 ## pyiceberg/schema.py: ## @@ -1213,34 +1213,50 @@ def build_position_accessors(schema_or_type: Union[Schema, IcebergType]) -> Dict return

[PR] Support for REPLACE TABLE operation [iceberg-python]

2024-02-15 Thread via GitHub
anupam-saini opened a new pull request, #433: URL: https://github.com/apache/iceberg-python/pull/433 Closes #281 Proposed API: ``` with table.transaction() as transaction: transaction.replace_table_with(new_table) ``` TODO: - [ ] Update schema - [ ] Update