Skip to content

Commit b759825

Browse files
committed
fix(clickhouse): wait for task event storage mutation
1 parent d26b28d commit b759825

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎internal-packages/clickhouse/schema/042_reduce_task_events_v2_storage_overhead.sql‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
-- stored. Writers must include attributes in an explicit insert column list
77
-- because implicit INSERT column lists exclude EPHEMERAL columns.
88
ALTER TABLE trigger_dev.task_events_v2
9+
MODIFY COLUMN attributes JSON EPHEMERAL,
910
DROP INDEX IF EXISTS idx_attributes_text_search,
11+
DROP INDEX IF EXISTS idx_attributes_text,
1012
DROP INDEX IF EXISTS idx_message_text_search,
11-
MODIFY COLUMN attributes JSON EPHEMERAL;
13+
DROP INDEX IF EXISTS message_text_search
14+
SETTINGS mutations_sync = 2, alter_sync = 2;
1215

1316
-- +goose Down
1417

0 commit comments

Comments
 (0)