Skip to content

Conversation

@vdimir
Copy link
Member

@vdimir vdimir commented Jul 31, 2025

Changelog category (leave one):

  • Backward Incompatible Change

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

ALTER MODIFY COLUMN now requires explicit DEFAULT when converting nullable columns to non-nullable types. Previously such ALTERs could get stuck with cannot convert null to not null errors, now NULLs are replaced with column's default expression. Resolves #5985

Details

Close #5985

@clickhouse-gh
Copy link

clickhouse-gh bot commented Jul 31, 2025

Workflow [PR], commit [cd53684]

Summary:

job_name test_name status info comment
BuzzHouse (amd_msan) failure
Logical error: '(isConst() || isSparse() || isReplicated()) ? getDataType() == rhs.getDataType() : typeid(*this) == typeid(rhs)' FAIL cidb, issue
Integration tests (amd_asan, db disk, old analyzer, 3/6) error
OOM in dmesg FAIL cidb

@clickhouse-gh clickhouse-gh bot added the pr-backward-incompatible Pull request with backwards incompatible changes label Jul 31, 2025
@antaljanosbenjamin antaljanosbenjamin self-assigned this Jul 31, 2025
Copy link
Member

@antaljanosbenjamin antaljanosbenjamin left a comment

Choose a reason for hiding this comment

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

LGTM.

@den-crane
Copy link
Contributor

@vdimir vdimir force-pushed the vdimir/modify_column_null_to_default branch from 23a2bdd to ff270c5 Compare August 18, 2025 07:31
@vdimir vdimir force-pushed the vdimir/modify_column_null_to_default branch from f3140f1 to 238dcbb Compare September 3, 2025 13:10
@vdimir vdimir enabled auto-merge September 3, 2025 13:11
@vdimir vdimir force-pushed the vdimir/modify_column_null_to_default branch from 6b5c46e to 6ab2401 Compare December 11, 2025 14:07
@ClickHouse ClickHouse deleted a comment from clickhouse-gh bot Dec 11, 2025
@vdimir
Copy link
Member Author

vdimir commented Dec 15, 2025

Integration tests (amd_asan, db disk, old analyzer, 3/6) error
OOM in dmesg FAIL cidb

Seems like #84881

@vdimir vdimir added this pull request to the merge queue Dec 15, 2025
Merged via the queue into master with commit 58d29ac Dec 15, 2025
127 of 130 checks passed
@vdimir vdimir deleted the vdimir/modify_column_null_to_default branch December 15, 2025 16:04
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Dec 15, 2025
@bakwc
Copy link
Contributor

bakwc commented Jan 3, 2026

Hi team,
just a heads-up that the recent changes appear to have broken backward compatibility.
We spent quite a bit of time investigating an issue on our side before realizing it was related to changes in ClickHouse.
It would be greatly appreciated if the impact on existing integrations and dependent projects could be considered in future updates. Thank you!

@antaljanosbenjamin
Copy link
Member

just a heads-up that the recent changes appear to have broken backward compatibility.

Hey! Did it broke in a way that is not mentioned in the changelog item? If yes, we have a problem. If not, then it is kind of expected.

Unfortunately from time to time we have to bite the bullet to introduce backward incompatible changes in order to fix big issues, in this case stuck mutations. We try to keep backward incompatible changes minimal and try to always add a proper changelog item, however we might mistakes (not noticing backward incompatibility or missing parts of the scope).

zvonand pushed a commit to Altinity/ClickHouse that referenced this pull request Jan 15, 2026
…umn_null_to_default

Handle NULLs in ALTER MODIFY COLUMN
zvonand pushed a commit to Altinity/ClickHouse that referenced this pull request Jan 27, 2026
…umn_null_to_default

Handle NULLs in ALTER MODIFY COLUMN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backward-incompatible Pull request with backwards incompatible changes pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alter of nullable columns to not nullable is not supported

6 participants