Some checks failed
ClickHouse 24.12 new query analyzer resolves countMerge(total_count) in the CASE WHEN to the SELECT alias (UInt64) instead of the original AggregateFunction column when the alias has the same name. Renamed aliases to tc/fc to avoid the collision. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>