Skip to content

Commit

Permalink
Update SQL engine snapshots after rebase
Browse files Browse the repository at this point in the history
Changes in main caused updates to some of the rendering tests.
  • Loading branch information
tlento committed Jun 4, 2024
1 parent 20c1ac4 commit c0aafd1
Show file tree
Hide file tree
Showing 28 changed files with 4,792 additions and 3,238 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ SELECT
FROM (
-- Join to Time Spine Dataset
SELECT
subq_16.ds AS metric_time__day
, subq_14.bookings AS bookings
FROM ***************************.mf_time_spine subq_16
subq_20.ds AS metric_time__day
, subq_18.bookings AS bookings
FROM ***************************.mf_time_spine subq_20
LEFT OUTER JOIN (
-- Constrain Output with WHERE
-- Pass Only Elements: ['bookings', 'metric_time__day']
Expand All @@ -16,19 +16,27 @@ FROM (
metric_time__day
, SUM(bookings) AS bookings
FROM (
-- Read Elements From Semantic Model 'bookings_source'
-- Metric Time Dimension 'ds'
-- Constrain Output with WHERE
-- Pass Only Elements: ['bookings', 'booking__is_instant', 'metric_time__day']
SELECT
DATE_TRUNC(ds, day) AS metric_time__day
, is_instant AS booking__is_instant
, 1 AS bookings
FROM ***************************.fct_bookings bookings_source_src_28000
) subq_11
metric_time__day
, booking__is_instant
, bookings
FROM (
-- Read Elements From Semantic Model 'bookings_source'
-- Metric Time Dimension 'ds'
SELECT
DATE_TRUNC(ds, day) AS metric_time__day
, is_instant AS booking__is_instant
, 1 AS bookings
FROM ***************************.fct_bookings bookings_source_src_28000
) subq_13
WHERE booking__is_instant
) subq_15
WHERE booking__is_instant
GROUP BY
metric_time__day
) subq_14
) subq_18
ON
subq_16.ds = subq_14.metric_time__day
) subq_17
subq_20.ds = subq_18.metric_time__day
) subq_21

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ FROM (
FROM (
-- Join to Time Spine Dataset
SELECT
subq_15.ds AS metric_time__day
, subq_13.booking__is_instant AS booking__is_instant
, subq_13.bookings AS bookings
FROM ***************************.mf_time_spine subq_15
subq_19.ds AS metric_time__day
, subq_17.booking__is_instant AS booking__is_instant
, subq_17.bookings AS bookings
FROM ***************************.mf_time_spine subq_19
LEFT OUTER JOIN (
-- Constrain Output with WHERE
-- Aggregate Measures
Expand All @@ -24,22 +24,30 @@ FROM (
, booking__is_instant
, SUM(bookings) AS bookings
FROM (
-- Read Elements From Semantic Model 'bookings_source'
-- Metric Time Dimension 'ds'
-- Constrain Output with WHERE
-- Pass Only Elements: ['bookings', 'booking__is_instant', 'metric_time__day']
SELECT
DATE_TRUNC(ds, day) AS metric_time__day
, is_instant AS booking__is_instant
, 1 AS bookings
FROM ***************************.fct_bookings bookings_source_src_28000
) subq_11
metric_time__day
, booking__is_instant
, bookings
FROM (
-- Read Elements From Semantic Model 'bookings_source'
-- Metric Time Dimension 'ds'
SELECT
DATE_TRUNC(ds, day) AS metric_time__day
, is_instant AS booking__is_instant
, 1 AS bookings
FROM ***************************.fct_bookings bookings_source_src_28000
) subq_13
WHERE booking__is_instant
) subq_15
WHERE booking__is_instant
GROUP BY
metric_time__day
, booking__is_instant
) subq_13
) subq_17
ON
subq_15.ds = subq_13.metric_time__day
) subq_16
subq_19.ds = subq_17.metric_time__day
) subq_20
WHERE booking__is_instant
) subq_17
) subq_21
Loading

0 comments on commit c0aafd1

Please sign in to comment.