Skip to content

Commit

Permalink
Update new snapshots added after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Nov 6, 2024
1 parent a2a01c0 commit 683bc53
Show file tree
Hide file tree
Showing 14 changed files with 1,579 additions and 1,628 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,38 +1,37 @@
-- Join to Time Spine Dataset
-- Compute Metrics via Expressions
SELECT
subq_15.metric_time__martian_day AS metric_time__martian_day
, subq_14.bookings AS bookings_join_to_time_spine
subq_13.metric_time__martian_day AS metric_time__martian_day
, subq_12.bookings AS bookings_join_to_time_spine
FROM (
-- Time Spine
SELECT
martian_day AS metric_time__martian_day
FROM ***************************.mf_time_spine subq_16
FROM ***************************.mf_time_spine subq_14
GROUP BY
metric_time__martian_day
) subq_15
) subq_13
LEFT OUTER JOIN (
-- Pass Only Elements: ['bookings', 'metric_time__day']
-- Metric Time Dimension 'ds'
-- Join to Custom Granularity Dataset
-- Pass Only Elements: ['bookings', 'metric_time__martian_day']
-- Aggregate Measures
SELECT
subq_11.martian_day AS metric_time__martian_day
, SUM(subq_10.bookings) AS bookings
subq_9.martian_day AS metric_time__martian_day
, SUM(subq_8.bookings) AS bookings
FROM (
-- Read Elements From Semantic Model 'bookings_source'
-- Metric Time Dimension 'ds'
SELECT
DATETIME_TRUNC(ds, day) AS metric_time__day
, 1 AS bookings
1 AS bookings
, DATETIME_TRUNC(ds, day) AS ds__day
FROM ***************************.fct_bookings bookings_source_src_28000
) subq_10
) subq_8
LEFT OUTER JOIN
***************************.mf_time_spine subq_11
***************************.mf_time_spine subq_9
ON
subq_10.metric_time__day = subq_11.ds
subq_8.ds__day = subq_9.ds
GROUP BY
metric_time__martian_day
) subq_14
) subq_12
ON
subq_15.metric_time__martian_day = subq_14.metric_time__martian_day
subq_13.metric_time__martian_day = subq_12.metric_time__martian_day

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,38 +1,37 @@
-- Join to Time Spine Dataset
-- Compute Metrics via Expressions
SELECT
subq_15.metric_time__martian_day AS metric_time__martian_day
, subq_14.bookings AS bookings_join_to_time_spine
subq_13.metric_time__martian_day AS metric_time__martian_day
, subq_12.bookings AS bookings_join_to_time_spine
FROM (
-- Time Spine
SELECT
martian_day AS metric_time__martian_day
FROM ***************************.mf_time_spine subq_16
FROM ***************************.mf_time_spine subq_14
GROUP BY
martian_day
) subq_15
) subq_13
LEFT OUTER JOIN (
-- Pass Only Elements: ['bookings', 'metric_time__day']
-- Metric Time Dimension 'ds'
-- Join to Custom Granularity Dataset
-- Pass Only Elements: ['bookings', 'metric_time__martian_day']
-- Aggregate Measures
SELECT
subq_11.martian_day AS metric_time__martian_day
, SUM(subq_10.bookings) AS bookings
subq_9.martian_day AS metric_time__martian_day
, SUM(subq_8.bookings) AS bookings
FROM (
-- Read Elements From Semantic Model 'bookings_source'
-- Metric Time Dimension 'ds'
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
, 1 AS bookings
1 AS bookings
, DATE_TRUNC('day', ds) AS ds__day
FROM ***************************.fct_bookings bookings_source_src_28000
) subq_10
) subq_8
LEFT OUTER JOIN
***************************.mf_time_spine subq_11
***************************.mf_time_spine subq_9
ON
subq_10.metric_time__day = subq_11.ds
subq_8.ds__day = subq_9.ds
GROUP BY
subq_11.martian_day
) subq_14
subq_9.martian_day
) subq_12
ON
subq_15.metric_time__martian_day = subq_14.metric_time__martian_day
subq_13.metric_time__martian_day = subq_12.metric_time__martian_day

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,38 +1,37 @@
-- Join to Time Spine Dataset
-- Compute Metrics via Expressions
SELECT
subq_15.metric_time__martian_day AS metric_time__martian_day
, subq_14.bookings AS bookings_join_to_time_spine
subq_13.metric_time__martian_day AS metric_time__martian_day
, subq_12.bookings AS bookings_join_to_time_spine
FROM (
-- Time Spine
SELECT
martian_day AS metric_time__martian_day
FROM ***************************.mf_time_spine subq_16
FROM ***************************.mf_time_spine subq_14
GROUP BY
martian_day
) subq_15
) subq_13
LEFT OUTER JOIN (
-- Pass Only Elements: ['bookings', 'metric_time__day']
-- Metric Time Dimension 'ds'
-- Join to Custom Granularity Dataset
-- Pass Only Elements: ['bookings', 'metric_time__martian_day']
-- Aggregate Measures
SELECT
subq_11.martian_day AS metric_time__martian_day
, SUM(subq_10.bookings) AS bookings
subq_9.martian_day AS metric_time__martian_day
, SUM(subq_8.bookings) AS bookings
FROM (
-- Read Elements From Semantic Model 'bookings_source'
-- Metric Time Dimension 'ds'
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
, 1 AS bookings
1 AS bookings
, DATE_TRUNC('day', ds) AS ds__day
FROM ***************************.fct_bookings bookings_source_src_28000
) subq_10
) subq_8
LEFT OUTER JOIN
***************************.mf_time_spine subq_11
***************************.mf_time_spine subq_9
ON
subq_10.metric_time__day = subq_11.ds
subq_8.ds__day = subq_9.ds
GROUP BY
subq_11.martian_day
) subq_14
subq_9.martian_day
) subq_12
ON
subq_15.metric_time__martian_day = subq_14.metric_time__martian_day
subq_13.metric_time__martian_day = subq_12.metric_time__martian_day
Loading

0 comments on commit 683bc53

Please sign in to comment.