Skip to content

Backport #114912 to 25.8: Revert "Revert "Fix propagation of settings in accurateCastOrDefault"" - #115535

Merged
alexey-milovidov merged 7 commits into
25.8from
backport/25.8/114912
Aug 27, 2026
Merged

alexey-milovidov merged 7 commits into
25.8from
backport/25.8/114912

Conversation

@robot-ch-test-poll4

@robot-ch-test-poll4 robot-ch-test-poll4 commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #114912

This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.

The PR source

The PR is created in the CI job

Version info

  • Merged into: 25.8.34.8

@robot-ch-test-poll4 robot-ch-test-poll4 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default labels Aug 20, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [c85bccf]

Avogar and others added 5 commits August 20, 2026 13:53
…lt fix

The backported `getSourceNullMap` helper in `castOrDefault.cpp` calls
`ColumnVariant::createNullMap`, which was introduced on master by an
unrelated, unbackported commit ("Fix `toFloat64`/`toUInt32`/`toString`/etc.
on Dynamic ignoring `cast_keep_nullable`"), so the build failed with
`no member named 'createNullMap' in 'DB::ColumnVariant'`.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The previous commit added `ColumnVariant::createNullMap`, which uses
`ColumnUInt8`, but on `25.8` `ColumnVariant.cpp` does not include
`Columns/ColumnsNumber.h` (on `master` it does), so every build failed with:

    error: use of undeclared identifier 'ColumnUInt8'; did you mean 'ColumnsInfo'?

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The tests backported with #114912 assert behavior that comes from other,
unbackported master changes:
- `04510_accurateCastOrDefault_settings`: the time-zone substitution block
  needs master's `substituteTimeZoneInDateTimeType` in `CastOverloadResolverImpl`.
- `04512_accurateCastOrDefault_nullable_target`: the `Dynamic` and
  `LowCardinality(Nullable(...))` targets need master's `canContainNull`
  check in `CastOverloadResolverImpl::getReturnTypeImpl` (25.8 still has
  `isVariant`, so `makeNullable(Dynamic)` throws ILLEGAL_TYPE_OF_ARGUMENT).

Same trim as the 26.3 backport #115536. Both trimmed tests verified locally
against this PR's own CI binary (25.8.33.1).

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=115535&sha=a4fa72b7604c3af05e53398053eaa63f87bbadd9&name_0=BackportPR
PR: #115535

Co-Authored-By: Claude Fable 5 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 The only failing check on the latest commit (590daca) is Stress test (amd_tsan): the server died with Code: 48. DB::Exception: Disk does not support WriteMode::Append. (NOT_IMPLEMENTED) thrown from IMergeTreeDataPart::appendCSNToVersionMetadata during TransactionLog::finalizeCommittedTransaction. This is unrelated to the accurateCastOrDefault settings-propagation change in this backport and matches the known crash tracked in #115501 (same stack trace, observed on master/release branches since 2026-08-19). All builds are green and the remaining checks are in progress.

@alexey-milovidov
alexey-milovidov merged commit addffba into 25.8 Aug 27, 2026
33 checks passed
@alexey-milovidov
alexey-milovidov deleted the backport/25.8/114912 branch August 27, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants