Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Jun 11, 2024
1 parent b8f3844 commit d233a1d
Show file tree
Hide file tree
Showing 232 changed files with 5,614 additions and 5,614 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,23 @@ FROM (
SELECT
1 AS visits
, visits_source_src_28000.user_id AS visitors
, DATE_TRUNC(visits_source_src_28000.ds, day) AS ds__day
, DATE_TRUNC(visits_source_src_28000.ds, isoweek) AS ds__week
, DATE_TRUNC(visits_source_src_28000.ds, month) AS ds__month
, DATE_TRUNC(visits_source_src_28000.ds, quarter) AS ds__quarter
, DATE_TRUNC(visits_source_src_28000.ds, year) AS ds__year
, DATETIME_TRUNC(visits_source_src_28000.ds, day) AS ds__day
, DATETIME_TRUNC(visits_source_src_28000.ds, isoweek) AS ds__week
, DATETIME_TRUNC(visits_source_src_28000.ds, month) AS ds__month
, DATETIME_TRUNC(visits_source_src_28000.ds, quarter) AS ds__quarter
, DATETIME_TRUNC(visits_source_src_28000.ds, year) AS ds__year
, EXTRACT(year FROM visits_source_src_28000.ds) AS ds__extract_year
, EXTRACT(quarter FROM visits_source_src_28000.ds) AS ds__extract_quarter
, EXTRACT(month FROM visits_source_src_28000.ds) AS ds__extract_month
, EXTRACT(day FROM visits_source_src_28000.ds) AS ds__extract_day
, IF(EXTRACT(dayofweek FROM visits_source_src_28000.ds) = 1, 7, EXTRACT(dayofweek FROM visits_source_src_28000.ds) - 1) AS ds__extract_dow
, EXTRACT(dayofyear FROM visits_source_src_28000.ds) AS ds__extract_doy
, visits_source_src_28000.referrer_id
, DATE_TRUNC(visits_source_src_28000.ds, day) AS visit__ds__day
, DATE_TRUNC(visits_source_src_28000.ds, isoweek) AS visit__ds__week
, DATE_TRUNC(visits_source_src_28000.ds, month) AS visit__ds__month
, DATE_TRUNC(visits_source_src_28000.ds, quarter) AS visit__ds__quarter
, DATE_TRUNC(visits_source_src_28000.ds, year) AS visit__ds__year
, DATETIME_TRUNC(visits_source_src_28000.ds, day) AS visit__ds__day
, DATETIME_TRUNC(visits_source_src_28000.ds, isoweek) AS visit__ds__week
, DATETIME_TRUNC(visits_source_src_28000.ds, month) AS visit__ds__month
, DATETIME_TRUNC(visits_source_src_28000.ds, quarter) AS visit__ds__quarter
, DATETIME_TRUNC(visits_source_src_28000.ds, year) AS visit__ds__year
, EXTRACT(year FROM visits_source_src_28000.ds) AS visit__ds__extract_year
, EXTRACT(quarter FROM visits_source_src_28000.ds) AS visit__ds__extract_quarter
, EXTRACT(month FROM visits_source_src_28000.ds) AS visit__ds__extract_month
Expand Down Expand Up @@ -220,23 +220,23 @@ FROM (
SELECT
1 AS visits
, visits_source_src_28000.user_id AS visitors
, DATE_TRUNC(visits_source_src_28000.ds, day) AS ds__day
, DATE_TRUNC(visits_source_src_28000.ds, isoweek) AS ds__week
, DATE_TRUNC(visits_source_src_28000.ds, month) AS ds__month
, DATE_TRUNC(visits_source_src_28000.ds, quarter) AS ds__quarter
, DATE_TRUNC(visits_source_src_28000.ds, year) AS ds__year
, DATETIME_TRUNC(visits_source_src_28000.ds, day) AS ds__day
, DATETIME_TRUNC(visits_source_src_28000.ds, isoweek) AS ds__week
, DATETIME_TRUNC(visits_source_src_28000.ds, month) AS ds__month
, DATETIME_TRUNC(visits_source_src_28000.ds, quarter) AS ds__quarter
, DATETIME_TRUNC(visits_source_src_28000.ds, year) AS ds__year
, EXTRACT(year FROM visits_source_src_28000.ds) AS ds__extract_year
, EXTRACT(quarter FROM visits_source_src_28000.ds) AS ds__extract_quarter
, EXTRACT(month FROM visits_source_src_28000.ds) AS ds__extract_month
, EXTRACT(day FROM visits_source_src_28000.ds) AS ds__extract_day
, IF(EXTRACT(dayofweek FROM visits_source_src_28000.ds) = 1, 7, EXTRACT(dayofweek FROM visits_source_src_28000.ds) - 1) AS ds__extract_dow
, EXTRACT(dayofyear FROM visits_source_src_28000.ds) AS ds__extract_doy
, visits_source_src_28000.referrer_id
, DATE_TRUNC(visits_source_src_28000.ds, day) AS visit__ds__day
, DATE_TRUNC(visits_source_src_28000.ds, isoweek) AS visit__ds__week
, DATE_TRUNC(visits_source_src_28000.ds, month) AS visit__ds__month
, DATE_TRUNC(visits_source_src_28000.ds, quarter) AS visit__ds__quarter
, DATE_TRUNC(visits_source_src_28000.ds, year) AS visit__ds__year
, DATETIME_TRUNC(visits_source_src_28000.ds, day) AS visit__ds__day
, DATETIME_TRUNC(visits_source_src_28000.ds, isoweek) AS visit__ds__week
, DATETIME_TRUNC(visits_source_src_28000.ds, month) AS visit__ds__month
, DATETIME_TRUNC(visits_source_src_28000.ds, quarter) AS visit__ds__quarter
, DATETIME_TRUNC(visits_source_src_28000.ds, year) AS visit__ds__year
, EXTRACT(year FROM visits_source_src_28000.ds) AS visit__ds__extract_year
, EXTRACT(quarter FROM visits_source_src_28000.ds) AS visit__ds__extract_quarter
, EXTRACT(month FROM visits_source_src_28000.ds) AS visit__ds__extract_month
Expand Down Expand Up @@ -342,22 +342,22 @@ FROM (
SELECT
1 AS buys
, buys_source_src_28000.user_id AS buyers
, DATE_TRUNC(buys_source_src_28000.ds, day) AS ds__day
, DATE_TRUNC(buys_source_src_28000.ds, isoweek) AS ds__week
, DATE_TRUNC(buys_source_src_28000.ds, month) AS ds__month
, DATE_TRUNC(buys_source_src_28000.ds, quarter) AS ds__quarter
, DATE_TRUNC(buys_source_src_28000.ds, year) AS ds__year
, DATETIME_TRUNC(buys_source_src_28000.ds, day) AS ds__day
, DATETIME_TRUNC(buys_source_src_28000.ds, isoweek) AS ds__week
, DATETIME_TRUNC(buys_source_src_28000.ds, month) AS ds__month
, DATETIME_TRUNC(buys_source_src_28000.ds, quarter) AS ds__quarter
, DATETIME_TRUNC(buys_source_src_28000.ds, year) AS ds__year
, EXTRACT(year FROM buys_source_src_28000.ds) AS ds__extract_year
, EXTRACT(quarter FROM buys_source_src_28000.ds) AS ds__extract_quarter
, EXTRACT(month FROM buys_source_src_28000.ds) AS ds__extract_month
, EXTRACT(day FROM buys_source_src_28000.ds) AS ds__extract_day
, IF(EXTRACT(dayofweek FROM buys_source_src_28000.ds) = 1, 7, EXTRACT(dayofweek FROM buys_source_src_28000.ds) - 1) AS ds__extract_dow
, EXTRACT(dayofyear FROM buys_source_src_28000.ds) AS ds__extract_doy
, DATE_TRUNC(buys_source_src_28000.ds, day) AS buy__ds__day
, DATE_TRUNC(buys_source_src_28000.ds, isoweek) AS buy__ds__week
, DATE_TRUNC(buys_source_src_28000.ds, month) AS buy__ds__month
, DATE_TRUNC(buys_source_src_28000.ds, quarter) AS buy__ds__quarter
, DATE_TRUNC(buys_source_src_28000.ds, year) AS buy__ds__year
, DATETIME_TRUNC(buys_source_src_28000.ds, day) AS buy__ds__day
, DATETIME_TRUNC(buys_source_src_28000.ds, isoweek) AS buy__ds__week
, DATETIME_TRUNC(buys_source_src_28000.ds, month) AS buy__ds__month
, DATETIME_TRUNC(buys_source_src_28000.ds, quarter) AS buy__ds__quarter
, DATETIME_TRUNC(buys_source_src_28000.ds, year) AS buy__ds__year
, EXTRACT(year FROM buys_source_src_28000.ds) AS buy__ds__extract_year
, EXTRACT(quarter FROM buys_source_src_28000.ds) AS buy__ds__extract_quarter
, EXTRACT(month FROM buys_source_src_28000.ds) AS buy__ds__extract_month
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FROM (
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['visits', 'metric_time__day']
SELECT
DATE_TRUNC(ds, day) AS metric_time__day
DATETIME_TRUNC(ds, day) AS metric_time__day
, 1 AS visits
FROM ***************************.fct_visits visits_source_src_28000
) subq_18
Expand Down Expand Up @@ -76,8 +76,8 @@ FROM (
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['visits', 'ds__day', 'metric_time__day', 'user']
SELECT
DATE_TRUNC(ds, day) AS ds__day
, DATE_TRUNC(ds, day) AS metric_time__day
DATETIME_TRUNC(ds, day) AS ds__day
, DATETIME_TRUNC(ds, day) AS metric_time__day
, user_id AS user
, 1 AS visits
FROM ***************************.fct_visits visits_source_src_28000
Expand All @@ -87,7 +87,7 @@ FROM (
-- Metric Time Dimension 'ds'
-- Add column with generated UUID
SELECT
DATE_TRUNC(ds, day) AS ds__day
DATETIME_TRUNC(ds, day) AS ds__day
, user_id AS user
, 1 AS buys
, GENERATE_UUID() AS mf_internal_uuid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,23 +77,23 @@ FROM (
SELECT
1 AS visits
, visits_source_src_28000.user_id AS visitors
, DATE_TRUNC(visits_source_src_28000.ds, day) AS ds__day
, DATE_TRUNC(visits_source_src_28000.ds, isoweek) AS ds__week
, DATE_TRUNC(visits_source_src_28000.ds, month) AS ds__month
, DATE_TRUNC(visits_source_src_28000.ds, quarter) AS ds__quarter
, DATE_TRUNC(visits_source_src_28000.ds, year) AS ds__year
, DATETIME_TRUNC(visits_source_src_28000.ds, day) AS ds__day
, DATETIME_TRUNC(visits_source_src_28000.ds, isoweek) AS ds__week
, DATETIME_TRUNC(visits_source_src_28000.ds, month) AS ds__month
, DATETIME_TRUNC(visits_source_src_28000.ds, quarter) AS ds__quarter
, DATETIME_TRUNC(visits_source_src_28000.ds, year) AS ds__year
, EXTRACT(year FROM visits_source_src_28000.ds) AS ds__extract_year
, EXTRACT(quarter FROM visits_source_src_28000.ds) AS ds__extract_quarter
, EXTRACT(month FROM visits_source_src_28000.ds) AS ds__extract_month
, EXTRACT(day FROM visits_source_src_28000.ds) AS ds__extract_day
, IF(EXTRACT(dayofweek FROM visits_source_src_28000.ds) = 1, 7, EXTRACT(dayofweek FROM visits_source_src_28000.ds) - 1) AS ds__extract_dow
, EXTRACT(dayofyear FROM visits_source_src_28000.ds) AS ds__extract_doy
, visits_source_src_28000.referrer_id
, DATE_TRUNC(visits_source_src_28000.ds, day) AS visit__ds__day
, DATE_TRUNC(visits_source_src_28000.ds, isoweek) AS visit__ds__week
, DATE_TRUNC(visits_source_src_28000.ds, month) AS visit__ds__month
, DATE_TRUNC(visits_source_src_28000.ds, quarter) AS visit__ds__quarter
, DATE_TRUNC(visits_source_src_28000.ds, year) AS visit__ds__year
, DATETIME_TRUNC(visits_source_src_28000.ds, day) AS visit__ds__day
, DATETIME_TRUNC(visits_source_src_28000.ds, isoweek) AS visit__ds__week
, DATETIME_TRUNC(visits_source_src_28000.ds, month) AS visit__ds__month
, DATETIME_TRUNC(visits_source_src_28000.ds, quarter) AS visit__ds__quarter
, DATETIME_TRUNC(visits_source_src_28000.ds, year) AS visit__ds__year
, EXTRACT(year FROM visits_source_src_28000.ds) AS visit__ds__extract_year
, EXTRACT(quarter FROM visits_source_src_28000.ds) AS visit__ds__extract_quarter
, EXTRACT(month FROM visits_source_src_28000.ds) AS visit__ds__extract_month
Expand Down Expand Up @@ -238,23 +238,23 @@ FROM (
SELECT
1 AS visits
, visits_source_src_28000.user_id AS visitors
, DATE_TRUNC(visits_source_src_28000.ds, day) AS ds__day
, DATE_TRUNC(visits_source_src_28000.ds, isoweek) AS ds__week
, DATE_TRUNC(visits_source_src_28000.ds, month) AS ds__month
, DATE_TRUNC(visits_source_src_28000.ds, quarter) AS ds__quarter
, DATE_TRUNC(visits_source_src_28000.ds, year) AS ds__year
, DATETIME_TRUNC(visits_source_src_28000.ds, day) AS ds__day
, DATETIME_TRUNC(visits_source_src_28000.ds, isoweek) AS ds__week
, DATETIME_TRUNC(visits_source_src_28000.ds, month) AS ds__month
, DATETIME_TRUNC(visits_source_src_28000.ds, quarter) AS ds__quarter
, DATETIME_TRUNC(visits_source_src_28000.ds, year) AS ds__year
, EXTRACT(year FROM visits_source_src_28000.ds) AS ds__extract_year
, EXTRACT(quarter FROM visits_source_src_28000.ds) AS ds__extract_quarter
, EXTRACT(month FROM visits_source_src_28000.ds) AS ds__extract_month
, EXTRACT(day FROM visits_source_src_28000.ds) AS ds__extract_day
, IF(EXTRACT(dayofweek FROM visits_source_src_28000.ds) = 1, 7, EXTRACT(dayofweek FROM visits_source_src_28000.ds) - 1) AS ds__extract_dow
, EXTRACT(dayofyear FROM visits_source_src_28000.ds) AS ds__extract_doy
, visits_source_src_28000.referrer_id
, DATE_TRUNC(visits_source_src_28000.ds, day) AS visit__ds__day
, DATE_TRUNC(visits_source_src_28000.ds, isoweek) AS visit__ds__week
, DATE_TRUNC(visits_source_src_28000.ds, month) AS visit__ds__month
, DATE_TRUNC(visits_source_src_28000.ds, quarter) AS visit__ds__quarter
, DATE_TRUNC(visits_source_src_28000.ds, year) AS visit__ds__year
, DATETIME_TRUNC(visits_source_src_28000.ds, day) AS visit__ds__day
, DATETIME_TRUNC(visits_source_src_28000.ds, isoweek) AS visit__ds__week
, DATETIME_TRUNC(visits_source_src_28000.ds, month) AS visit__ds__month
, DATETIME_TRUNC(visits_source_src_28000.ds, quarter) AS visit__ds__quarter
, DATETIME_TRUNC(visits_source_src_28000.ds, year) AS visit__ds__year
, EXTRACT(year FROM visits_source_src_28000.ds) AS visit__ds__extract_year
, EXTRACT(quarter FROM visits_source_src_28000.ds) AS visit__ds__extract_quarter
, EXTRACT(month FROM visits_source_src_28000.ds) AS visit__ds__extract_month
Expand Down Expand Up @@ -360,22 +360,22 @@ FROM (
SELECT
1 AS buys
, buys_source_src_28000.user_id AS buyers
, DATE_TRUNC(buys_source_src_28000.ds, day) AS ds__day
, DATE_TRUNC(buys_source_src_28000.ds, isoweek) AS ds__week
, DATE_TRUNC(buys_source_src_28000.ds, month) AS ds__month
, DATE_TRUNC(buys_source_src_28000.ds, quarter) AS ds__quarter
, DATE_TRUNC(buys_source_src_28000.ds, year) AS ds__year
, DATETIME_TRUNC(buys_source_src_28000.ds, day) AS ds__day
, DATETIME_TRUNC(buys_source_src_28000.ds, isoweek) AS ds__week
, DATETIME_TRUNC(buys_source_src_28000.ds, month) AS ds__month
, DATETIME_TRUNC(buys_source_src_28000.ds, quarter) AS ds__quarter
, DATETIME_TRUNC(buys_source_src_28000.ds, year) AS ds__year
, EXTRACT(year FROM buys_source_src_28000.ds) AS ds__extract_year
, EXTRACT(quarter FROM buys_source_src_28000.ds) AS ds__extract_quarter
, EXTRACT(month FROM buys_source_src_28000.ds) AS ds__extract_month
, EXTRACT(day FROM buys_source_src_28000.ds) AS ds__extract_day
, IF(EXTRACT(dayofweek FROM buys_source_src_28000.ds) = 1, 7, EXTRACT(dayofweek FROM buys_source_src_28000.ds) - 1) AS ds__extract_dow
, EXTRACT(dayofyear FROM buys_source_src_28000.ds) AS ds__extract_doy
, DATE_TRUNC(buys_source_src_28000.ds, day) AS buy__ds__day
, DATE_TRUNC(buys_source_src_28000.ds, isoweek) AS buy__ds__week
, DATE_TRUNC(buys_source_src_28000.ds, month) AS buy__ds__month
, DATE_TRUNC(buys_source_src_28000.ds, quarter) AS buy__ds__quarter
, DATE_TRUNC(buys_source_src_28000.ds, year) AS buy__ds__year
, DATETIME_TRUNC(buys_source_src_28000.ds, day) AS buy__ds__day
, DATETIME_TRUNC(buys_source_src_28000.ds, isoweek) AS buy__ds__week
, DATETIME_TRUNC(buys_source_src_28000.ds, month) AS buy__ds__month
, DATETIME_TRUNC(buys_source_src_28000.ds, quarter) AS buy__ds__quarter
, DATETIME_TRUNC(buys_source_src_28000.ds, year) AS buy__ds__year
, EXTRACT(year FROM buys_source_src_28000.ds) AS buy__ds__extract_year
, EXTRACT(quarter FROM buys_source_src_28000.ds) AS buy__ds__extract_quarter
, EXTRACT(month FROM buys_source_src_28000.ds) AS buy__ds__extract_month
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ FROM (
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['visits', 'visit__referrer_id', 'metric_time__day']
SELECT
DATE_TRUNC(ds, day) AS metric_time__day
DATETIME_TRUNC(ds, day) AS metric_time__day
, referrer_id AS visit__referrer_id
, 1 AS visits
FROM ***************************.fct_visits visits_source_src_28000
Expand Down Expand Up @@ -90,8 +90,8 @@ FROM (
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['visits', 'visit__referrer_id', 'ds__day', 'metric_time__day', 'user']
SELECT
DATE_TRUNC(ds, day) AS ds__day
, DATE_TRUNC(ds, day) AS metric_time__day
DATETIME_TRUNC(ds, day) AS ds__day
, DATETIME_TRUNC(ds, day) AS metric_time__day
, user_id AS user
, referrer_id AS visit__referrer_id
, 1 AS visits
Expand All @@ -102,7 +102,7 @@ FROM (
-- Metric Time Dimension 'ds'
-- Add column with generated UUID
SELECT
DATE_TRUNC(ds, day) AS ds__day
DATETIME_TRUNC(ds, day) AS ds__day
, user_id AS user
, 1 AS buys
, GENERATE_UUID() AS mf_internal_uuid
Expand Down
Loading

0 comments on commit d233a1d

Please sign in to comment.