From 3013812d2c4a3200612101dc4a1343d45005e594 Mon Sep 17 00:00:00 2001 From: alisman Date: Wed, 11 Dec 2024 07:57:43 -0500 Subject: [PATCH] Fix CH primary keying of genetic-alteration-derived --- src/main/resources/db-scripts/clickhouse/clickhouse.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/db-scripts/clickhouse/clickhouse.sql b/src/main/resources/db-scripts/clickhouse/clickhouse.sql index b3b0bc4d39f..db311282190 100644 --- a/src/main/resources/db-scripts/clickhouse/clickhouse.sql +++ b/src/main/resources/db-scripts/clickhouse/clickhouse.sql @@ -294,9 +294,9 @@ CREATE TABLE IF NOT EXISTS genetic_alteration_derived hugo_gene_symbol String, profile_type LowCardinality(String), alteration_value Nullable(String) -) + ) ENGINE = MergeTree() - ORDER BY (profile_type, cancer_study_identifier, sample_unique_id, hugo_gene_symbol); + ORDER BY (cancer_study_identifier, hugo_gene_symbol, profile_type, sample_unique_id); INSERT INTO TABLE genetic_alteration_derived SELECT