Re: [PR] Update NameMapping on update_schema() [iceberg-python]

2024-02-20 Thread via GitHub
Fokko merged PR #441: URL: https://github.com/apache/iceberg-python/pull/441 -- 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.

Re: [PR] Update NameMapping on update_schema() [iceberg-python]

2024-02-20 Thread via GitHub
Fokko commented on code in PR #441: URL: https://github.com/apache/iceberg-python/pull/441#discussion_r1496576875 ## tests/table/test_name_mapping.py: ## @@ -238,3 +245,67 @@ def test_mapping_lookup_by_name(table_name_mapping_nested: NameMapping) -> None: with pytest.rai

Re: [PR] Update NameMapping on update_schema() [iceberg-python]

2024-02-19 Thread via GitHub
syun64 commented on code in PR #441: URL: https://github.com/apache/iceberg-python/pull/441#discussion_r1495092898 ## pyiceberg/table/name_mapping.py: ## @@ -45,6 +45,18 @@ class MappedField(IcebergBaseModel): def convert_null_to_empty_List(cls, v: Any) -> Any: ret

Re: [PR] Update NameMapping on update_schema() [iceberg-python]

2024-02-18 Thread via GitHub
Fokko commented on code in PR #441: URL: https://github.com/apache/iceberg-python/pull/441#discussion_r1493898782 ## pyiceberg/table/__init__.py: ## @@ -1932,6 +1928,13 @@ def commit(self) -> None: else: updates = (SetCurrentSchemaUpdate(schema_id=

[PR] Update NameMapping on update_schema() [iceberg-python]

2024-02-18 Thread via GitHub
syun64 opened a new pull request, #441: URL: https://github.com/apache/iceberg-python/pull/441 Similar to the [Java implementation](https://github.com/apache/iceberg/blob/main/core/src/main/java/org/apache/iceberg/SchemaUpdate.java#L464), we should update the existing name_mapping on update