Skip to content

Commit

Permalink
Fix CH primary keying of genetic-alteration-derived
Browse files Browse the repository at this point in the history
  • Loading branch information
alisman committed Dec 11, 2024
1 parent 94e6381 commit 3013812
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/db-scripts/clickhouse/clickhouse.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3013812

Please sign in to comment.