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