Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update create table doc to clarify ID re-assignment #1072

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

paulcichonski
Copy link
Contributor

Copying over a similar sentence from the Java docs: https://iceberg.apache.org/docs/1.5.1/java-api-quickstart/#create-a-schema. Based on my reading of the catalog code, this is true as all the create_table implementations end up calling assign_fresh_schema_ids, assign_fresh_partition_spec_ids, and assign_fresh_sort_order_ids.

This is useful to understand so newcomers don't have to worry about ID management in any new schemas they are sending into create_table.

Copying over a similar sentence from the Java docs: https://iceberg.apache.org/docs/1.5.1/java-api-quickstart/#create-a-schema. Based on my reading of the catalog code, this is true as all the `create_table` implementations end up calling `assign_fresh_schema_ids`, `assign_fresh_partition_spec_ids`, and `assign_fresh_sort_order_ids`.

This is useful to understand so newcomers don't have to worry about ID management in any new schemas they are sending into `create_table`.
Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @paulcichonski for raising this PR and clarifying the behavior, this makes sense to me 👍

Copy link
Collaborator

@sungwy sungwy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 thank you for adding this documentation!

@sungwy sungwy merged commit 166e7bb into apache:main Aug 20, 2024
7 checks passed
@paulcichonski paulcichonski deleted the docs-clarify-id-creation branch August 20, 2024 12:44
sungwy pushed a commit to sungwy/iceberg-python that referenced this pull request Dec 7, 2024
Copying over a similar sentence from the Java docs: https://iceberg.apache.org/docs/1.5.1/java-api-quickstart/#create-a-schema. Based on my reading of the catalog code, this is true as all the `create_table` implementations end up calling `assign_fresh_schema_ids`, `assign_fresh_partition_spec_ids`, and `assign_fresh_sort_order_ids`.

This is useful to understand so newcomers don't have to worry about ID management in any new schemas they are sending into `create_table`.
sungwy pushed a commit to sungwy/iceberg-python that referenced this pull request Dec 7, 2024
Copying over a similar sentence from the Java docs: https://iceberg.apache.org/docs/1.5.1/java-api-quickstart/#create-a-schema. Based on my reading of the catalog code, this is true as all the `create_table` implementations end up calling `assign_fresh_schema_ids`, `assign_fresh_partition_spec_ids`, and `assign_fresh_sort_order_ids`.

This is useful to understand so newcomers don't have to worry about ID management in any new schemas they are sending into `create_table`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants