Skip to content

Commit 09c168a

Browse files
committed
Merge branch 'main' into smart-otter
2 parents 49f4fd8 + a5194f1 commit 09c168a

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

definitions/output/reports/tech_report_categories.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,15 @@ technology_stats AS (
7171
SELECT
7272
technology,
7373
category_obj AS categories,
74-
SUM(origins.mobile + origins.desktop) AS total_origins
74+
origins.mobile AS mobile_origins
7575
FROM ${ctx.ref('reports', 'tech_report_technologies')}
76-
GROUP BY
77-
technology,
78-
categories
7976
)
8077
8178
SELECT
8279
category,
8380
description,
8481
origins,
85-
ARRAY_AGG(technology IGNORE NULLS ORDER BY technology_stats.total_origins DESC) AS technologies
82+
ARRAY_AGG(technology IGNORE NULLS ORDER BY technology_stats.mobile_origins DESC) AS technologies
8683
FROM category_stats
8784
INNER JOIN technology_stats
8885
ON category_stats.category IN UNNEST(technology_stats.categories)

0 commit comments

Comments
 (0)