Skip to content

Commit

Permalink
Update snapshots for other SQL engines
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Dec 9, 2024
1 parent 16c25f3 commit b966ccc
Show file tree
Hide file tree
Showing 240 changed files with 684 additions and 606 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ FROM (
FROM (
-- Join to Time Spine Dataset
SELECT
DATETIME_TRUNC(subq_7.metric_time__day, month) AS booking__ds__month
subq_7.booking__ds__month AS booking__ds__month
, subq_7.metric_time__day AS metric_time__day
, DATETIME_TRUNC(subq_7.metric_time__day, isoweek) AS metric_time__week
, subq_7.metric_time__week AS metric_time__week
, subq_6.bookers AS bookers
FROM (
-- Time Spine
SELECT
subq_8.ds AS metric_time__day
DATETIME_TRUNC(subq_8.ds, month) AS booking__ds__month
, subq_8.ds AS metric_time__day
, DATETIME_TRUNC(subq_8.ds, isoweek) AS metric_time__week
FROM ***************************.mf_time_spine subq_8
) subq_7
LEFT OUTER JOIN (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ FROM (
FROM (
-- Join to Time Spine Dataset
SELECT
DATE_TRUNC('month', subq_7.metric_time__day) AS booking__ds__month
subq_7.booking__ds__month AS booking__ds__month
, subq_7.metric_time__day AS metric_time__day
, DATE_TRUNC('week', subq_7.metric_time__day) AS metric_time__week
, subq_7.metric_time__week AS metric_time__week
, subq_6.bookers AS bookers
FROM (
-- Time Spine
SELECT
subq_8.ds AS metric_time__day
DATE_TRUNC('month', subq_8.ds) AS booking__ds__month
, subq_8.ds AS metric_time__day
, DATE_TRUNC('week', subq_8.ds) AS metric_time__week
FROM ***************************.mf_time_spine subq_8
) subq_7
LEFT OUTER JOIN (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ FROM (
FROM (
-- Join to Time Spine Dataset
SELECT
DATE_TRUNC('month', subq_7.metric_time__day) AS booking__ds__month
subq_7.booking__ds__month AS booking__ds__month
, subq_7.metric_time__day AS metric_time__day
, DATE_TRUNC('week', subq_7.metric_time__day) AS metric_time__week
, subq_7.metric_time__week AS metric_time__week
, subq_6.bookers AS bookers
FROM (
-- Time Spine
SELECT
subq_8.ds AS metric_time__day
DATE_TRUNC('month', subq_8.ds) AS booking__ds__month
, subq_8.ds AS metric_time__day
, DATE_TRUNC('week', subq_8.ds) AS metric_time__week
FROM ***************************.mf_time_spine subq_8
) subq_7
LEFT OUTER JOIN (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ FROM (
FROM (
-- Join to Time Spine Dataset
SELECT
DATE_TRUNC('month', subq_7.metric_time__day) AS booking__ds__month
subq_7.booking__ds__month AS booking__ds__month
, subq_7.metric_time__day AS metric_time__day
, DATE_TRUNC('week', subq_7.metric_time__day) AS metric_time__week
, subq_7.metric_time__week AS metric_time__week
, subq_6.bookers AS bookers
FROM (
-- Time Spine
SELECT
subq_8.ds AS metric_time__day
DATE_TRUNC('month', subq_8.ds) AS booking__ds__month
, subq_8.ds AS metric_time__day
, DATE_TRUNC('week', subq_8.ds) AS metric_time__week
FROM ***************************.mf_time_spine subq_8
) subq_7
LEFT OUTER JOIN (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ FROM (
FROM (
-- Join to Time Spine Dataset
SELECT
DATE_TRUNC('month', subq_7.metric_time__day) AS booking__ds__month
subq_7.booking__ds__month AS booking__ds__month
, subq_7.metric_time__day AS metric_time__day
, DATE_TRUNC('week', subq_7.metric_time__day) AS metric_time__week
, subq_7.metric_time__week AS metric_time__week
, subq_6.bookers AS bookers
FROM (
-- Time Spine
SELECT
subq_8.ds AS metric_time__day
DATE_TRUNC('month', subq_8.ds) AS booking__ds__month
, subq_8.ds AS metric_time__day
, DATE_TRUNC('week', subq_8.ds) AS metric_time__week
FROM ***************************.mf_time_spine subq_8
) subq_7
LEFT OUTER JOIN (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ FROM (
FROM (
-- Join to Time Spine Dataset
SELECT
DATE_TRUNC('month', subq_7.metric_time__day) AS booking__ds__month
subq_7.booking__ds__month AS booking__ds__month
, subq_7.metric_time__day AS metric_time__day
, DATE_TRUNC('week', subq_7.metric_time__day) AS metric_time__week
, subq_7.metric_time__week AS metric_time__week
, subq_6.bookers AS bookers
FROM (
-- Time Spine
SELECT
subq_8.ds AS metric_time__day
DATE_TRUNC('month', subq_8.ds) AS booking__ds__month
, subq_8.ds AS metric_time__day
, DATE_TRUNC('week', subq_8.ds) AS metric_time__week
FROM ***************************.mf_time_spine subq_8
) subq_7
LEFT OUTER JOIN (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ FROM (
-- Join to Time Spine Dataset
-- Join to Custom Granularity Dataset
SELECT
subq_2.booking__ds__day AS booking__ds__day
, subq_1.ds__day AS ds__day
subq_1.ds__day AS ds__day
, subq_1.ds__week AS ds__week
, subq_1.ds__month AS ds__month
, subq_1.ds__quarter AS ds__quarter
Expand Down Expand Up @@ -102,6 +101,7 @@ FROM (
, subq_1.metric_time__extract_day AS metric_time__extract_day
, subq_1.metric_time__extract_dow AS metric_time__extract_dow
, subq_1.metric_time__extract_doy AS metric_time__extract_doy
, subq_2.booking__ds__day AS booking__ds__day
, subq_1.listing AS listing
, subq_1.guest AS guest
, subq_1.host AS host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ FROM (
-- Join to Time Spine Dataset
-- Join to Custom Granularity Dataset
SELECT
subq_2.metric_time__day AS metric_time__day
, subq_1.ds__day AS ds__day
subq_1.ds__day AS ds__day
, subq_1.ds__week AS ds__week
, subq_1.ds__month AS ds__month
, subq_1.ds__quarter AS ds__quarter
Expand Down Expand Up @@ -204,6 +203,7 @@ FROM (
, subq_1.metric_time__extract_day AS metric_time__extract_day
, subq_1.metric_time__extract_dow AS metric_time__extract_dow
, subq_1.metric_time__extract_doy AS metric_time__extract_doy
, subq_2.metric_time__day AS metric_time__day
, subq_1.listing AS listing
, subq_1.guest AS guest
, subq_1.host AS host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ FROM (
-- Join to Time Spine Dataset
-- Join to Custom Granularity Dataset
SELECT
subq_2.booking__ds__day AS booking__ds__day
, subq_1.ds__day AS ds__day
subq_1.ds__day AS ds__day
, subq_1.ds__week AS ds__week
, subq_1.ds__month AS ds__month
, subq_1.ds__quarter AS ds__quarter
Expand Down Expand Up @@ -102,6 +101,7 @@ FROM (
, subq_1.metric_time__extract_day AS metric_time__extract_day
, subq_1.metric_time__extract_dow AS metric_time__extract_dow
, subq_1.metric_time__extract_doy AS metric_time__extract_doy
, subq_2.booking__ds__day AS booking__ds__day
, subq_1.listing AS listing
, subq_1.guest AS guest
, subq_1.host AS host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ FROM (
-- Join to Time Spine Dataset
-- Join to Custom Granularity Dataset
SELECT
subq_2.metric_time__day AS metric_time__day
, subq_1.ds__day AS ds__day
subq_1.ds__day AS ds__day
, subq_1.ds__week AS ds__week
, subq_1.ds__month AS ds__month
, subq_1.ds__quarter AS ds__quarter
Expand Down Expand Up @@ -204,6 +203,7 @@ FROM (
, subq_1.metric_time__extract_day AS metric_time__extract_day
, subq_1.metric_time__extract_dow AS metric_time__extract_dow
, subq_1.metric_time__extract_doy AS metric_time__extract_doy
, subq_2.metric_time__day AS metric_time__day
, subq_1.listing AS listing
, subq_1.guest AS guest
, subq_1.host AS host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ FROM (
-- Join to Time Spine Dataset
-- Join to Custom Granularity Dataset
SELECT
subq_2.booking__ds__day AS booking__ds__day
, subq_1.ds__day AS ds__day
subq_1.ds__day AS ds__day
, subq_1.ds__week AS ds__week
, subq_1.ds__month AS ds__month
, subq_1.ds__quarter AS ds__quarter
Expand Down Expand Up @@ -102,6 +101,7 @@ FROM (
, subq_1.metric_time__extract_day AS metric_time__extract_day
, subq_1.metric_time__extract_dow AS metric_time__extract_dow
, subq_1.metric_time__extract_doy AS metric_time__extract_doy
, subq_2.booking__ds__day AS booking__ds__day
, subq_1.listing AS listing
, subq_1.guest AS guest
, subq_1.host AS host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ FROM (
-- Join to Time Spine Dataset
-- Join to Custom Granularity Dataset
SELECT
subq_2.metric_time__day AS metric_time__day
, subq_1.ds__day AS ds__day
subq_1.ds__day AS ds__day
, subq_1.ds__week AS ds__week
, subq_1.ds__month AS ds__month
, subq_1.ds__quarter AS ds__quarter
Expand Down Expand Up @@ -204,6 +203,7 @@ FROM (
, subq_1.metric_time__extract_day AS metric_time__extract_day
, subq_1.metric_time__extract_dow AS metric_time__extract_dow
, subq_1.metric_time__extract_doy AS metric_time__extract_doy
, subq_2.metric_time__day AS metric_time__day
, subq_1.listing AS listing
, subq_1.guest AS guest
, subq_1.host AS host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ FROM (
-- Join to Time Spine Dataset
-- Join to Custom Granularity Dataset
SELECT
subq_2.booking__ds__day AS booking__ds__day
, subq_1.ds__day AS ds__day
subq_1.ds__day AS ds__day
, subq_1.ds__week AS ds__week
, subq_1.ds__month AS ds__month
, subq_1.ds__quarter AS ds__quarter
Expand Down Expand Up @@ -102,6 +101,7 @@ FROM (
, subq_1.metric_time__extract_day AS metric_time__extract_day
, subq_1.metric_time__extract_dow AS metric_time__extract_dow
, subq_1.metric_time__extract_doy AS metric_time__extract_doy
, subq_2.booking__ds__day AS booking__ds__day
, subq_1.listing AS listing
, subq_1.guest AS guest
, subq_1.host AS host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ FROM (
-- Join to Time Spine Dataset
-- Join to Custom Granularity Dataset
SELECT
subq_2.metric_time__day AS metric_time__day
, subq_1.ds__day AS ds__day
subq_1.ds__day AS ds__day
, subq_1.ds__week AS ds__week
, subq_1.ds__month AS ds__month
, subq_1.ds__quarter AS ds__quarter
Expand Down Expand Up @@ -204,6 +203,7 @@ FROM (
, subq_1.metric_time__extract_day AS metric_time__extract_day
, subq_1.metric_time__extract_dow AS metric_time__extract_dow
, subq_1.metric_time__extract_doy AS metric_time__extract_doy
, subq_2.metric_time__day AS metric_time__day
, subq_1.listing AS listing
, subq_1.guest AS guest
, subq_1.host AS host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ FROM (
-- Join to Time Spine Dataset
-- Join to Custom Granularity Dataset
SELECT
subq_2.booking__ds__day AS booking__ds__day
, subq_1.ds__day AS ds__day
subq_1.ds__day AS ds__day
, subq_1.ds__week AS ds__week
, subq_1.ds__month AS ds__month
, subq_1.ds__quarter AS ds__quarter
Expand Down Expand Up @@ -102,6 +101,7 @@ FROM (
, subq_1.metric_time__extract_day AS metric_time__extract_day
, subq_1.metric_time__extract_dow AS metric_time__extract_dow
, subq_1.metric_time__extract_doy AS metric_time__extract_doy
, subq_2.booking__ds__day AS booking__ds__day
, subq_1.listing AS listing
, subq_1.guest AS guest
, subq_1.host AS host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ FROM (
-- Join to Time Spine Dataset
-- Join to Custom Granularity Dataset
SELECT
subq_2.metric_time__day AS metric_time__day
, subq_1.ds__day AS ds__day
subq_1.ds__day AS ds__day
, subq_1.ds__week AS ds__week
, subq_1.ds__month AS ds__month
, subq_1.ds__quarter AS ds__quarter
Expand Down Expand Up @@ -204,6 +203,7 @@ FROM (
, subq_1.metric_time__extract_day AS metric_time__extract_day
, subq_1.metric_time__extract_dow AS metric_time__extract_dow
, subq_1.metric_time__extract_doy AS metric_time__extract_doy
, subq_2.metric_time__day AS metric_time__day
, subq_1.listing AS listing
, subq_1.guest AS guest
, subq_1.host AS host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ FROM (
-- Join to Time Spine Dataset
-- Join to Custom Granularity Dataset
SELECT
subq_2.booking__ds__day AS booking__ds__day
, subq_1.ds__day AS ds__day
subq_1.ds__day AS ds__day
, subq_1.ds__week AS ds__week
, subq_1.ds__month AS ds__month
, subq_1.ds__quarter AS ds__quarter
Expand Down Expand Up @@ -102,6 +101,7 @@ FROM (
, subq_1.metric_time__extract_day AS metric_time__extract_day
, subq_1.metric_time__extract_dow AS metric_time__extract_dow
, subq_1.metric_time__extract_doy AS metric_time__extract_doy
, subq_2.booking__ds__day AS booking__ds__day
, subq_1.listing AS listing
, subq_1.guest AS guest
, subq_1.host AS host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ FROM (
-- Join to Time Spine Dataset
-- Join to Custom Granularity Dataset
SELECT
subq_2.metric_time__day AS metric_time__day
, subq_1.ds__day AS ds__day
subq_1.ds__day AS ds__day
, subq_1.ds__week AS ds__week
, subq_1.ds__month AS ds__month
, subq_1.ds__quarter AS ds__quarter
Expand Down Expand Up @@ -204,6 +203,7 @@ FROM (
, subq_1.metric_time__extract_day AS metric_time__extract_day
, subq_1.metric_time__extract_dow AS metric_time__extract_dow
, subq_1.metric_time__extract_doy AS metric_time__extract_doy
, subq_2.metric_time__day AS metric_time__day
, subq_1.listing AS listing
, subq_1.guest AS guest
, subq_1.host AS host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ FROM (
FROM (
-- Join to Time Spine Dataset
SELECT
subq_5.metric_time__day AS metric_time__day
, subq_4.ds__day AS ds__day
subq_4.ds__day AS ds__day
, subq_4.ds__week AS ds__week
, subq_4.ds__month AS ds__month
, subq_4.ds__quarter AS ds__quarter
Expand Down Expand Up @@ -202,6 +201,7 @@ FROM (
, subq_4.metric_time__extract_day AS metric_time__extract_day
, subq_4.metric_time__extract_dow AS metric_time__extract_dow
, subq_4.metric_time__extract_doy AS metric_time__extract_doy
, subq_5.metric_time__day AS metric_time__day
, subq_4.listing AS listing
, subq_4.guest AS guest
, subq_4.host AS host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ FROM (
FROM (
-- Join to Time Spine Dataset
SELECT
subq_2.metric_time__month AS metric_time__month
, subq_1.ds__month AS ds__month
subq_1.ds__month AS ds__month
, subq_1.ds__quarter AS ds__quarter
, subq_1.ds__year AS ds__year
, subq_1.ds__extract_year AS ds__extract_year
Expand All @@ -42,6 +41,7 @@ FROM (
, subq_1.metric_time__extract_year AS metric_time__extract_year
, subq_1.metric_time__extract_quarter AS metric_time__extract_quarter
, subq_1.metric_time__extract_month AS metric_time__extract_month
, subq_2.metric_time__month AS metric_time__month
, subq_1.listing AS listing
, subq_1.booking_monthly__listing AS booking_monthly__listing
, subq_1.bookings_monthly AS bookings_monthly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,7 @@ FROM (
FROM (
-- Join to Time Spine Dataset
SELECT
subq_7.metric_time__day AS metric_time__day
, subq_6.ds__day AS ds__day
subq_6.ds__day AS ds__day
, subq_6.ds__week AS ds__week
, subq_6.ds__month AS ds__month
, subq_6.ds__quarter AS ds__quarter
Expand Down Expand Up @@ -322,6 +321,7 @@ FROM (
, subq_6.metric_time__extract_day AS metric_time__extract_day
, subq_6.metric_time__extract_dow AS metric_time__extract_dow
, subq_6.metric_time__extract_doy AS metric_time__extract_doy
, subq_7.metric_time__day AS metric_time__day
, subq_6.listing AS listing
, subq_6.guest AS guest
, subq_6.host AS host
Expand Down
Loading

0 comments on commit b966ccc

Please sign in to comment.