From be03e9b3d6bdcf1af3af73b64548a1f11ccd01e5 Mon Sep 17 00:00:00 2001 From: Luke Sikina Date: Sun, 21 Jul 2024 11:48:40 -0400 Subject: [PATCH] distinct --- .../avillach/dictionary/facet/FacetQueryGenerator.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/edu/harvard/dbmi/avillach/dictionary/facet/FacetQueryGenerator.java b/src/main/java/edu/harvard/dbmi/avillach/dictionary/facet/FacetQueryGenerator.java index dd69957..7abd75c 100644 --- a/src/main/java/edu/harvard/dbmi/avillach/dictionary/facet/FacetQueryGenerator.java +++ b/src/main/java/edu/harvard/dbmi/avillach/dictionary/facet/FacetQueryGenerator.java @@ -67,7 +67,7 @@ private String createMultiCategorySQLWithSearch(Map> facets, return """ facet_category_%s_concepts AS ( SELECT - DISTINCT(concept_node.concept_node_id) + DISTINCT(concept_node.concept_node_id) as concept_node_id FROM facet JOIN facet__concept_node fcn ON fcn.facet_id = facet.facet_id @@ -163,7 +163,7 @@ private String createMultiCategorySQLNoSearch(Map> facets, M return """ facet_category_%s_concepts AS ( SELECT - DISTINCT(concept_node.concept_node_id) + DISTINCT(concept_node.concept_node_id) as concept_node_id FROM facet JOIN facet__concept_node fcn ON fcn.facet_id = facet.facet_id @@ -283,7 +283,7 @@ facet.facet_id, count(*) as facet_count ( WITH matching_concepts AS ( SELECT - DISTINCT(concept_node.concept_node_id AS concept_node_id) + DISTINCT(concept_node.concept_node_id) AS concept_node_id FROM facet JOIN facet_category fc on fc.facet_category_id = facet.facet_category_id @@ -352,7 +352,7 @@ facet.facet_id, count(*) as facet_count ( WITH matching_concepts AS ( SELECT - DISTINCT(concept_node.concept_node_id AS concept_node_id) + DISTINCT(concept_node.concept_node_id) AS concept_node_id FROM facet JOIN facet__concept_node fcn ON fcn.facet_id = facet.facet_id