Skip to content

Cherry pick #114912 to 26.7: Revert "Revert "Fix propagation of settings in accurateCastOrDefault"" - #115539

Merged
robot-ch-test-poll4 merged 19 commits into
backport/26.7/114912from
cherrypick/26.7/114912
Aug 20, 2026
Merged

robot-ch-test-poll4 merged 19 commits into
backport/26.7/114912from
cherrypick/26.7/114912

Conversation

@robot-ch-test-poll4

Copy link
Copy Markdown
Contributor

Original pull-request #114912

Do not merge this PR manually

This pull-request is a first step of an automated backporting.
It contains changes similar to calling git cherry-pick locally.
If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.

The check results does not matter at this step - you can safely ignore them.

Troubleshooting

If the conflicts were resolved in a wrong way

If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

alexey-milovidov and others added 18 commits August 15, 2026 02:51
…t-109946-respect-settings-accurate-cast-or-default
Do not wrap target types that encode NULL natively in an outer `Nullable`.
The default value of `toUInt32OrDefault` must have exactly the target
type, so `toUInt32OrDefault(NULL, 42)` threw `BAD_ARGUMENTS` because the
literal is `UInt8`.

The two expected values for the queries added in 97951dd were also
inserted at the wrong position in the reference file.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=114912&sha=97951dd94c8b63c97a9b891c3eba6ed98f4328ac&name_0=PR&name_1=Fast%20test
Related: #114912

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copy successful rows in runs instead of one by one, as before the
rewrite. The source column and `canContainNull` for the result type do
not depend on the row, so they are computed once.

Related: #114912

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…6-respect-settings-accurate-cast-or-default

Revert "Revert "Fix propagation of settings in `accurateCastOrDefault`""
@robot-ch-test-poll4 robot-ch-test-poll4 added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request pr-bugfix Pull request with bugfix, not backported by default labels Aug 20, 2026
@robot-ch-test-poll4
robot-ch-test-poll4 merged commit 12be0be into backport/26.7/114912 Aug 20, 2026
1 check passed
@robot-ch-test-poll4
robot-ch-test-poll4 deleted the cherrypick/26.7/114912 branch August 20, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-bugfix Pull request with bugfix, not backported by default pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants