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

DAT-19050: adding missing column is splitted on addColumn and add{Constraint} changetypes #216

Merged
merged 4 commits into from
Nov 21, 2024

Conversation

SvampX
Copy link
Contributor

@SvampX SvampX commented Nov 20, 2024

Databricks fails to add column to an existing delta table if there are defined default value or not null constraint. This was found by Pavlo and during my e2e test.
In this ticket for missing columns it was performed splitting of addColumnChange to three changes addColumnChange, addDefaultValie, addNotNullConstraintChange if they are required.
Testing was performed with tables having different hanged default values, absent and unexpected columns.
As a test case i used run diff-changelog, run update with previously generated changelog file, run diff to make sure there are not changed entities left.

Mykhailo Savchenko added 4 commits November 20, 2024 11:56
…ound it fails with similar error as default value for existing tables.
…ending bracket, default value sql generator to omit wraping numeric values in columns.
@SvampX SvampX marked this pull request as ready for review November 21, 2024 11:57
Copy link

sonarcloud bot commented Nov 21, 2024

@SvampX SvampX merged commit e1bf8f0 into main Nov 21, 2024
17 checks passed
@SvampX SvampX deleted the DAT-19050 branch November 21, 2024 14:46
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