Trouble with ClickHouse group
6 posts from 3 people6d activeFading, +0 this week
Posts per day
The posts behind it
Planning a MergeTree query does work whose result is never used; skipping it saves 0.6-0.75 ms on a filtered GROUP BY and 0.16 ms on a point lookup (ClickBench Q41, Q42, Q19: 5-7% faster)
### Describe the situation Planning a MergeTree query does work whose result is never used, such as hashing all format settings for each comparison. The patch skips it: 0.6-0.75 ms less for a filtered GROUP BY, 0.16 ms for a point lookup, 0.03-0.07 ms for a count, as most of it...
AND-chain rewrite prunes and folds `GROUP BY` keys in `HAVING`: wrong rows
### Describe what's wrong - `HAVING k1 AND k2` over comparison `GROUP BY` keys returns rows with `k2 = 0` under `ROLLUP`/`CUBE`/`GROUPING SETS`.** - the statement below returns `1 0 6` next to `1 1 6`; `SELECT k1 AND k2` in the same `ROLLUP` returns 1 on the `k2 = 0` row. -...
[Umbrella] `GROUP BY` improvements
This issue contains tasks for further improvements of `GROUP BY`. Continuation of https://github.com/ClickHouse/ClickHouse/pull/123531. How the Adaptive Aggregator works Each thread aggregates into its own hash table until the table holds 16,384 keys or 4 MiB. Then the table...
GROUP BY over a near-unique key with ORDER BY count() DESC LIMIT n: bound group counts before counting them in the adaptive merge (lone-count top-K -27%, ClickBench Q32 -14%)
### Describe the situation With a near-unique key, `GROUP BY ... ORDER BY count() DESC LIMIT n` spends much of its merge counting every row into hash tables larger than the cache. Once the top-n threshold is known, a pass over 2-bit counters can skip the groups that can at most...
ARRAY JOIN in an IN subquery splits the GROUP BY key: wrong ROLLUP row
### Describe what's wrong - A grouping key containing an `IN` subquery with `ARRAY JOIN` is treated as two different expressions. - Triggered by `GROUP BY ... WITH ROLLUP` (also `CUBE`, `GROUPING SETS`, `TOTALS`) on such a key, with default settings. - The super-aggregate row...
LIMIT BY keys_to_keep set compares aliases, so an aliased GROUP BY key is missed
### Describe what's wrong - A valid aggregate query is rejected with error code 10 on a stock server with no settings changed - Trigger is a positional `LIMIT 1 BY 1` over `GROUP BY toString(c0)` with `WITH ROLLUP`, `WITH CUBE` or `WITH TOTALS` - Expected the grouped rows, but...
Companies and products named
About this problem
Evidence
6 posts from 3 people in 1 place, about 1 a week over 65 days. Mostly on ClickHouse/ClickHouse. Tools named alongside: GitHub.
Frustration Frustration 0 of 3· Seen on GitHub issues
How it was grouped
Posts about ClickHouse with no known issue, sharing the word "group". First post Sep 21, 2026, latest Nov 24, 2026. Corroborated: 3 or more posts from 2 or more people or places. Method
Other ClickHouse problems
ClickHouse upgrades break working setups
39 posts from 23 people on GitHub issues.
Trouble with ClickHouse column
Top post: "Top-K reads with a `minmax` index on the sort column: read the granules with the best bounds first", one of 18 posts from 10 people on GitHub issues.
ClickHouse users keep filing bugs
Top post: "Tighten seccomp policy for optional kernel interfaces", one of 16 posts from 10 people on GitHub issues.
Experiments on ClickHouse are hard to reproduce and track
13 posts from 3 people on GitHub issues.
ClickHouse costs outgrow the value it gives
11 posts from 3 people on GitHub issues.
Trouble with ClickHouse columns
Top post: "INSERT SELECT from fileCluster/urlCluster fails to fill DEFAULT columns", one of 10 posts from 8 people on GitHub issues.
Trouble with ClickHouse table
Top post: "`SYSTEM RESTORE REPLICA` on a second replica over-bumps the table `metadata` znode version; every later", one of 9 posts from 5 people on GitHub issues.
Trouble with ClickHouse join
Top post: "JOIN runtime filter pruning drops rows for CAST(UInt8 AS Bool) probe key", one of 6 posts from 5 people on GitHub issues.
ClickHouse error messages are cryptic
6 posts from 3 people on GitHub issues.
Trouble with ClickHouse logical
Top post: "Keeper: dynamically adding a server via `sync_log_request` (`apply_pack`) skips `pre_commit`, causing", one of 6 posts from 3 people on GitHub issues.
Trouble with ClickHouse query
Top post: "Support the `JSON` data type in SQL/JSON functions `JSON_EXISTS`, `JSON_QUERY`, `JSON_VALUE`", one of 6 posts from 4 people on GitHub issues.
Trouble with ClickHouse read
Top post: "Bucketed `Map` serialization loses the key order in Compact parts written with", one of 5 posts from 5 people on GitHub issues.
History