Skip to content

default variant implementation throw on type mismatch - #95811

Merged
bharatnc merged 8 commits into
masterfrom
ncb/variant-throw-type-mismatch
Feb 6, 2026
Merged

bharatnc merged 8 commits into
masterfrom
ncb/variant-throw-type-mismatch

Conversation

@bharatnc

@bharatnc bharatnc commented Feb 2, 2026 •

Copy link
Copy Markdown
Contributor

Throw on Variant type mismatch. Fixes #95839.

Changelog category (leave one):

  • Backward Incompatible Change

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

Fix logical error on Variant type mismatch.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.2.1.301
  • Backported to: 26.1.3.13

@bharatnc
bharatnc requested a review from Avogar February 2, 2026 15:18
@clickhouse-gh

clickhouse-gh Bot commented Feb 2, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [8a3c1a4]

Summary: ❌

job_name test_name status info comment
Stateless tests (arm_asan, azure, sequential) failure
01111_create_drop_replicated_db_stress FAIL cidb IGNORED

@clickhouse-gh clickhouse-gh Bot added the pr-improvement Pull request with some product improvements label Feb 2, 2026
@Avogar Avogar self-assigned this Feb 3, 2026
Comment thread src/Core/Settings.cpp Resolved
@clickhouse-gh clickhouse-gh Bot added pr-bugfix Pull request with bugfix, not backported by default and removed pr-improvement Pull request with some product improvements labels Feb 4, 2026
@bharatnc
bharatnc marked this pull request as ready for review February 4, 2026 01:08
@bharatnc
bharatnc force-pushed the ncb/variant-throw-type-mismatch branch from ec894f1 to 10b2d53 Compare February 4, 2026 01:16
@bharatnc
bharatnc requested a review from Avogar February 4, 2026 01:19
@bharatnc
bharatnc force-pushed the ncb/variant-throw-type-mismatch branch from 3180c4c to 8a3c1a4 Compare February 5, 2026 15:41
@bharatnc
bharatnc added this pull request to the merge queue Feb 6, 2026
Merged via the queue into master with commit 261973e Feb 6, 2026
128 of 129 checks passed
@bharatnc
bharatnc deleted the ncb/variant-throw-type-mismatch branch February 6, 2026 03:48
@robot-ch-test-poll robot-ch-test-poll added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Feb 6, 2026
@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
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Feb 6, 2026
clickhouse-gh Bot added a commit that referenced this pull request Feb 6, 2026
Backport #95811 to 26.1: default variant implementation throw on type mismatch
@fm4v

fm4v commented Feb 9, 2026

Copy link
Copy Markdown
Member

I'm going to change the category to Backward Incompatible Change

@Avogar

Avogar commented Feb 16, 2026 •

Copy link
Copy Markdown
Member

I'm going to change the category to Backward Incompatible Change

Why? This change was backported to 26.1 to change the default behaviour of this feature #90900 to make it consistent with similar frature for Dynamic type. I would say it should be Not for changelog.

@clickgapai

Copy link
Copy Markdown
Contributor

Hi @bharatnc @Avogar — while reviewing this PR I found the following:

Happy to discuss — close anything that's wrong or already addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-bugfix Pull request with bugfix, not backported by default pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR 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.

Logical error: '(isConst() || isSparse() || isReplicated()) ? getDataType() == rhs.getDataType() : typeid(*this) == typeid(rhs)' (STID: 2508-1fb5)

7 participants