Skip to content

Preserve LowCardinality wrappers during TTL aggregation - #92971

Merged
seva-potapov merged 1 commit into
masterfrom
ttl-aggregate-lowcardinality
Dec 31, 2025
Merged

seva-potapov merged 1 commit into
masterfrom
ttl-aggregate-lowcardinality

Conversation

@seva-potapov

Copy link
Copy Markdown
Contributor

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a [user-readable short description])

Restore LowCardinality wrappers on SET expression results if needed during TTL aggregation to prevent exceptions during table optimization.

Details

Fixes #87336

LowCardinality wrapper gets lost during aggregation step, so during optimization of the table we were hitting assert.

@seva-potapov
seva-potapov requested a review from Avogar December 24, 2025 03:08
@clickhouse-gh

clickhouse-gh Bot commented Dec 24, 2025 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [b14c9f5]

Summary: ❌

job_name test_name status info comment
Integration tests (amd_binary, 5/5) failure
test_scheduler_cpu_preemptive/test.py::test_independent_pools FAIL issue ISSUE EXISTS
BuzzHouse (amd_debug) failure
Logical error: 'Inconsistent AST formatting: the query: (STID: 1941-1bfa) FAIL issue ISSUE EXISTS

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Dec 24, 2025
@seva-potapov
seva-potapov force-pushed the ttl-aggregate-lowcardinality branch from 474f05c to e4a8433 Compare December 24, 2025 11:03
@seva-potapov
seva-potapov force-pushed the ttl-aggregate-lowcardinality branch from e4a8433 to b14c9f5 Compare December 24, 2025 12:00
@Avogar Avogar self-assigned this Dec 24, 2025
@seva-potapov
seva-potapov added this pull request to the merge queue Dec 31, 2025
Merged via the queue into master with commit acd6404 Dec 31, 2025
@seva-potapov
seva-potapov deleted the ttl-aggregate-lowcardinality branch December 31, 2025 04:32
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Logical error: '(isConst() || isSparse()) ? getDataType() == rhs.getDataType() : typeid(*this) == typeid(rhs)' during TTL merge

3 participants