From 1872d46466031c1f0ac1902e221643fda0d63af2 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Sun, 12 Apr 2026 23:17:35 +0200 Subject: [PATCH] fix: remove semicolons from SQL comments that broke schema initializer The ClickHouseSchemaInitializer splits on semicolons before filtering comments, so semicolons inside comment text created invalid statements. Co-Authored-By: Claude Opus 4.6 (1M context) --- cameleer3-server-app/src/main/resources/clickhouse/init.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cameleer3-server-app/src/main/resources/clickhouse/init.sql b/cameleer3-server-app/src/main/resources/clickhouse/init.sql index 9dc9d885..e5e83955 100644 --- a/cameleer3-server-app/src/main/resources/clickhouse/init.sql +++ b/cameleer3-server-app/src/main/resources/clickhouse/init.sql @@ -228,8 +228,8 @@ FROM executions GROUP BY tenant_id, application_id, route_id, bucket, environment; -- stats_1m_processor (per-processor-type) --- Migration: count() double-counted duplicate inserts; replaced with uniq(execution_id). --- DROP + CREATE ensures schema migration; backfill rebuilds from raw data on startup. +-- Migration: replaced count() with uniq(execution_id) to deduplicate +-- DROP + CREATE + backfill rebuilds from raw data on startup DROP VIEW IF EXISTS stats_1m_processor_mv; DROP TABLE IF EXISTS stats_1m_processor;