From ed328180fbe4719d916b0cfd6a29bfc93273148c Mon Sep 17 00:00:00 2001 From: Brian Freeman Date: Wed, 12 Jun 2024 10:01:28 -0500 Subject: [PATCH] DT-829 fixing upper case search (#8601) [DT-829][risk=no] fixing variant search bug --- .../bigquery/cbdata/cb_variant_attribute_genes_data.json | 2 +- .../org/pmiops/workbench/cohortbuilder/VariantQueryBuilder.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/bigquerytest/resources/bigquery/cbdata/cb_variant_attribute_genes_data.json b/api/src/bigquerytest/resources/bigquery/cbdata/cb_variant_attribute_genes_data.json index 418f10b05c9..26c4b28bf6a 100644 --- a/api/src/bigquerytest/resources/bigquery/cbdata/cb_variant_attribute_genes_data.json +++ b/api/src/bigquerytest/resources/bigquery/cbdata/cb_variant_attribute_genes_data.json @@ -1,7 +1,7 @@ [ { "vid": "1-101504524-G-A", - "gene_symbol": "GENE" + "gene_symbol": "gene" }, { "vid": "1-101504524-G-A", diff --git a/api/src/main/java/org/pmiops/workbench/cohortbuilder/VariantQueryBuilder.java b/api/src/main/java/org/pmiops/workbench/cohortbuilder/VariantQueryBuilder.java index 5efe37649f5..4b75d87b76c 100644 --- a/api/src/main/java/org/pmiops/workbench/cohortbuilder/VariantQueryBuilder.java +++ b/api/src/main/java/org/pmiops/workbench/cohortbuilder/VariantQueryBuilder.java @@ -100,7 +100,7 @@ WHERE vid IN ( WHERE vid IN ( SELECT vid FROM `${projectId}.${dataSetId}.cb_variant_attribute_genes` - WHERE gene_symbol = @singleGene + WHERE UPPER(gene_symbol) = @singleGene ) """;