Skip to content

Commit

Permalink
Update SQL engine snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
tlento committed Sep 3, 2024
1 parent 3d5bdbe commit 228d4bb
Show file tree
Hide file tree
Showing 732 changed files with 5,091 additions and 1,911 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ FROM (
FROM (
-- Time Spine
SELECT
subq_5.ds AS metric_time__day
DATETIME_TRUNC(subq_5.ds, day) AS metric_time__day
FROM ***************************.mf_time_spine subq_5
GROUP BY
metric_time__day
) subq_4
LEFT OUTER JOIN (
-- Aggregate Measures
Expand Down Expand Up @@ -124,8 +126,10 @@ FROM (
FROM (
-- Time Spine
SELECT
subq_18.ds AS metric_time__day
DATETIME_TRUNC(subq_18.ds, day) AS metric_time__day
FROM ***************************.mf_time_spine subq_18
GROUP BY
metric_time__day
) subq_17
LEFT OUTER JOIN (
-- Aggregate Measures
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@ FROM (
FROM (
-- Join to Time Spine Dataset
SELECT
subq_26.ds AS metric_time__day
subq_25.metric_time__day AS metric_time__day
, subq_24.visits AS visits
FROM ***************************.mf_time_spine subq_26
FROM (
-- Time Spine
SELECT
DATETIME_TRUNC(ds, day) AS metric_time__day
FROM ***************************.mf_time_spine subq_26
GROUP BY
metric_time__day
) subq_25
LEFT OUTER JOIN (
-- Aggregate Measures
SELECT
Expand All @@ -32,14 +39,21 @@ FROM (
metric_time__day
) subq_24
ON
subq_26.ds = subq_24.metric_time__day
subq_25.metric_time__day = subq_24.metric_time__day
) subq_27
FULL OUTER JOIN (
-- Join to Time Spine Dataset
SELECT
subq_39.ds AS metric_time__day
subq_38.metric_time__day AS metric_time__day
, subq_37.buys AS buys
FROM ***************************.mf_time_spine subq_39
FROM (
-- Time Spine
SELECT
DATETIME_TRUNC(ds, day) AS metric_time__day
FROM ***************************.mf_time_spine subq_39
GROUP BY
metric_time__day
) subq_38
LEFT OUTER JOIN (
-- Find conversions for user within the range of 7 day
-- Pass Only Elements: ['buys', 'metric_time__day']
Expand Down Expand Up @@ -121,7 +135,7 @@ FROM (
metric_time__day
) subq_37
ON
subq_39.ds = subq_37.metric_time__day
subq_38.metric_time__day = subq_37.metric_time__day
) subq_40
ON
subq_27.metric_time__day = subq_40.metric_time__day
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ FROM (
FROM (
-- Time Spine
SELECT
subq_5.ds AS metric_time__day
DATE_TRUNC('day', subq_5.ds) AS metric_time__day
FROM ***************************.mf_time_spine subq_5
GROUP BY
DATE_TRUNC('day', subq_5.ds)
) subq_4
LEFT OUTER JOIN (
-- Aggregate Measures
Expand Down Expand Up @@ -124,8 +126,10 @@ FROM (
FROM (
-- Time Spine
SELECT
subq_18.ds AS metric_time__day
DATE_TRUNC('day', subq_18.ds) AS metric_time__day
FROM ***************************.mf_time_spine subq_18
GROUP BY
DATE_TRUNC('day', subq_18.ds)
) subq_17
LEFT OUTER JOIN (
-- Aggregate Measures
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@ FROM (
FROM (
-- Join to Time Spine Dataset
SELECT
subq_26.ds AS metric_time__day
subq_25.metric_time__day AS metric_time__day
, subq_24.visits AS visits
FROM ***************************.mf_time_spine subq_26
FROM (
-- Time Spine
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
FROM ***************************.mf_time_spine subq_26
GROUP BY
DATE_TRUNC('day', ds)
) subq_25
LEFT OUTER JOIN (
-- Aggregate Measures
SELECT
Expand All @@ -32,14 +39,21 @@ FROM (
metric_time__day
) subq_24
ON
subq_26.ds = subq_24.metric_time__day
subq_25.metric_time__day = subq_24.metric_time__day
) subq_27
FULL OUTER JOIN (
-- Join to Time Spine Dataset
SELECT
subq_39.ds AS metric_time__day
subq_38.metric_time__day AS metric_time__day
, subq_37.buys AS buys
FROM ***************************.mf_time_spine subq_39
FROM (
-- Time Spine
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
FROM ***************************.mf_time_spine subq_39
GROUP BY
DATE_TRUNC('day', ds)
) subq_38
LEFT OUTER JOIN (
-- Find conversions for user within the range of 7 day
-- Pass Only Elements: ['buys', 'metric_time__day']
Expand Down Expand Up @@ -121,7 +135,7 @@ FROM (
metric_time__day
) subq_37
ON
subq_39.ds = subq_37.metric_time__day
subq_38.metric_time__day = subq_37.metric_time__day
) subq_40
ON
subq_27.metric_time__day = subq_40.metric_time__day
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ FROM (
FROM (
-- Time Spine
SELECT
subq_5.ds AS metric_time__day
DATE_TRUNC('day', subq_5.ds) AS metric_time__day
FROM ***************************.mf_time_spine subq_5
GROUP BY
DATE_TRUNC('day', subq_5.ds)
) subq_4
LEFT OUTER JOIN (
-- Aggregate Measures
Expand Down Expand Up @@ -124,8 +126,10 @@ FROM (
FROM (
-- Time Spine
SELECT
subq_18.ds AS metric_time__day
DATE_TRUNC('day', subq_18.ds) AS metric_time__day
FROM ***************************.mf_time_spine subq_18
GROUP BY
DATE_TRUNC('day', subq_18.ds)
) subq_17
LEFT OUTER JOIN (
-- Aggregate Measures
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@ FROM (
FROM (
-- Join to Time Spine Dataset
SELECT
subq_26.ds AS metric_time__day
subq_25.metric_time__day AS metric_time__day
, subq_24.visits AS visits
FROM ***************************.mf_time_spine subq_26
FROM (
-- Time Spine
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
FROM ***************************.mf_time_spine subq_26
GROUP BY
DATE_TRUNC('day', ds)
) subq_25
LEFT OUTER JOIN (
-- Aggregate Measures
SELECT
Expand All @@ -32,14 +39,21 @@ FROM (
metric_time__day
) subq_24
ON
subq_26.ds = subq_24.metric_time__day
subq_25.metric_time__day = subq_24.metric_time__day
) subq_27
FULL OUTER JOIN (
-- Join to Time Spine Dataset
SELECT
subq_39.ds AS metric_time__day
subq_38.metric_time__day AS metric_time__day
, subq_37.buys AS buys
FROM ***************************.mf_time_spine subq_39
FROM (
-- Time Spine
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
FROM ***************************.mf_time_spine subq_39
GROUP BY
DATE_TRUNC('day', ds)
) subq_38
LEFT OUTER JOIN (
-- Find conversions for user within the range of 7 day
-- Pass Only Elements: ['buys', 'metric_time__day']
Expand Down Expand Up @@ -121,7 +135,7 @@ FROM (
metric_time__day
) subq_37
ON
subq_39.ds = subq_37.metric_time__day
subq_38.metric_time__day = subq_37.metric_time__day
) subq_40
ON
subq_27.metric_time__day = subq_40.metric_time__day
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ FROM (
FROM (
-- Time Spine
SELECT
subq_5.ds AS metric_time__day
DATE_TRUNC('day', subq_5.ds) AS metric_time__day
FROM ***************************.mf_time_spine subq_5
GROUP BY
DATE_TRUNC('day', subq_5.ds)
) subq_4
LEFT OUTER JOIN (
-- Aggregate Measures
Expand Down Expand Up @@ -124,8 +126,10 @@ FROM (
FROM (
-- Time Spine
SELECT
subq_18.ds AS metric_time__day
DATE_TRUNC('day', subq_18.ds) AS metric_time__day
FROM ***************************.mf_time_spine subq_18
GROUP BY
DATE_TRUNC('day', subq_18.ds)
) subq_17
LEFT OUTER JOIN (
-- Aggregate Measures
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@ FROM (
FROM (
-- Join to Time Spine Dataset
SELECT
subq_26.ds AS metric_time__day
subq_25.metric_time__day AS metric_time__day
, subq_24.visits AS visits
FROM ***************************.mf_time_spine subq_26
FROM (
-- Time Spine
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
FROM ***************************.mf_time_spine subq_26
GROUP BY
DATE_TRUNC('day', ds)
) subq_25
LEFT OUTER JOIN (
-- Aggregate Measures
SELECT
Expand All @@ -32,14 +39,21 @@ FROM (
metric_time__day
) subq_24
ON
subq_26.ds = subq_24.metric_time__day
subq_25.metric_time__day = subq_24.metric_time__day
) subq_27
FULL OUTER JOIN (
-- Join to Time Spine Dataset
SELECT
subq_39.ds AS metric_time__day
subq_38.metric_time__day AS metric_time__day
, subq_37.buys AS buys
FROM ***************************.mf_time_spine subq_39
FROM (
-- Time Spine
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
FROM ***************************.mf_time_spine subq_39
GROUP BY
DATE_TRUNC('day', ds)
) subq_38
LEFT OUTER JOIN (
-- Find conversions for user within the range of 7 day
-- Pass Only Elements: ['buys', 'metric_time__day']
Expand Down Expand Up @@ -121,7 +135,7 @@ FROM (
metric_time__day
) subq_37
ON
subq_39.ds = subq_37.metric_time__day
subq_38.metric_time__day = subq_37.metric_time__day
) subq_40
ON
subq_27.metric_time__day = subq_40.metric_time__day
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ FROM (
FROM (
-- Time Spine
SELECT
subq_5.ds AS metric_time__day
DATE_TRUNC('day', subq_5.ds) AS metric_time__day
FROM ***************************.mf_time_spine subq_5
GROUP BY
DATE_TRUNC('day', subq_5.ds)
) subq_4
LEFT OUTER JOIN (
-- Aggregate Measures
Expand Down Expand Up @@ -124,8 +126,10 @@ FROM (
FROM (
-- Time Spine
SELECT
subq_18.ds AS metric_time__day
DATE_TRUNC('day', subq_18.ds) AS metric_time__day
FROM ***************************.mf_time_spine subq_18
GROUP BY
DATE_TRUNC('day', subq_18.ds)
) subq_17
LEFT OUTER JOIN (
-- Aggregate Measures
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@ FROM (
FROM (
-- Join to Time Spine Dataset
SELECT
subq_26.ds AS metric_time__day
subq_25.metric_time__day AS metric_time__day
, subq_24.visits AS visits
FROM ***************************.mf_time_spine subq_26
FROM (
-- Time Spine
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
FROM ***************************.mf_time_spine subq_26
GROUP BY
DATE_TRUNC('day', ds)
) subq_25
LEFT OUTER JOIN (
-- Aggregate Measures
SELECT
Expand All @@ -32,14 +39,21 @@ FROM (
metric_time__day
) subq_24
ON
subq_26.ds = subq_24.metric_time__day
subq_25.metric_time__day = subq_24.metric_time__day
) subq_27
FULL OUTER JOIN (
-- Join to Time Spine Dataset
SELECT
subq_39.ds AS metric_time__day
subq_38.metric_time__day AS metric_time__day
, subq_37.buys AS buys
FROM ***************************.mf_time_spine subq_39
FROM (
-- Time Spine
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
FROM ***************************.mf_time_spine subq_39
GROUP BY
DATE_TRUNC('day', ds)
) subq_38
LEFT OUTER JOIN (
-- Find conversions for user within the range of 7 day
-- Pass Only Elements: ['buys', 'metric_time__day']
Expand Down Expand Up @@ -121,7 +135,7 @@ FROM (
metric_time__day
) subq_37
ON
subq_39.ds = subq_37.metric_time__day
subq_38.metric_time__day = subq_37.metric_time__day
) subq_40
ON
subq_27.metric_time__day = subq_40.metric_time__day
Expand Down
Loading

0 comments on commit 228d4bb

Please sign in to comment.