Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDee committed Jun 13, 2024
1 parent 5f3231f commit f49f7ba
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 91 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Under the Hood-20240612-233459.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Under the Hood
body: Added filtering for DWH validation tasks and saved query support
time: 2024-06-12T23:34:59.094903-04:00
custom:
Author: WilliamDee
Issue: "1271"
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
-- Aggregate Measures
-- Compute Metrics via Expressions
SELECT
metric_time__day
, SUM(count_dogs) AS count_dogs
FROM (
-- Read Elements From Semantic Model 'animals'
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['count_dogs', 'metric_time__day']
SELECT
DATE_TRUNC(ds, day) AS metric_time__day
, 1 AS count_dogs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
-- Constrain Output with WHERE
-- Aggregate Measures
-- Compute Metrics via Expressions
SELECT
metric_time__day
, listing__capacity_latest
, SUM(bookings) AS bookings
, SUM(instant_bookings) AS instant_bookings
FROM (
-- Join Standard Outputs
-- Pass Only Elements: ['bookings', 'instant_bookings', 'listing__capacity_latest', 'metric_time__day']
SELECT
subq_2.metric_time__day AS metric_time__day
, listings_latest_src_10000.capacity AS listing__capacity_latest
, subq_2.bookings AS bookings
, subq_2.instant_bookings AS instant_bookings
FROM (
-- Read Elements From Semantic Model 'bookings_source'
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['bookings', 'instant_bookings', 'metric_time__day', 'listing']
SELECT
DATE_TRUNC(ds, day) AS metric_time__day
, listing_id AS listing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
-- Aggregate Measures
-- Compute Metrics via Expressions
SELECT
metric_time__day
, SUM(count_dogs) AS count_dogs
FROM (
-- Read Elements From Semantic Model 'animals'
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['count_dogs', 'metric_time__day']
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
, 1 AS count_dogs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
-- Constrain Output with WHERE
-- Aggregate Measures
-- Compute Metrics via Expressions
SELECT
metric_time__day
, listing__capacity_latest
, SUM(bookings) AS bookings
, SUM(instant_bookings) AS instant_bookings
FROM (
-- Join Standard Outputs
-- Pass Only Elements: ['bookings', 'instant_bookings', 'listing__capacity_latest', 'metric_time__day']
SELECT
subq_2.metric_time__day AS metric_time__day
, listings_latest_src_10000.capacity AS listing__capacity_latest
, subq_2.bookings AS bookings
, subq_2.instant_bookings AS instant_bookings
FROM (
-- Read Elements From Semantic Model 'bookings_source'
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['bookings', 'instant_bookings', 'metric_time__day', 'listing']
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
, listing_id AS listing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
-- Aggregate Measures
-- Compute Metrics via Expressions
SELECT
metric_time__day
, SUM(count_dogs) AS count_dogs
FROM (
-- Read Elements From Semantic Model 'animals'
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['count_dogs', 'metric_time__day']
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
, 1 AS count_dogs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
-- Constrain Output with WHERE
-- Aggregate Measures
-- Compute Metrics via Expressions
SELECT
metric_time__day
, listing__capacity_latest
, SUM(bookings) AS bookings
, SUM(instant_bookings) AS instant_bookings
FROM (
-- Join Standard Outputs
-- Pass Only Elements: ['bookings', 'instant_bookings', 'listing__capacity_latest', 'metric_time__day']
SELECT
subq_2.metric_time__day AS metric_time__day
, listings_latest_src_10000.capacity AS listing__capacity_latest
, subq_2.bookings AS bookings
, subq_2.instant_bookings AS instant_bookings
FROM (
-- Read Elements From Semantic Model 'bookings_source'
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['bookings', 'instant_bookings', 'metric_time__day', 'listing']
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
, listing_id AS listing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
-- Aggregate Measures
-- Compute Metrics via Expressions
SELECT
metric_time__day
, SUM(count_dogs) AS count_dogs
FROM (
-- Read Elements From Semantic Model 'animals'
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['count_dogs', 'metric_time__day']
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
, 1 AS count_dogs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
-- Constrain Output with WHERE
-- Aggregate Measures
-- Compute Metrics via Expressions
SELECT
metric_time__day
, listing__capacity_latest
, SUM(bookings) AS bookings
, SUM(instant_bookings) AS instant_bookings
FROM (
-- Join Standard Outputs
-- Pass Only Elements: ['bookings', 'instant_bookings', 'listing__capacity_latest', 'metric_time__day']
SELECT
subq_2.metric_time__day AS metric_time__day
, listings_latest_src_10000.capacity AS listing__capacity_latest
, subq_2.bookings AS bookings
, subq_2.instant_bookings AS instant_bookings
FROM (
-- Read Elements From Semantic Model 'bookings_source'
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['bookings', 'instant_bookings', 'metric_time__day', 'listing']
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
, listing_id AS listing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
-- Aggregate Measures
-- Compute Metrics via Expressions
SELECT
metric_time__day
, SUM(count_dogs) AS count_dogs
FROM (
-- Read Elements From Semantic Model 'animals'
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['count_dogs', 'metric_time__day']
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
, 1 AS count_dogs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
-- Constrain Output with WHERE
-- Aggregate Measures
-- Compute Metrics via Expressions
SELECT
metric_time__day
, listing__capacity_latest
, SUM(bookings) AS bookings
, SUM(instant_bookings) AS instant_bookings
FROM (
-- Join Standard Outputs
-- Pass Only Elements: ['bookings', 'instant_bookings', 'listing__capacity_latest', 'metric_time__day']
SELECT
subq_2.metric_time__day AS metric_time__day
, listings_latest_src_10000.capacity AS listing__capacity_latest
, subq_2.bookings AS bookings
, subq_2.instant_bookings AS instant_bookings
FROM (
-- Read Elements From Semantic Model 'bookings_source'
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['bookings', 'instant_bookings', 'metric_time__day', 'listing']
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
, listing_id AS listing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
-- Aggregate Measures
-- Compute Metrics via Expressions
SELECT
metric_time__day
, SUM(count_dogs) AS count_dogs
FROM (
-- Read Elements From Semantic Model 'animals'
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['count_dogs', 'metric_time__day']
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
, 1 AS count_dogs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
-- Constrain Output with WHERE
-- Aggregate Measures
-- Compute Metrics via Expressions
SELECT
metric_time__day
, listing__capacity_latest
, SUM(bookings) AS bookings
, SUM(instant_bookings) AS instant_bookings
FROM (
-- Join Standard Outputs
-- Pass Only Elements: ['bookings', 'instant_bookings', 'listing__capacity_latest', 'metric_time__day']
SELECT
subq_2.metric_time__day AS metric_time__day
, listings_latest_src_10000.capacity AS listing__capacity_latest
, subq_2.bookings AS bookings
, subq_2.instant_bookings AS instant_bookings
FROM (
-- Read Elements From Semantic Model 'bookings_source'
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['bookings', 'instant_bookings', 'metric_time__day', 'listing']
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
, listing_id AS listing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
-- Aggregate Measures
-- Compute Metrics via Expressions
SELECT
metric_time__day
, SUM(count_dogs) AS count_dogs
FROM (
-- Read Elements From Semantic Model 'animals'
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['count_dogs', 'metric_time__day']
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
, 1 AS count_dogs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
-- Constrain Output with WHERE
-- Aggregate Measures
-- Compute Metrics via Expressions
SELECT
metric_time__day
, listing__capacity_latest
, SUM(bookings) AS bookings
, SUM(instant_bookings) AS instant_bookings
FROM (
-- Join Standard Outputs
-- Pass Only Elements: ['bookings', 'instant_bookings', 'listing__capacity_latest', 'metric_time__day']
SELECT
subq_2.metric_time__day AS metric_time__day
, listings_latest_src_10000.capacity AS listing__capacity_latest
, subq_2.bookings AS bookings
, subq_2.instant_bookings AS instant_bookings
FROM (
-- Read Elements From Semantic Model 'bookings_source'
-- Metric Time Dimension 'ds'
-- Pass Only Elements: ['bookings', 'instant_bookings', 'metric_time__day', 'listing']
SELECT
DATE_TRUNC('day', ds) AS metric_time__day
, listing_id AS listing
Expand Down

0 comments on commit f49f7ba

Please sign in to comment.