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 2a2e2ca
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 218 deletions.
18 changes: 0 additions & 18 deletions no_facets.sql

This file was deleted.

64 changes: 0 additions & 64 deletions one_facet.sql

This file was deleted.

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

This file was deleted.

87 changes: 0 additions & 87 deletions two_cats.sql

This file was deleted.

0 comments on commit 2a2e2ca

Please sign in to comment.