Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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
@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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.