forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 17
Antalya 26.1 : Fix Alter table operations(add, modify, drop, rename) support for Iceberg #1594
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
Open
subkanthi
wants to merge
11
commits into
antalya-26.1
Choose a base branch
from
rename_columns_iceberg
base: antalya-26.1
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
5c0d0dd
Rename column support for IcebergLocal
subkanthi 6664736
Merge branch 'antalya-26.1' into rename_columns_iceberg
subkanthi 681dba1
Changes to update metadata.json and logic updated to sendRequest to i…
subkanthi 9f1fd8d
Refactored REST API metadata request for Alter table modify/rename/ad…
subkanthi 156b93f
Added integration tests for add, drop and modify column
subkanthi 48f96f9
Fixed modify column tests
subkanthi d658734
Merge branch 'antalya-26.1' into rename_columns_iceberg
subkanthi f344d72
Merge branch 'antalya-26.1' into rename_columns_iceberg
subkanthi 8882211
Added logic to overwrite identifier-field-ids only if its already set…
subkanthi 4ae5409
Merge branch 'antalya-26.1' into rename_columns_iceberg
subkanthi 4f37d22
Merge branch 'antalya-26.1' into rename_columns_iceberg
subkanthi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overwriting
identifier-field-idswith an empty array discards any existing row identity configuration for tables created outside ClickHouse. InbuildUpdateMetadataRequestBody,schema_for_restis cloned from the new schema but then unconditionally reset, so anALTERagainst a REST-catalog Iceberg table with non-empty identifier fields will silently clear them in the committed schema update. This can break downstream equality-delete/merge workflows that depend on those IDs.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed, added logic to update
identifier-field-idsonly if its already set.