Skip to content

CI: Propagate schema changes to child Iceberg tables in inheritance hierarchies#76

Open
sfc-gh-mslot wants to merge 3 commits intomainfrom
marcoslot/6-inheritance-schema-propagation
Open

CI: Propagate schema changes to child Iceberg tables in inheritance hierarchies#76
sfc-gh-mslot wants to merge 3 commits intomainfrom
marcoslot/6-inheritance-schema-propagation

Conversation

@sfc-gh-mslot
Copy link
Collaborator

@sfc-gh-mslot sfc-gh-mslot commented Nov 21, 2025

Closes #48

…rchies

Signed-off-by: PJ <ipriyanshujain@gmail.com>
Signed-off-by: PJ <ipriyanshujain@gmail.com>
Signed-off-by: PJ <ipriyanshujain@gmail.com>
@sfc-gh-mslot
Copy link
Collaborator Author

@sfc-gh-abozkurt @sfc-gh-okalaci probably good to go (needs an approval)

alter table child1 inherit parent;
insert into parent values (1, 'parent', 10);
insert into child1 values (2, 'child1', 20);
alter table parent drop column z;
Copy link
Collaborator

@sfc-gh-abozkurt sfc-gh-abozkurt Dec 3, 2025

Choose a reason for hiding this comment

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

dropping and adding the same column to parent gives unexpected error. (does not fail with regular postgres tables)

postgres=# alter table parent drop column z;
ALTER TABLE
postgres=# alter table parent add column z int;
NOTICE:  merging definition of column "z" for child "child1"
ERROR:  missing field for column

@priyanshujain

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