Skip to content

Commit

Permalink
feat: make sure that device_manufacturer is lowered prior to joining
Browse files Browse the repository at this point in the history
  • Loading branch information
kik-kik committed Jan 14, 2025
1 parent cccde89 commit 14b2235
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ WITH device_manufacturer_counts AS (
SELECT
submission_date,
device_manufacturer,
DENSE_RANK() OVER(PARTITION BY submission_date ORDER BY COUNT(*) DESC) AS manufacturer_rank,
RANK() OVER(PARTITION BY submission_date ORDER BY COUNT(*) DESC) AS manufacturer_rank,
FROM
`{{ project_id }}.{{ dataset }}.engagement_clients`
WHERE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ WITH device_manufacturer_counts AS (
SELECT
first_seen_date,
device_manufacturer,
DENSE_RANK() OVER(PARTITION BY submission_date ORDER BY COUNT(*) DESC) AS manufacturer_rank,
RANK() OVER(PARTITION BY first_seen_date ORDER BY COUNT(*) DESC) AS manufacturer_rank,
FROM
`{{ project_id }}.{{ dataset }}.new_profile_clients`
WHERE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ WITH device_manufacturer_counts AS (
SELECT
submission_date,
device_manufacturer,
DENSE_RANK() OVER(PARTITION BY submission_date ORDER BY COUNT(*) DESC) AS manufacturer_rank,
RANK() OVER(PARTITION BY submission_date ORDER BY COUNT(*) DESC) AS manufacturer_rank,
FROM
`{{ project_id }}.{{ dataset }}.retention_clients`
WHERE
Expand Down

0 comments on commit 14b2235

Please sign in to comment.