From 44d9869afced14c07cc348cf071951f62064c8b4 Mon Sep 17 00:00:00 2001 From: lismana Date: Mon, 10 Jun 2024 16:18:11 -0400 Subject: [PATCH] change order by --- src/main/resources/db-scripts/clickhouse/materialized_views.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/db-scripts/clickhouse/materialized_views.sql b/src/main/resources/db-scripts/clickhouse/materialized_views.sql index 4f9395de1be..d14d18b88e5 100644 --- a/src/main/resources/db-scripts/clickhouse/materialized_views.sql +++ b/src/main/resources/db-scripts/clickhouse/materialized_views.sql @@ -371,7 +371,7 @@ FROM structural_variant sv DROP VIEW IF EXISTS sample_mv; CREATE MATERIALIZED VIEW sample_mv ENGINE = AggregatingMergeTree() - ORDER BY internal_id + ORDER BY cancer_study_identifier SETTINGS allow_nullable_key = 1 POPULATE AS