Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-09 Thread via GitHub
kevinjqliu commented on PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#issuecomment-2580965961 Thanks for your help improving the docs @jeppe-dos! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-09 Thread via GitHub
kevinjqliu merged PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433 -- 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...@i

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-09 Thread via GitHub
kevinjqliu commented on code in PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#discussion_r1909250917 ## mkdocs/docs/api.md: ## @@ -951,8 +951,12 @@ Using `add_column` you can add a column, without having to worry about the field with table.update_schema() a

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-08 Thread via GitHub
jeppe-dos commented on code in PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#discussion_r1906906831 ## mkdocs/docs/api.md: ## @@ -961,20 +963,21 @@ Renaming a field in an Iceberg table is simple: ```python with table.update_schema() as update: update.r

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-07 Thread via GitHub
kevinjqliu commented on code in PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#discussion_r1906457621 ## mkdocs/docs/api.md: ## @@ -961,20 +963,21 @@ Renaming a field in an Iceberg table is simple: ```python with table.update_schema() as update: update.

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-07 Thread via GitHub
kevinjqliu commented on code in PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#discussion_r1906456170 ## mkdocs/docs/api.md: ## @@ -961,20 +963,21 @@ Renaming a field in an Iceberg table is simple: ```python with table.update_schema() as update: update.

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-07 Thread via GitHub
kevinjqliu commented on code in PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#discussion_r1906456170 ## mkdocs/docs/api.md: ## @@ -961,20 +963,21 @@ Renaming a field in an Iceberg table is simple: ```python with table.update_schema() as update: update.

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-07 Thread via GitHub
kevinjqliu commented on code in PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#discussion_r1905685734 ## mkdocs/docs/api.md: ## @@ -951,8 +951,10 @@ Using `add_column` you can add a column, without having to worry about the field with table.update_schema() a

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-07 Thread via GitHub
jeppe-dos closed pull request #1433: Change dot notation in add column documentation to tuple URL: https://github.com/apache/iceberg-python/pull/1433 -- 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

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-06 Thread via GitHub
kevinjqliu commented on code in PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#discussion_r1904467272 ## mkdocs/docs/api.md: ## @@ -951,8 +951,10 @@ Using `add_column` you can add a column, without having to worry about the field with table.update_schema() a

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-06 Thread via GitHub
jeppe-dos commented on PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#issuecomment-2573564249 > im having trouble running the new statements in the docs, could you give it a try ? The code doesn't work, as "confirmed_by" has been changed to "exchange". Exchange can

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-06 Thread via GitHub
kevinjqliu commented on PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#issuecomment-2573362375 im having trouble running the new statements in the docs, could you give it a try ? -- This is an automated message from the Apache Git Service. To respond to the message, ple

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-06 Thread via GitHub
kevinjqliu commented on PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#issuecomment-2573349822 @jeppe-dos that would be great! -- 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

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-06 Thread via GitHub
jeppe-dos commented on PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#issuecomment-2573343676 > that works, but i think the first example should work too. We can track this in a separate issue. > > ``` > >>> with table.update_schema() as update: > ... upda

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-06 Thread via GitHub
kevinjqliu commented on code in PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#discussion_r1904282046 ## mkdocs/docs/api.md: ## @@ -961,20 +963,21 @@ Renaming a field in an Iceberg table is simple: ```python with table.update_schema() as update: update.

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-06 Thread via GitHub
kevinjqliu commented on code in PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#discussion_r1904280959 ## mkdocs/docs/api.md: ## @@ -961,20 +963,21 @@ Renaming a field in an Iceberg table is simple: ```python with table.update_schema() as update: update.

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-06 Thread via GitHub
kevinjqliu commented on code in PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#discussion_r1904280648 ## mkdocs/docs/api.md: ## @@ -1006,6 +1009,8 @@ Delete a field, careful this is a incompatible change (readers/writers might exp ```python with table.updat

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-06 Thread via GitHub
kevinjqliu commented on PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#issuecomment-2573325406 that works, but i think the first example should work too. We can track this in a separate issue. ``` >>> with table.update_schema() as update: ... update.a

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-06 Thread via GitHub
jeppe-dos commented on PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#issuecomment-2573318869 What if you create the struct first, and then add the nested field like so: ``` with table.update_schema() as update: update.add_column("retries", IntegerType(),

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-06 Thread via GitHub
jeppe-dos commented on PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#issuecomment-2572871762 The struct is now created first in the add column section. I have also changed from dot to tuple in move and rename column. -- This is an automated message from the Apache Git

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2025-01-06 Thread via GitHub
jeppe-dos commented on PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#issuecomment-2572756873 I assume so. I'll test and update accordingly. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL a

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2024-12-20 Thread via GitHub
kevinjqliu commented on PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#issuecomment-2557283437 i found another dot notion in `Move column`, do we need to change this too? https://py.iceberg.apache.org/api/#move-column -- This is an automated message from the Apache Gi

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2024-12-20 Thread via GitHub
kevinjqliu commented on PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#issuecomment-2557282080 > Yes, the struct has to exist before you can insert anything into it. ah i see, that makes sense. in that case, can we edit the example so that it works out of the box?

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2024-12-20 Thread via GitHub
jeppe-dos commented on PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#issuecomment-2557064966 > Looks like there might be a bug with this change. I tried to follow the docs > > ``` > from pyiceberg.catalog.sql import SqlCatalog > from pyiceberg.schema import S

Re: [PR] Change dot notation in add column documentation to tuple [iceberg-python]

2024-12-17 Thread via GitHub
kevinjqliu commented on PR #1433: URL: https://github.com/apache/iceberg-python/pull/1433#issuecomment-2549215540 Heres where the errors happens https://github.com/apache/iceberg-python/blob/b0ea716c91f19281d3d9cd7b6965d5d01f6cc3d5/pyiceberg/table/update/schema.py#L184-L192 And

[PR] Change dot notation in add column documentation to tuple [iceberg-python]

2024-12-16 Thread via GitHub
jeppe-dos opened a new pull request, #1433: URL: https://github.com/apache/iceberg-python/pull/1433 A tuple must be used to make columns in structs as described in add_column: "Because "." may be interpreted as a column path separator or may be used in field names, it is not allowed to a