Skip to content

Add test for inserting NULL into non-Nullable Enum with the default value being non-zero - #96015

Merged
alexey-milovidov merged 2 commits into
masterfrom
test_insert_null_into_non_nullable_enum
Feb 6, 2026
Merged

alexey-milovidov merged 2 commits into
masterfrom
test_insert_null_into_non_nullable_enum

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Feb 5, 2026 •

Copy link
Copy Markdown
Member

Add regression test for #69683 - inserting NULL into a non-Nullable Enum column should use the default value instead of producing an invalid value that causes errors during mutations.

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Closes #69683.

Version info

  • Merged into: 26.2.1.298

Add regression test for #69683 - inserting NULL into a non-Nullable
Enum column should use the default value instead of producing an
invalid value that causes errors during mutations.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Feb 5, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [ef637e2]

Summary: ❌

job_name test_name status info comment
Stress test (amd_debug) failure
Logical error: Block structure mismatch in A stream: different number of columns: (STID: 0993-38e6) FAIL cidb
Stress test (amd_tsan) failure
Logical error: Block structure mismatch in A stream: different number of columns: (STID: 0993-2da1) FAIL cidb, issue
Stress test (arm_asan, s3) failure
Logical error: 'Block structure mismatch in UnionStep stream: different number of columns: (STID: 0993-38e6) FAIL cidb
Stress test (amd_msan) failure
Logical error: Block structure mismatch in A stream: different number of columns: (STID: 0993-38e6) FAIL cidb

@theory

theory commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

What should happen? Should it insert 0?

@alexey-milovidov

Copy link
Copy Markdown
Member Author

It should insert the default value. See the test.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Feb 5, 2026
@theory

theory commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

Oh I see, I missed that tiny a.

@alexey-milovidov
alexey-milovidov merged commit 63d461a into master Feb 6, 2026
125 of 129 checks passed
@alexey-milovidov
alexey-milovidov deleted the test_insert_null_into_non_nullable_enum branch February 6, 2026 03:31
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Feb 6, 2026
@antaljanosbenjamin antaljanosbenjamin self-assigned this Mar 20, 2026
@antaljanosbenjamin antaljanosbenjamin added the post-approved Approved, but after the PR is merged. label Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

post-approved Approved, but after the PR is merged. pr-ci 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.

Invalid 0 value in Enum error

4 participants