Skip to content

ci: add ClickHouse 26.8 to the version test matrix - #8493

Merged
phacops merged 7 commits into
masterfrom
meredith/ch-26-8-matrix
Sep 30, 2026
Merged

phacops merged 7 commits into
masterfrom
meredith/ch-26-8-matrix

Conversation

@MeredithAnya

@MeredithAnya MeredithAnya commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Adds clickhouse/clickhouse-server:26.8.10.6 (26.8 LTS, mirrored in
getsentry/image-mirror#35) to the clickhouse-versions test matrix.

It is the official image rather than an Altinity build, so it lives under a
different mirror repo. matrix.version now carries <repo-suffix>:<tag>
after the shared ghcr.io/getsentry/image-mirror- prefix.

The default CLICKHOUSE_IMAGE for all other jobs stays on 25.8.16.10001.

@MeredithAnya
MeredithAnya requested a review from a team as a code owner September 24, 2026 19:09
Adds `clickhouse/clickhouse-server:26.8.1.2041` (26.8 LTS, mirrored in
getsentry/image-mirror#33) to the `clickhouse-versions` test matrix.

It's the official image rather than an Altinity build, so it lives under a
different mirror repo. `matrix.version` now carries `<repo-suffix>:<tag>`
after the shared `ghcr.io/getsentry/image-mirror-` prefix.

The default `CLICKHOUSE_IMAGE` for all other jobs stays on 25.8.16.10001.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@MeredithAnya
MeredithAnya force-pushed the meredith/ch-26-8-matrix branch from cf3401e to e5550a3 Compare September 25, 2026 23:23
phacops added a commit that referenced this pull request Sep 30, 2026
…8504)

`profiling_type` on `functions_mv_local` / `functions_mv_dist` is now
`SimpleAggregateFunction(any, LowCardinality(String))`. Before this
change it was a plain `LowCardinality(String)` column.

`functions_mv_local` is an `AggregatingMergeTree` table. Migration
`0004` added `profiling_type` to it without adding it to the sorting
key. Starting with ClickHouse 26.8, creating such a table fails with
`BAD_ARGUMENTS`: "Column(s) profiling_type ... are neither part of the
sorting key nor aggregate measures". An `ALTER` that has already been
applied still works. The table breaks when it is recreated from its
current definition, for example when adding a replica or when the test
DB cache replays `create_table_query`. The cache replay is what fails in
the ClickHouse 26.8 matrix job on #8493.

`any` gives the same merge behaviour the column already had, where
ClickHouse keeps an arbitrary value per sorting key. The on-disk format
is also unchanged, so the `MODIFY COLUMN` only changes metadata and does
not rewrite data. The materialized view keeps writing plain strings, and
queries read the column as before. The storage YAML is updated so
`test_no_schema_differences` still matches.

I tested locally against 26.8.10.6. The four tests that fail on #8493
fail on `master` and pass with this migration. I also checked that the
table can be recreated from its `create_table_query` after the
migration, that inserts and `OPTIMIZE FINAL` still merge through the MV,
and that the migration reverses cleanly. It also works on 25.3.
ClickHouse 26.8 reads an unquoted JSON number for a DateTime64 column as seconds instead of raw ticks (ClickHouse#108091). We sent millisecond/microsecond tick counts as bare integers for errors.timestamp_ms, search_issues.timestamp_ms, functions start/end_timestamp and profile_chunks start/end_timestamp, which 26.8 would store as garbage or reject.

Send a quoted "<seconds>.<fraction>" string instead. It is parsed identically by 25.8, 26.3 and 26.8+.
- copy_tables: 26.8 wraps single-expression PARTITION BY keys in parentheses in SHOW CREATE TABLE output; normalize before comparing.

- load_retriever: treat NaN aggregate results like NULL (fall back to -1) so NaN isn't cached or emitted as a gauge.

- extrapolation test: order the grouped query explicitly instead of relying on ClickHouse's row order.
@phacops
phacops requested a review from a team as a code owner September 30, 2026 19:12
@phacops
phacops merged commit c23d442 into master Sep 30, 2026
70 checks passed
@phacops
phacops deleted the meredith/ch-26-8-matrix branch September 30, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants