Skip to content

Commit

Permalink
Update other SQL engine snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Nov 6, 2024
1 parent 8cae7b9 commit a2a01c0
Show file tree
Hide file tree
Showing 917 changed files with 208,061 additions and 161,507 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,54 @@ FROM (
subq_3.metric_time__day
, SUM(subq_3.visits) AS visits
FROM (
-- Constrain Output with WHERE
-- Pass Only Elements: ['visits', 'metric_time__day']
SELECT
subq_2.metric_time__day
, subq_2.visits
FROM (
-- Pass Only Elements: ['visits', 'metric_time__day']
-- Constrain Output with WHERE
SELECT
subq_1.metric_time__day
subq_1.ds__day
, subq_1.ds__week
, subq_1.ds__month
, subq_1.ds__quarter
, subq_1.ds__year
, subq_1.ds__extract_year
, subq_1.ds__extract_quarter
, subq_1.ds__extract_month
, subq_1.ds__extract_day
, subq_1.ds__extract_dow
, subq_1.ds__extract_doy
, subq_1.visit__ds__day
, subq_1.visit__ds__week
, subq_1.visit__ds__month
, subq_1.visit__ds__quarter
, subq_1.visit__ds__year
, subq_1.visit__ds__extract_year
, subq_1.visit__ds__extract_quarter
, subq_1.visit__ds__extract_month
, subq_1.visit__ds__extract_day
, subq_1.visit__ds__extract_dow
, subq_1.visit__ds__extract_doy
, subq_1.metric_time__day
, subq_1.metric_time__week
, subq_1.metric_time__month
, subq_1.metric_time__quarter
, subq_1.metric_time__year
, subq_1.metric_time__extract_year
, subq_1.metric_time__extract_quarter
, subq_1.metric_time__extract_month
, subq_1.metric_time__extract_day
, subq_1.metric_time__extract_dow
, subq_1.metric_time__extract_doy
, subq_1.user
, subq_1.session
, subq_1.visit__user
, subq_1.visit__session
, subq_1.referrer_id
, subq_1.visit__referrer_id
, subq_1.visits
, subq_1.visitors
FROM (
-- Metric Time Dimension 'ds'
SELECT
Expand Down Expand Up @@ -103,8 +142,8 @@ FROM (
FROM ***************************.fct_visits visits_source_src_28000
) subq_0
) subq_1
WHERE metric_time__day = '2020-01-01'
) subq_2
WHERE metric_time__day = '2020-01-01'
) subq_3
GROUP BY
metric_time__day
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ FROM (
, MAX(subq_32.buys) AS buys
FROM (
-- Constrain Output with WHERE
-- Pass Only Elements: ['visits', 'metric_time__day']
-- Aggregate Measures
SELECT
metric_time__day
, SUM(visits) AS visits
FROM (
-- Read Elements From Semantic Model 'visits_source'
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['visits', 'metric_time__day']
SELECT
DATETIME_TRUNC(ds, day) AS metric_time__day
, 1 AS visits
FROM ***************************.fct_visits visits_source_src_28000
) subq_19
) subq_18
WHERE metric_time__day = '2020-01-01'
GROUP BY
metric_time__day
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,55 @@ FROM (
, subq_3.visit__referrer_id
, SUM(subq_3.visits) AS visits
FROM (
-- Constrain Output with WHERE
-- Pass Only Elements: ['visits', 'visit__referrer_id', 'metric_time__day']
SELECT
subq_2.metric_time__day
, subq_2.visit__referrer_id
, subq_2.visits
FROM (
-- Pass Only Elements: ['visits', 'visit__referrer_id', 'metric_time__day']
-- Constrain Output with WHERE
SELECT
subq_1.metric_time__day
subq_1.ds__day
, subq_1.ds__week
, subq_1.ds__month
, subq_1.ds__quarter
, subq_1.ds__year
, subq_1.ds__extract_year
, subq_1.ds__extract_quarter
, subq_1.ds__extract_month
, subq_1.ds__extract_day
, subq_1.ds__extract_dow
, subq_1.ds__extract_doy
, subq_1.visit__ds__day
, subq_1.visit__ds__week
, subq_1.visit__ds__month
, subq_1.visit__ds__quarter
, subq_1.visit__ds__year
, subq_1.visit__ds__extract_year
, subq_1.visit__ds__extract_quarter
, subq_1.visit__ds__extract_month
, subq_1.visit__ds__extract_day
, subq_1.visit__ds__extract_dow
, subq_1.visit__ds__extract_doy
, subq_1.metric_time__day
, subq_1.metric_time__week
, subq_1.metric_time__month
, subq_1.metric_time__quarter
, subq_1.metric_time__year
, subq_1.metric_time__extract_year
, subq_1.metric_time__extract_quarter
, subq_1.metric_time__extract_month
, subq_1.metric_time__extract_day
, subq_1.metric_time__extract_dow
, subq_1.metric_time__extract_doy
, subq_1.user
, subq_1.session
, subq_1.visit__user
, subq_1.visit__session
, subq_1.referrer_id
, subq_1.visit__referrer_id
, subq_1.visits
, subq_1.visitors
FROM (
-- Metric Time Dimension 'ds'
SELECT
Expand Down Expand Up @@ -108,8 +146,8 @@ FROM (
FROM ***************************.fct_visits visits_source_src_28000
) subq_0
) subq_1
WHERE visit__referrer_id = 'ref_id_01'
) subq_2
WHERE visit__referrer_id = 'ref_id_01'
) subq_3
GROUP BY
metric_time__day
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ FROM (
, MAX(subq_32.buys) AS buys
FROM (
-- Constrain Output with WHERE
-- Pass Only Elements: ['visits', 'visit__referrer_id', 'metric_time__day']
-- Aggregate Measures
SELECT
metric_time__day
Expand All @@ -20,13 +21,12 @@ FROM (
FROM (
-- Read Elements From Semantic Model 'visits_source'
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['visits', 'visit__referrer_id', 'metric_time__day']
SELECT
DATETIME_TRUNC(ds, day) AS metric_time__day
, referrer_id AS visit__referrer_id
, 1 AS visits
FROM ***************************.fct_visits visits_source_src_28000
) subq_19
) subq_18
WHERE visit__referrer_id = 'ref_id_01'
GROUP BY
metric_time__day
Expand Down
Loading

0 comments on commit a2a01c0

Please sign in to comment.