We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 49f4fd8 + a5194f1 commit 09c168aCopy full SHA for 09c168a
1 file changed
definitions/output/reports/tech_report_categories.js
@@ -71,18 +71,15 @@ technology_stats AS (
71
SELECT
72
technology,
73
category_obj AS categories,
74
- SUM(origins.mobile + origins.desktop) AS total_origins
+ origins.mobile AS mobile_origins
75
FROM ${ctx.ref('reports', 'tech_report_technologies')}
76
- GROUP BY
77
- technology,
78
- categories
79
)
80
81
82
category,
83
description,
84
origins,
85
- ARRAY_AGG(technology IGNORE NULLS ORDER BY technology_stats.total_origins DESC) AS technologies
+ ARRAY_AGG(technology IGNORE NULLS ORDER BY technology_stats.mobile_origins DESC) AS technologies
86
FROM category_stats
87
INNER JOIN technology_stats
88
ON category_stats.category IN UNNEST(technology_stats.categories)
0 commit comments