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 Nov 3, 2023
1 parent 7aa4682 commit a14e415
Show file tree
Hide file tree
Showing 110 changed files with 780 additions and 1,660 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ FROM (
-- Combine Metrics
SELECT
COALESCE(subq_4.metric_time__day, subq_9.metric_time__day) AS metric_time__day
, subq_4.ref_bookings AS ref_bookings
, subq_9.bookings AS bookings
, MAX(subq_4.ref_bookings) AS ref_bookings
, MAX(subq_9.bookings) AS bookings
FROM (
-- Compute Metrics via Expressions
SELECT
Expand Down Expand Up @@ -224,7 +224,7 @@ FROM (
metric_time__day
) subq_3
) subq_4
INNER JOIN (
FULL OUTER JOIN (
-- Compute Metrics via Expressions
SELECT
subq_8.metric_time__day
Expand Down Expand Up @@ -441,13 +441,7 @@ FROM (
) subq_8
) subq_9
ON
(
subq_4.metric_time__day = subq_9.metric_time__day
) OR (
(
subq_4.metric_time__day IS NULL
) AND (
subq_9.metric_time__day IS NULL
)
)
subq_4.metric_time__day = subq_9.metric_time__day
GROUP BY
metric_time__day
) subq_10
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ FROM (
-- Combine Metrics
SELECT
COALESCE(subq_15.metric_time__day, subq_20.metric_time__day) AS metric_time__day
, subq_15.ref_bookings AS ref_bookings
, subq_20.bookings AS bookings
, MAX(subq_15.ref_bookings) AS ref_bookings
, MAX(subq_20.bookings) AS bookings
FROM (
-- Aggregate Measures
-- Compute Metrics via Expressions
Expand All @@ -27,7 +27,7 @@ FROM (
GROUP BY
metric_time__day
) subq_15
INNER JOIN (
FULL OUTER JOIN (
-- Aggregate Measures
-- Compute Metrics via Expressions
SELECT
Expand All @@ -47,13 +47,7 @@ FROM (
metric_time__day
) subq_20
ON
(
subq_15.metric_time__day = subq_20.metric_time__day
) OR (
(
subq_15.metric_time__day IS NULL
) AND (
subq_20.metric_time__day IS NULL
)
)
subq_15.metric_time__day = subq_20.metric_time__day
GROUP BY
metric_time__day
) subq_21
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ FROM (
-- Combine Metrics
SELECT
COALESCE(subq_4.metric_time__day, subq_12.metric_time__day) AS metric_time__day
, subq_4.bookings AS bookings
, subq_12.bookings_at_start_of_month AS bookings_at_start_of_month
, MAX(subq_4.bookings) AS bookings
, MAX(subq_12.bookings_at_start_of_month) AS bookings_at_start_of_month
FROM (
-- Compute Metrics via Expressions
SELECT
Expand Down Expand Up @@ -224,7 +224,7 @@ FROM (
metric_time__day
) subq_3
) subq_4
INNER JOIN (
FULL OUTER JOIN (
-- Compute Metrics via Expressions
SELECT
subq_11.metric_time__day
Expand Down Expand Up @@ -541,13 +541,7 @@ FROM (
) subq_11
) subq_12
ON
(
subq_4.metric_time__day = subq_12.metric_time__day
) OR (
(
subq_4.metric_time__day IS NULL
) AND (
subq_12.metric_time__day IS NULL
)
)
subq_4.metric_time__day = subq_12.metric_time__day
GROUP BY
metric_time__day
) subq_13
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ FROM (
-- Combine Metrics
SELECT
COALESCE(subq_18.metric_time__day, subq_26.metric_time__day) AS metric_time__day
, subq_18.bookings AS bookings
, subq_26.bookings_at_start_of_month AS bookings_at_start_of_month
, MAX(subq_18.bookings) AS bookings
, MAX(subq_26.bookings_at_start_of_month) AS bookings_at_start_of_month
FROM (
-- Aggregate Measures
-- Compute Metrics via Expressions
Expand All @@ -27,7 +27,7 @@ FROM (
GROUP BY
metric_time__day
) subq_18
INNER JOIN (
FULL OUTER JOIN (
-- Join to Time Spine Dataset
-- Pass Only Elements:
-- ['bookings', 'metric_time__day']
Expand All @@ -51,13 +51,7 @@ FROM (
metric_time__day
) subq_26
ON
(
subq_18.metric_time__day = subq_26.metric_time__day
) OR (
(
subq_18.metric_time__day IS NULL
) AND (
subq_26.metric_time__day IS NULL
)
)
subq_18.metric_time__day = subq_26.metric_time__day
GROUP BY
metric_time__day
) subq_27
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ FROM (
-- Combine Metrics
SELECT
COALESCE(subq_4.metric_time__week, subq_12.metric_time__week) AS metric_time__week
, subq_4.bookings AS bookings
, subq_12.bookings_at_start_of_month AS bookings_at_start_of_month
, MAX(subq_4.bookings) AS bookings
, MAX(subq_12.bookings_at_start_of_month) AS bookings_at_start_of_month
FROM (
-- Compute Metrics via Expressions
SELECT
Expand Down Expand Up @@ -224,7 +224,7 @@ FROM (
metric_time__week
) subq_3
) subq_4
INNER JOIN (
FULL OUTER JOIN (
-- Compute Metrics via Expressions
SELECT
subq_11.metric_time__week
Expand Down Expand Up @@ -542,13 +542,7 @@ FROM (
) subq_11
) subq_12
ON
(
subq_4.metric_time__week = subq_12.metric_time__week
) OR (
(
subq_4.metric_time__week IS NULL
) AND (
subq_12.metric_time__week IS NULL
)
)
subq_4.metric_time__week = subq_12.metric_time__week
GROUP BY
metric_time__week
) subq_13
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ FROM (
-- Combine Metrics
SELECT
COALESCE(subq_18.metric_time__week, subq_26.metric_time__week) AS metric_time__week
, subq_18.bookings AS bookings
, subq_26.bookings_at_start_of_month AS bookings_at_start_of_month
, MAX(subq_18.bookings) AS bookings
, MAX(subq_26.bookings_at_start_of_month) AS bookings_at_start_of_month
FROM (
-- Aggregate Measures
-- Compute Metrics via Expressions
Expand All @@ -27,7 +27,7 @@ FROM (
GROUP BY
metric_time__week
) subq_18
INNER JOIN (
FULL OUTER JOIN (
-- Join to Time Spine Dataset
-- Pass Only Elements:
-- ['bookings', 'metric_time__week']
Expand All @@ -52,13 +52,7 @@ FROM (
metric_time__week
) subq_26
ON
(
subq_18.metric_time__week = subq_26.metric_time__week
) OR (
(
subq_18.metric_time__week IS NULL
) AND (
subq_26.metric_time__week IS NULL
)
)
subq_18.metric_time__week = subq_26.metric_time__week
GROUP BY
metric_time__week
) subq_27
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ FROM (
-- Combine Metrics
SELECT
COALESCE(subq_4.metric_time__day, subq_12.metric_time__day) AS metric_time__day
, subq_4.bookings AS bookings
, subq_12.bookings_2_weeks_ago AS bookings_2_weeks_ago
, MAX(subq_4.bookings) AS bookings
, MAX(subq_12.bookings_2_weeks_ago) AS bookings_2_weeks_ago
FROM (
-- Compute Metrics via Expressions
SELECT
Expand Down Expand Up @@ -224,7 +224,7 @@ FROM (
metric_time__day
) subq_3
) subq_4
INNER JOIN (
FULL OUTER JOIN (
-- Compute Metrics via Expressions
SELECT
subq_11.metric_time__day
Expand Down Expand Up @@ -541,13 +541,7 @@ FROM (
) subq_11
) subq_12
ON
(
subq_4.metric_time__day = subq_12.metric_time__day
) OR (
(
subq_4.metric_time__day IS NULL
) AND (
subq_12.metric_time__day IS NULL
)
)
subq_4.metric_time__day = subq_12.metric_time__day
GROUP BY
metric_time__day
) subq_13
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ FROM (
-- Combine Metrics
SELECT
COALESCE(subq_18.metric_time__day, subq_26.metric_time__day) AS metric_time__day
, subq_18.bookings AS bookings
, subq_26.bookings_2_weeks_ago AS bookings_2_weeks_ago
, MAX(subq_18.bookings) AS bookings
, MAX(subq_26.bookings_2_weeks_ago) AS bookings_2_weeks_ago
FROM (
-- Aggregate Measures
-- Compute Metrics via Expressions
Expand All @@ -27,7 +27,7 @@ FROM (
GROUP BY
metric_time__day
) subq_18
INNER JOIN (
FULL OUTER JOIN (
-- Join to Time Spine Dataset
-- Pass Only Elements:
-- ['bookings', 'metric_time__day']
Expand All @@ -51,13 +51,7 @@ FROM (
metric_time__day
) subq_26
ON
(
subq_18.metric_time__day = subq_26.metric_time__day
) OR (
(
subq_18.metric_time__day IS NULL
) AND (
subq_26.metric_time__day IS NULL
)
)
subq_18.metric_time__day = subq_26.metric_time__day
GROUP BY
metric_time__day
) subq_27
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ FROM (
-- Combine Metrics
SELECT
COALESCE(subq_4.metric_time__quarter, subq_12.metric_time__quarter) AS metric_time__quarter
, subq_4.bookings AS bookings
, subq_12.bookings_2_weeks_ago AS bookings_2_weeks_ago
, MAX(subq_4.bookings) AS bookings
, MAX(subq_12.bookings_2_weeks_ago) AS bookings_2_weeks_ago
FROM (
-- Compute Metrics via Expressions
SELECT
Expand Down Expand Up @@ -224,7 +224,7 @@ FROM (
metric_time__quarter
) subq_3
) subq_4
INNER JOIN (
FULL OUTER JOIN (
-- Compute Metrics via Expressions
SELECT
subq_11.metric_time__quarter
Expand Down Expand Up @@ -541,13 +541,7 @@ FROM (
) subq_11
) subq_12
ON
(
subq_4.metric_time__quarter = subq_12.metric_time__quarter
) OR (
(
subq_4.metric_time__quarter IS NULL
) AND (
subq_12.metric_time__quarter IS NULL
)
)
subq_4.metric_time__quarter = subq_12.metric_time__quarter
GROUP BY
metric_time__quarter
) subq_13
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ FROM (
-- Combine Metrics
SELECT
COALESCE(subq_18.metric_time__quarter, subq_26.metric_time__quarter) AS metric_time__quarter
, subq_18.bookings AS bookings
, subq_26.bookings_2_weeks_ago AS bookings_2_weeks_ago
, MAX(subq_18.bookings) AS bookings
, MAX(subq_26.bookings_2_weeks_ago) AS bookings_2_weeks_ago
FROM (
-- Aggregate Measures
-- Compute Metrics via Expressions
Expand All @@ -27,7 +27,7 @@ FROM (
GROUP BY
metric_time__quarter
) subq_18
INNER JOIN (
FULL OUTER JOIN (
-- Join to Time Spine Dataset
-- Pass Only Elements:
-- ['bookings', 'metric_time__quarter']
Expand All @@ -51,13 +51,7 @@ FROM (
metric_time__quarter
) subq_26
ON
(
subq_18.metric_time__quarter = subq_26.metric_time__quarter
) OR (
(
subq_18.metric_time__quarter IS NULL
) AND (
subq_26.metric_time__quarter IS NULL
)
)
subq_18.metric_time__quarter = subq_26.metric_time__quarter
GROUP BY
metric_time__quarter
) subq_27
Loading

0 comments on commit a14e415

Please sign in to comment.