Skip to content

Backport #129166 to 26.10: Do not JIT-compile a multiIf Decimal128 scale lift that can overflow - #129224

Merged
clickhouse-gh[bot] merged 1 commit into
26.10from
backport/26.10/129166
Nov 5, 2026
Merged

clickhouse-gh[bot] merged 1 commit into
26.10from
backport/26.10/129166

Conversation

@robot-ch-test-poll2

Copy link
Copy Markdown
Contributor

Original pull-request #129166

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

@robot-ch-test-poll2 robot-ch-test-poll2 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 Nov 4, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [60aafe5]

Summary: ✅

@groeneai

groeneai commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

All seven failing builds stop at src/Functions/FunctionIfBase.h:12:14: fatal error: 'Core/DecimalScaleBounds.h' file not found. That header comes from #124680, which merged on 2026-10-16, a day after 26.10 was cut, and was never backported.

Making this PR compile on its own would not fix 26.10: on the official 26.10.3.7 build, the query from #129166's description returns -20847100.762815390390123822295304634368 with compile_expressions = 0 as well, because the interpreted path, which this change falls back to, gets its overflow check from #124680 too. #126603 has to travel with #124680 (it fixes the DECIMAL_OVERFLOW on Decimal128 keys that #124680 introduced, #126339).

So this backport needs v26.10-must-backport on #124680 and #126603 first. Cherry-picked onto this PR's head in that order, both apply without conflicts. A local 26.10 debug build of the result (clang-22) compiles, and 05497_jit_multiif_decimal128_scale_lift_overflow, 05339_decimal_wide_comparison_scale_overflow, 04077_in_strict_decimal_inside_composites, 00700_decimal_compare, 00700_decimal_casts_2 and 04523_type_pair_matrix_errors pass with randomized settings.

@Manerone Manerone closed this Nov 5, 2026
@Manerone Manerone reopened this Nov 5, 2026
@clickhouse-gh
clickhouse-gh Bot merged commit b503728 into 26.10 Nov 5, 2026
87 of 102 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.10/129166 branch November 5, 2026 15:52
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