Skip to content

Commit

Permalink
distinct
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sikina committed Jul 21, 2024
1 parent f5924ab commit be03e9b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private String createMultiCategorySQLWithSearch(Map<String, List<Facet>> 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
Expand Down Expand Up @@ -163,7 +163,7 @@ private String createMultiCategorySQLNoSearch(Map<String, List<Facet>> 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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit be03e9b

Please sign in to comment.