Skip to content

Rename integer division setting to sql_compatible_division_for_integers - #126245

Merged
qoega merged 6 commits into
ClickHouse:masterfrom
qoega:codex/rename-sql-compatible-division
Oct 18, 2026
Merged

qoega merged 6 commits into
ClickHouse:masterfrom
qoega:codex/rename-sql-compatible-division

Conversation

@qoega

@qoega qoega commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Use sql_compatible_division_for_integers as the name for the unreleased SQL-compatible integer division setting. Update the setting registration, C++ references, function documentation sources, existing functional tests and filenames, and the unreleased feature entry in CHANGELOG.md. The default and division semantics stay unchanged.

Validation confirmed reference outputs are preserved and shell syntax checks pass. The settings-history check passes with the required 26.11 record. The CI Fast test job passed with 13,423 successful tests at feff571c33b12c0e1d5cefe01333bbf8f2c2ab0b, including all 18 affected functional regressions. Current master was merged normally, and the existing fix for the ARM tidy build failure was included from the related PR; CI will rerun on the updated head. Generated documentation is left to the documentation autogeneration workflow.

Related: #124490
Related: #126269
Related: #126039

CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=126245&sha=feff571c33b12c0e1d5cefe01333bbf8f2c2ab0b&name_0=PR&name_1=Build%20%28arm_tidy%2C%203%2F4%29

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Workflow [PR]
Sync PR [sync-upstream/pr/126245]

Version info

  • Merged into: 26.11.1.146-master (included in 26.11 and later)
  • Backported to: 26.10.2.103

@clickhouse-gh

clickhouse-gh Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [f82b5e8]

Summary: ✅


AI Review

Summary

PR #126245 renames the unreleased exact_division_for_integers setting to sql_compatible_division_for_integers, updating its consumers, documentation sources, tests, and unreleased changelog entry while preserving the default and division semantics. No actionable findings at head f82b5e8aca74ca4e94bb03e3be9a9c4978632162. All 18 affected functional regressions passed in the current-head Fast test report.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added pr-improvement Pull request with some product improvements pr-not-for-changelog This PR should not be mentioned in the changelog comp-regular-function Regular scalar functions: string processing, data conversion, arithmetic, math, comparison, condi... and removed pr-improvement Pull request with some product improvements labels Oct 16, 2026
qoega and others added 3 commits October 16, 2026 12:21
…ackTrace::tryResolveAddress`

ClickHouse#126039 changed
`StackTrace::tryResolveAddress` to return `ResolvedAddress` by value, with a
null address for an address that does not resolve, while `formatStackTrace`
in `gtest_functions_stress.cpp`, added in parallel, used it as an optional.
`unit_tests_dbms` does not compile on `master` since then.

Print the resolved address like `writeResolvedAddress` in `SignalHandlers.cpp`
does: `<unknown>` for an address that does not resolve, and the name of the
object for an address in a shared library.

https://github.com/ClickHouse/ClickHouse/actions/runs/38884911247/job/116920919005

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit c14207b)
@clickhouse-gh clickhouse-gh Bot added comp-settings Settings & configuration infrastructure (server/user/query settings, profiles). and removed comp-regular-function Regular scalar functions: string processing, data conversion, arithmetic, math, comparison, condi... labels Oct 17, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing f82b5e8ac with master 0a3052562 (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

10 translation units recompiled, 53 s compile time in total, 10 of them have a recent master baseline.

Median compile-time ratio to the baselines is ×1.06 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio.
The matched translation units cost +3.1 s (+6%) in total before that adjustment.

Job report

@qoega
qoega added this pull request to the merge queue Oct 18, 2026
Merged via the queue into ClickHouse:master with commit 70906e3 Oct 18, 2026
179 checks passed
@qoega
qoega deleted the codex/rename-sql-compatible-division branch October 18, 2026 06:41
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 18, 2026
@egor-click

Copy link
Copy Markdown
Contributor

@qoega this is not unreleased and it got into 26.10, so it should be backward incompatible still, or just change it to be an alias

@qoega

qoega commented Oct 21, 2026

Copy link
Copy Markdown
Member Author

should be backported before the release if it was before. Alexey requested the rename in 26.10

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Oct 21, 2026
robot-clickhouse-ci-1 added a commit that referenced this pull request Oct 24, 2026
Cherry pick #126245 to 26.10: Rename integer division setting to sql_compatible_division_for_integers
robot-clickhouse added a commit that referenced this pull request Oct 24, 2026
@robot-ch-test-poll robot-ch-test-poll added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Oct 24, 2026
clickhouse-gh Bot added a commit that referenced this pull request Oct 24, 2026
Backport #126245 to 26.10: Rename integer division setting to sql_compatible_division_for_integers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-settings Settings & configuration infrastructure (server/user/query settings, profiles). pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo v26.10-must-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants