Skip to content

Antalya 26.3 Backport: Fixed alter table operations(add, modify, drop, rename) for iceberg#1794

Open
subkanthi wants to merge 2 commits into
antalya-26.3from
antalya_26_3_fix_alter_table_iceberg
Open

Antalya 26.3 Backport: Fixed alter table operations(add, modify, drop, rename) for iceberg#1794
subkanthi wants to merge 2 commits into
antalya-26.3from
antalya_26_3_fix_alter_table_iceberg

Conversation

@subkanthi
Copy link
Copy Markdown
Collaborator

@subkanthi subkanthi commented May 14, 2026

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Backport of #1594, Fixes Alter table ADD/DROP/RENAME/MODIFY column for Iceberg tables.

Documentation entry for user-facing changes

Fixes Alter table ADD/DROP/RENAME/MODIFY column for Iceberg tables.

CI/CD Options

Exclude tests:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Performance tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All with Aarch64
  • All Regression
  • Disable CI Cache

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • S3 Export (2h)
  • Swarms (30m)
  • Tiered Storage (2h)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 14, 2026

Workflow [PR], commit [57b0578]

@subkanthi subkanthi force-pushed the antalya_26_3_fix_alter_table_iceberg branch 3 times, most recently from abb4939 to 895fb8d Compare May 15, 2026 02:03
Signed-off-by: Kanthi Subramanian <subkanthi@gmail.com>
@subkanthi subkanthi force-pushed the antalya_26_3_fix_alter_table_iceberg branch from 895fb8d to d29aec8 Compare May 15, 2026 02:22
@subkanthi subkanthi changed the title Fixed alter table operations(add, modify, drop, rename) for iceberg Antalya 26.3 Backport: Fixed alter table operations(add, modify, drop, rename) for iceberg May 15, 2026
@subkanthi subkanthi marked this pull request as ready for review May 15, 2026 21:41
@subkanthi
Copy link
Copy Markdown
Collaborator Author

Testing:

Ubuntu-2404-noble-amd64-base :) show create table ice.`flowers.iris2`;

SHOW CREATE TABLE ice.`flowers.iris2`

Query id: d83773b7-2855-4d01-be36-f78d142a0ec9

   ┌─statement────────────────────────────────────────────────────────┐
1. │ CREATE TABLE ice.`flowers.iris2`                                ↴│
   │↳(                                                               ↴│
   │↳    `sepal.length` Nullable(Float64),                           ↴│
   │↳    `sepal.width` Nullable(Float64),                            ↴│
   │↳    `petal.length` Nullable(Float64),                           ↴│
   │↳    `petal.width` Nullable(Float64),                            ↴│
   │↳    `variety` Nullable(String)                                  ↴│
   │↳)                                                               ↴│
   │↳ENGINE = Iceberg('http://localhost:9000/bucket1/flowers/iris2/') │
   └──────────────────────────────────────────────────────────────────┘

1 row in set. Elapsed: 0.014 sec. 

Ubuntu-2404-noble-amd64-base :) alter table ice.`flowers.iris2` add column variety2 Nullable(String);

ALTER TABLE ice.`flowers.iris2`
    (ADD COLUMN `variety2` Nullable(String))

Query id: 5ef406a0-97cc-45c2-a2e9-244febdd07e7

Ok.

0 rows in set. Elapsed: 0.520 sec. 

Ubuntu-2404-noble-amd64-base :) show create table ice.`flowers.iris2`;

SHOW CREATE TABLE ice.`flowers.iris2`

Query id: d24abbcb-c331-4f5e-afff-de5d3559b826

   ┌─statement────────────────────────────────────────────────────────┐
1. │ CREATE TABLE ice.`flowers.iris2`                                ↴│
   │↳(                                                               ↴│
   │↳    `sepal.length` Nullable(Float64),                           ↴│
   │↳    `sepal.width` Nullable(Float64),                            ↴│
   │↳    `petal.length` Nullable(Float64),                           ↴│
   │↳    `petal.width` Nullable(Float64),                            ↴│
   │↳    `variety` Nullable(String),                                 ↴│
   │↳    `variety2` Nullable(String)                                 ↴│
   │↳)                                                               ↴│
   │↳ENGINE = Iceberg('http://localhost:9000/bucket1/flowers/iris2/') │
   └──────────────────────────────────────────────────────────────────┘

1 row in set. Elapsed: 0.009 sec. 

Ubuntu-2404-noble-amd64-base :) alter table ice.`flowers.iris2` rename column variety2 to variety3;

ALTER TABLE ice.`flowers.iris2`
    (RENAME COLUMN variety2 TO variety3)

Query id: d8552d78-ae5a-4057-b485-67ab426af4e0

Ok.

0 rows in set. Elapsed: 0.150 sec. 

Ubuntu-2404-noble-amd64-base :) show create table ice.`flowers.iris2`;

SHOW CREATE TABLE ice.`flowers.iris2`

Query id: dff3960c-5d34-4f7d-ae76-1ac54510facd

   ┌─statement────────────────────────────────────────────────────────┐
1. │ CREATE TABLE ice.`flowers.iris2`                                ↴│
   │↳(                                                               ↴│
   │↳    `sepal.length` Nullable(Float64),                           ↴│
   │↳    `sepal.width` Nullable(Float64),                            ↴│
   │↳    `petal.length` Nullable(Float64),                           ↴│
   │↳    `petal.width` Nullable(Float64),                            ↴│
   │↳    `variety` Nullable(String),                                 ↴│
   │↳    `variety3` Nullable(String)                                 ↴│
   │↳)                                                               ↴│
   │↳ENGINE = Iceberg('http://localhost:9000/bucket1/flowers/iris2/') │
   └──────────────────────────────────────────────────────────────────┘

1 row in set. Elapsed: 0.010 sec. 


Ubuntu-2404-noble-amd64-base :) alter table ice.`flowers.iris2` drop column variety;

ALTER TABLE ice.`flowers.iris2`
    (DROP COLUMN variety)

Query id: ae2dd1ee-aad3-49b5-b42a-e1d5f7e25467

Ok.

0 rows in set. Elapsed: 0.165 sec. 

Ubuntu-2404-noble-amd64-base :) show create table ice.`flowers.iris2`;

SHOW CREATE TABLE ice.`flowers.iris2`

Query id: 42b6e852-4126-4e9c-a07b-cdfde7605339

   ┌─statement────────────────────────────────────────────────────────┐
1. │ CREATE TABLE ice.`flowers.iris2`                                ↴│
   │↳(                                                               ↴│
   │↳    `sepal.length` Nullable(Float64),                           ↴│
   │↳    `sepal.width` Nullable(Float64),                            ↴│
   │↳    `petal.length` Nullable(Float64),                           ↴│
   │↳    `petal.width` Nullable(Float64),                            ↴│
   │↳    `variety3` Nullable(String)                                 ↴│
   │↳)                                                               ↴│
   │↳ENGINE = Iceberg('http://localhost:9000/bucket1/flowers/iris2/') │
   └──────────────────────────────────────────────────────────────────┘

@subkanthi subkanthi requested a review from arthurpassos May 16, 2026 15:09
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.

1 participant