Skip to content

Commit

Permalink
Update SQL engine snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Sep 18, 2024
1 parent 1396be6 commit 470378c
Show file tree
Hide file tree
Showing 36 changed files with 108 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ FROM (
, subq_1.ds__extract_day
, subq_1.ds__extract_dow
, subq_1.ds__extract_doy
, subq_1.ds__martian_day
, subq_1.ds__day AS metric_time__day
, subq_1.ds__week AS metric_time__week
, subq_1.ds__month AS metric_time__month
Expand All @@ -215,6 +216,7 @@ FROM (
, subq_1.ds__extract_day AS metric_time__extract_day
, subq_1.ds__extract_dow AS metric_time__extract_dow
, subq_1.ds__extract_doy AS metric_time__extract_doy
, subq_1.ds__martian_day AS metric_time__martian_day
FROM (
-- Time Spine
SELECT
Expand All @@ -229,6 +231,7 @@ FROM (
, EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day
, IF(EXTRACT(dayofweek FROM time_spine_src_28006.ds) = 1, 7, EXTRACT(dayofweek FROM time_spine_src_28006.ds) - 1) AS ds__extract_dow
, EXTRACT(dayofyear FROM time_spine_src_28006.ds) AS ds__extract_doy
, time_spine_src_28006.martian_day AS ds__martian_day
FROM ***************************.mf_time_spine time_spine_src_28006
) subq_1
) subq_2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ FROM (
, subq_0.ds__extract_day
, subq_0.ds__extract_dow
, subq_0.ds__extract_doy
, subq_0.ds__martian_day
, subq_0.ds__day AS metric_time__day
, subq_0.ds__week AS metric_time__week
, subq_0.ds__month AS metric_time__month
Expand All @@ -26,6 +27,7 @@ FROM (
, subq_0.ds__extract_day AS metric_time__extract_day
, subq_0.ds__extract_dow AS metric_time__extract_dow
, subq_0.ds__extract_doy AS metric_time__extract_doy
, subq_0.ds__martian_day AS metric_time__martian_day
FROM (
-- Time Spine
SELECT
Expand All @@ -40,6 +42,7 @@ FROM (
, EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day
, IF(EXTRACT(dayofweek FROM time_spine_src_28006.ds) = 1, 7, EXTRACT(dayofweek FROM time_spine_src_28006.ds) - 1) AS ds__extract_dow
, EXTRACT(dayofyear FROM time_spine_src_28006.ds) AS ds__extract_doy
, time_spine_src_28006.martian_day AS ds__martian_day
FROM ***************************.mf_time_spine time_spine_src_28006
) subq_0
) subq_1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ FROM (
, subq_0.ds__extract_day
, subq_0.ds__extract_dow
, subq_0.ds__extract_doy
, subq_0.ds__martian_day
, subq_0.ds__day AS metric_time__day
, subq_0.ds__week AS metric_time__week
, subq_0.ds__month AS metric_time__month
Expand All @@ -26,6 +27,7 @@ FROM (
, subq_0.ds__extract_day AS metric_time__extract_day
, subq_0.ds__extract_dow AS metric_time__extract_dow
, subq_0.ds__extract_doy AS metric_time__extract_doy
, subq_0.ds__martian_day AS metric_time__martian_day
FROM (
-- Time Spine
SELECT
Expand All @@ -40,6 +42,7 @@ FROM (
, EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day
, IF(EXTRACT(dayofweek FROM time_spine_src_28006.ds) = 1, 7, EXTRACT(dayofweek FROM time_spine_src_28006.ds) - 1) AS ds__extract_dow
, EXTRACT(dayofyear FROM time_spine_src_28006.ds) AS ds__extract_doy
, time_spine_src_28006.martian_day AS ds__martian_day
FROM ***************************.mf_time_spine time_spine_src_28006
) subq_0
) subq_1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ FROM (
, subq_1.ds__extract_day
, subq_1.ds__extract_dow
, subq_1.ds__extract_doy
, subq_1.ds__martian_day
, subq_1.ds__day AS metric_time__day
, subq_1.ds__week AS metric_time__week
, subq_1.ds__month AS metric_time__month
Expand All @@ -154,6 +155,7 @@ FROM (
, subq_1.ds__extract_day AS metric_time__extract_day
, subq_1.ds__extract_dow AS metric_time__extract_dow
, subq_1.ds__extract_doy AS metric_time__extract_doy
, subq_1.ds__martian_day AS metric_time__martian_day
FROM (
-- Time Spine
SELECT
Expand All @@ -168,6 +170,7 @@ FROM (
, EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day
, IF(EXTRACT(dayofweek FROM time_spine_src_28006.ds) = 1, 7, EXTRACT(dayofweek FROM time_spine_src_28006.ds) - 1) AS ds__extract_dow
, EXTRACT(dayofyear FROM time_spine_src_28006.ds) AS ds__extract_doy
, time_spine_src_28006.martian_day AS ds__martian_day
FROM ***************************.mf_time_spine time_spine_src_28006
) subq_1
) subq_2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ FROM (
, subq_1.ds__extract_day
, subq_1.ds__extract_dow
, subq_1.ds__extract_doy
, subq_1.ds__martian_day
, subq_1.ds__day AS metric_time__day
, subq_1.ds__week AS metric_time__week
, subq_1.ds__month AS metric_time__month
Expand All @@ -215,6 +216,7 @@ FROM (
, subq_1.ds__extract_day AS metric_time__extract_day
, subq_1.ds__extract_dow AS metric_time__extract_dow
, subq_1.ds__extract_doy AS metric_time__extract_doy
, subq_1.ds__martian_day AS metric_time__martian_day
FROM (
-- Time Spine
SELECT
Expand All @@ -229,6 +231,7 @@ FROM (
, EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day
, EXTRACT(DAYOFWEEK_ISO FROM time_spine_src_28006.ds) AS ds__extract_dow
, EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy
, time_spine_src_28006.martian_day AS ds__martian_day
FROM ***************************.mf_time_spine time_spine_src_28006
) subq_1
) subq_2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ FROM (
, subq_0.ds__extract_day
, subq_0.ds__extract_dow
, subq_0.ds__extract_doy
, subq_0.ds__martian_day
, subq_0.ds__day AS metric_time__day
, subq_0.ds__week AS metric_time__week
, subq_0.ds__month AS metric_time__month
Expand All @@ -26,6 +27,7 @@ FROM (
, subq_0.ds__extract_day AS metric_time__extract_day
, subq_0.ds__extract_dow AS metric_time__extract_dow
, subq_0.ds__extract_doy AS metric_time__extract_doy
, subq_0.ds__martian_day AS metric_time__martian_day
FROM (
-- Time Spine
SELECT
Expand All @@ -40,6 +42,7 @@ FROM (
, EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day
, EXTRACT(DAYOFWEEK_ISO FROM time_spine_src_28006.ds) AS ds__extract_dow
, EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy
, time_spine_src_28006.martian_day AS ds__martian_day
FROM ***************************.mf_time_spine time_spine_src_28006
) subq_0
) subq_1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ FROM (
, subq_0.ds__extract_day
, subq_0.ds__extract_dow
, subq_0.ds__extract_doy
, subq_0.ds__martian_day
, subq_0.ds__day AS metric_time__day
, subq_0.ds__week AS metric_time__week
, subq_0.ds__month AS metric_time__month
Expand All @@ -26,6 +27,7 @@ FROM (
, subq_0.ds__extract_day AS metric_time__extract_day
, subq_0.ds__extract_dow AS metric_time__extract_dow
, subq_0.ds__extract_doy AS metric_time__extract_doy
, subq_0.ds__martian_day AS metric_time__martian_day
FROM (
-- Time Spine
SELECT
Expand All @@ -40,6 +42,7 @@ FROM (
, EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day
, EXTRACT(DAYOFWEEK_ISO FROM time_spine_src_28006.ds) AS ds__extract_dow
, EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy
, time_spine_src_28006.martian_day AS ds__martian_day
FROM ***************************.mf_time_spine time_spine_src_28006
) subq_0
) subq_1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ FROM (
, subq_1.ds__extract_day
, subq_1.ds__extract_dow
, subq_1.ds__extract_doy
, subq_1.ds__martian_day
, subq_1.ds__day AS metric_time__day
, subq_1.ds__week AS metric_time__week
, subq_1.ds__month AS metric_time__month
Expand All @@ -154,6 +155,7 @@ FROM (
, subq_1.ds__extract_day AS metric_time__extract_day
, subq_1.ds__extract_dow AS metric_time__extract_dow
, subq_1.ds__extract_doy AS metric_time__extract_doy
, subq_1.ds__martian_day AS metric_time__martian_day
FROM (
-- Time Spine
SELECT
Expand All @@ -168,6 +170,7 @@ FROM (
, EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day
, EXTRACT(DAYOFWEEK_ISO FROM time_spine_src_28006.ds) AS ds__extract_dow
, EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy
, time_spine_src_28006.martian_day AS ds__martian_day
FROM ***************************.mf_time_spine time_spine_src_28006
) subq_1
) subq_2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ FROM (
, subq_1.ds__extract_day
, subq_1.ds__extract_dow
, subq_1.ds__extract_doy
, subq_1.ds__martian_day
, subq_1.ds__day AS metric_time__day
, subq_1.ds__week AS metric_time__week
, subq_1.ds__month AS metric_time__month
Expand All @@ -215,6 +216,7 @@ FROM (
, subq_1.ds__extract_day AS metric_time__extract_day
, subq_1.ds__extract_dow AS metric_time__extract_dow
, subq_1.ds__extract_doy AS metric_time__extract_doy
, subq_1.ds__martian_day AS metric_time__martian_day
FROM (
-- Time Spine
SELECT
Expand All @@ -229,6 +231,7 @@ FROM (
, EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day
, EXTRACT(isodow FROM time_spine_src_28006.ds) AS ds__extract_dow
, EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy
, time_spine_src_28006.martian_day AS ds__martian_day
FROM ***************************.mf_time_spine time_spine_src_28006
) subq_1
) subq_2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ FROM (
, subq_0.ds__extract_day
, subq_0.ds__extract_dow
, subq_0.ds__extract_doy
, subq_0.ds__martian_day
, subq_0.ds__day AS metric_time__day
, subq_0.ds__week AS metric_time__week
, subq_0.ds__month AS metric_time__month
Expand All @@ -26,6 +27,7 @@ FROM (
, subq_0.ds__extract_day AS metric_time__extract_day
, subq_0.ds__extract_dow AS metric_time__extract_dow
, subq_0.ds__extract_doy AS metric_time__extract_doy
, subq_0.ds__martian_day AS metric_time__martian_day
FROM (
-- Time Spine
SELECT
Expand All @@ -40,6 +42,7 @@ FROM (
, EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day
, EXTRACT(isodow FROM time_spine_src_28006.ds) AS ds__extract_dow
, EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy
, time_spine_src_28006.martian_day AS ds__martian_day
FROM ***************************.mf_time_spine time_spine_src_28006
) subq_0
) subq_1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ FROM (
, subq_0.ds__extract_day
, subq_0.ds__extract_dow
, subq_0.ds__extract_doy
, subq_0.ds__martian_day
, subq_0.ds__day AS metric_time__day
, subq_0.ds__week AS metric_time__week
, subq_0.ds__month AS metric_time__month
Expand All @@ -26,6 +27,7 @@ FROM (
, subq_0.ds__extract_day AS metric_time__extract_day
, subq_0.ds__extract_dow AS metric_time__extract_dow
, subq_0.ds__extract_doy AS metric_time__extract_doy
, subq_0.ds__martian_day AS metric_time__martian_day
FROM (
-- Time Spine
SELECT
Expand All @@ -40,6 +42,7 @@ FROM (
, EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day
, EXTRACT(isodow FROM time_spine_src_28006.ds) AS ds__extract_dow
, EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy
, time_spine_src_28006.martian_day AS ds__martian_day
FROM ***************************.mf_time_spine time_spine_src_28006
) subq_0
) subq_1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ FROM (
, subq_1.ds__extract_day
, subq_1.ds__extract_dow
, subq_1.ds__extract_doy
, subq_1.ds__martian_day
, subq_1.ds__day AS metric_time__day
, subq_1.ds__week AS metric_time__week
, subq_1.ds__month AS metric_time__month
Expand All @@ -154,6 +155,7 @@ FROM (
, subq_1.ds__extract_day AS metric_time__extract_day
, subq_1.ds__extract_dow AS metric_time__extract_dow
, subq_1.ds__extract_doy AS metric_time__extract_doy
, subq_1.ds__martian_day AS metric_time__martian_day
FROM (
-- Time Spine
SELECT
Expand All @@ -168,6 +170,7 @@ FROM (
, EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day
, EXTRACT(isodow FROM time_spine_src_28006.ds) AS ds__extract_dow
, EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy
, time_spine_src_28006.martian_day AS ds__martian_day
FROM ***************************.mf_time_spine time_spine_src_28006
) subq_1
) subq_2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ FROM (
, subq_1.ds__extract_day
, subq_1.ds__extract_dow
, subq_1.ds__extract_doy
, subq_1.ds__martian_day
, subq_1.ds__day AS metric_time__day
, subq_1.ds__week AS metric_time__week
, subq_1.ds__month AS metric_time__month
Expand All @@ -215,6 +216,7 @@ FROM (
, subq_1.ds__extract_day AS metric_time__extract_day
, subq_1.ds__extract_dow AS metric_time__extract_dow
, subq_1.ds__extract_doy AS metric_time__extract_doy
, subq_1.ds__martian_day AS metric_time__martian_day
FROM (
-- Time Spine
SELECT
Expand All @@ -229,6 +231,7 @@ FROM (
, EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day
, CASE WHEN EXTRACT(dow FROM time_spine_src_28006.ds) = 0 THEN EXTRACT(dow FROM time_spine_src_28006.ds) + 7 ELSE EXTRACT(dow FROM time_spine_src_28006.ds) END AS ds__extract_dow
, EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy
, time_spine_src_28006.martian_day AS ds__martian_day
FROM ***************************.mf_time_spine time_spine_src_28006
) subq_1
) subq_2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ FROM (
, subq_0.ds__extract_day
, subq_0.ds__extract_dow
, subq_0.ds__extract_doy
, subq_0.ds__martian_day
, subq_0.ds__day AS metric_time__day
, subq_0.ds__week AS metric_time__week
, subq_0.ds__month AS metric_time__month
Expand All @@ -26,6 +27,7 @@ FROM (
, subq_0.ds__extract_day AS metric_time__extract_day
, subq_0.ds__extract_dow AS metric_time__extract_dow
, subq_0.ds__extract_doy AS metric_time__extract_doy
, subq_0.ds__martian_day AS metric_time__martian_day
FROM (
-- Time Spine
SELECT
Expand All @@ -40,6 +42,7 @@ FROM (
, EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day
, CASE WHEN EXTRACT(dow FROM time_spine_src_28006.ds) = 0 THEN EXTRACT(dow FROM time_spine_src_28006.ds) + 7 ELSE EXTRACT(dow FROM time_spine_src_28006.ds) END AS ds__extract_dow
, EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy
, time_spine_src_28006.martian_day AS ds__martian_day
FROM ***************************.mf_time_spine time_spine_src_28006
) subq_0
) subq_1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ FROM (
, subq_0.ds__extract_day
, subq_0.ds__extract_dow
, subq_0.ds__extract_doy
, subq_0.ds__martian_day
, subq_0.ds__day AS metric_time__day
, subq_0.ds__week AS metric_time__week
, subq_0.ds__month AS metric_time__month
Expand All @@ -26,6 +27,7 @@ FROM (
, subq_0.ds__extract_day AS metric_time__extract_day
, subq_0.ds__extract_dow AS metric_time__extract_dow
, subq_0.ds__extract_doy AS metric_time__extract_doy
, subq_0.ds__martian_day AS metric_time__martian_day
FROM (
-- Time Spine
SELECT
Expand All @@ -40,6 +42,7 @@ FROM (
, EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day
, CASE WHEN EXTRACT(dow FROM time_spine_src_28006.ds) = 0 THEN EXTRACT(dow FROM time_spine_src_28006.ds) + 7 ELSE EXTRACT(dow FROM time_spine_src_28006.ds) END AS ds__extract_dow
, EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy
, time_spine_src_28006.martian_day AS ds__martian_day
FROM ***************************.mf_time_spine time_spine_src_28006
) subq_0
) subq_1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ FROM (
, subq_1.ds__extract_day
, subq_1.ds__extract_dow
, subq_1.ds__extract_doy
, subq_1.ds__martian_day
, subq_1.ds__day AS metric_time__day
, subq_1.ds__week AS metric_time__week
, subq_1.ds__month AS metric_time__month
Expand All @@ -154,6 +155,7 @@ FROM (
, subq_1.ds__extract_day AS metric_time__extract_day
, subq_1.ds__extract_dow AS metric_time__extract_dow
, subq_1.ds__extract_doy AS metric_time__extract_doy
, subq_1.ds__martian_day AS metric_time__martian_day
FROM (
-- Time Spine
SELECT
Expand All @@ -168,6 +170,7 @@ FROM (
, EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day
, CASE WHEN EXTRACT(dow FROM time_spine_src_28006.ds) = 0 THEN EXTRACT(dow FROM time_spine_src_28006.ds) + 7 ELSE EXTRACT(dow FROM time_spine_src_28006.ds) END AS ds__extract_dow
, EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy
, time_spine_src_28006.martian_day AS ds__martian_day
FROM ***************************.mf_time_spine time_spine_src_28006
) subq_1
) subq_2
Expand Down
Loading

0 comments on commit 470378c

Please sign in to comment.