From a0aaab476c6d9347ae83cb771ebb80b3f5550c9d Mon Sep 17 00:00:00 2001 From: Robbie Coomber Date: Wed, 13 Dec 2023 16:32:30 +0000 Subject: [PATCH] Consistent order by in table and dict --- posthog/models/channel_type/sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/models/channel_type/sql.py b/posthog/models/channel_type/sql.py index ade3b814236d8..148ffddcfdbe2 100644 --- a/posthog/models/channel_type/sql.py +++ b/posthog/models/channel_type/sql.py @@ -11,7 +11,7 @@ type_if_paid String NULL, type_if_organic String NULL, ) ENGINE = MergeTree() -ORDER BY domain; +ORDER BY domain, kind; """ DROP_CHANNEL_DEFINITION_TABLE_SQL = f"DROP TABLE IF EXISTS channel_definition ON CLUSTER '{CLICKHOUSE_CLUSTER}'"