Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDee committed Jan 10, 2025
1 parent 92f9297 commit 49c5b63
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
test_name: test_derived_metric_alias
test_filename: test_query_output.py
---
metric_time__day booking_fees
------------------- --------------
2019-12-01T00:00:00 47.56
2019-12-18T00:00:00 284.93
2019-12-19T00:00:00 360.5
2019-12-20T00:00:00 0
2020-01-01T00:00:00 136.16
2020-01-02T00:00:00 132.78
2020-01-03T00:00:00 0
metric_time__day booking_fees_alias
------------------- --------------------
2019-12-01T00:00:00 47.56
2019-12-18T00:00:00 284.93
2019-12-19T00:00:00 360.5
2019-12-20T00:00:00 0
2020-01-01T00:00:00 136.16
2020-01-02T00:00:00 132.78
2020-01-03T00:00:00 0
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
test_name: test_metric_alias
test_filename: test_query_output.py
---
metric_time__day bookings
------------------- ----------
2019-12-01T00:00:00 1
2019-12-18T00:00:00 10
2019-12-19T00:00:00 18
2019-12-20T00:00:00 2
2020-01-01T00:00:00 5
2020-01-02T00:00:00 9
2020-01-03T00:00:00 1
metric_time__day bookings_alias
------------------- ----------------
2019-12-01T00:00:00 1
2019-12-18T00:00:00 10
2019-12-19T00:00:00 18
2019-12-20T00:00:00 2
2020-01-01T00:00:00 5
2020-01-02T00:00:00 9
2020-01-03T00:00:00 1
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
test_name: test_multiple_metrics_with_alias
test_filename: test_query_output.py
---
metric_time__day bookings booking_fees
------------------- ---------- --------------
2019-12-01T00:00:00 1 47.56
2019-12-18T00:00:00 10 284.93
2019-12-19T00:00:00 18 360.5
2019-12-20T00:00:00 2 0
2020-01-01T00:00:00 5 136.16
2020-01-02T00:00:00 9 132.78
2020-01-03T00:00:00 1 0
metric_time__day bookings_alias bookings_fees_alias
------------------- ---------------- ---------------------
2019-12-01T00:00:00 1 47.56
2019-12-18T00:00:00 10 284.93
2019-12-19T00:00:00 18 360.5
2019-12-20T00:00:00 2 0
2020-01-01T00:00:00 5 136.16
2020-01-02T00:00:00 9 132.78
2020-01-03T00:00:00 1 0
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sql_engine: DuckDB
-- Change Column Aliases
SELECT
subq_15.metric_time__day
, subq_15.booking_fees
, subq_15.booking_fees AS bookings_alias
FROM (
-- Order By ['booking_fees']
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ WITH sma_28009_cte AS (

SELECT
metric_time__day AS metric_time__day
, booking_fees AS booking_fees
, booking_fees AS bookings_alias
FROM (
-- Compute Metrics via Expressions
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sql_engine: DuckDB
-- Change Column Aliases
SELECT
subq_13.metric_time__month
, subq_13.bookings
, subq_13.bookings AS bookings_alias
FROM (
-- Order By ['bookings']
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ WITH sma_28009_cte AS (

SELECT
metric_time__month AS metric_time__month
, bookings AS bookings
, bookings AS bookings_alias
FROM (
-- Constrain Output with WHERE
-- Pass Only Elements: ['bookings', 'metric_time__month']
Expand Down

0 comments on commit 49c5b63

Please sign in to comment.