Skip to content

[pull] master from ClickHouse:master - #58

Merged
pull[bot] merged 57 commits into
erickirt:masterfrom
ClickHouse:master
Dec 28, 2024
Merged

pull[bot] merged 57 commits into
erickirt:masterfrom
ClickHouse:master

Conversation

@pull

@pull pull Bot commented Dec 28, 2024 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

yakov-olkhovskiy and others added 27 commits December 16, 2024 13:21
Write parts with level 1 if `optimize_on_insert` is enabled
Symbolize `trace_log` inside the server
update docs for min_block_number, max_block_number
You can no longer use `MaterializedMySQL`
@pull pull Bot added the ⤵️ pull label Dec 28, 2024
@pull
pull Bot merged commit 3c700df into erickirt:master Dec 28, 2024
pull Bot pushed a commit that referenced this pull request May 13, 2026
Commit 7bb9509 ("Remove unnecessary dispatch") removed the
`x86_64_v3` specialization on the assumption that at a v3 build the
`Default` namespace is already v3, making the per-function attribute
redundant.

That assumption breaks for files compiled with explicit `-march=x86-64-v2`
overrides. `FunctionsHashingMisc.cpp` is one such file (overridden to
avoid an unrelated SLP regression in `xxh3 #48` / `farmHash64 #5`).
Without a v3-attribute specialization there, the runtime dispatcher
falls back to the v2-compiled `Default` body, which uses SSE2/XMM
codegen instead of AVX2/YMM. That regressed `hiveHash` / `javaHash` on
UUID and Decimal128 columns by 12-18% (perf tests
`general_purpose_hashes_on_UUID #30` and `#32`, `#58` on Decimal).

Restore the `DECLARE_X86_64_V3_SPECIFIC_CODE` macro, the `x86_64_v3`
slot in `DECLARE_MULTITARGET_CODE`, and the per-function `x86_64_v3`
registration in both `FunctionIntHash` and `FunctionAnyHash`. This goes
hand-in-hand with the v2 override on `FunctionsHashingMisc.cpp`: that
override stays as the SLP fix, and this restoration makes the dispatcher
recover the AVX2 fast path on hosts that support it.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants