From 1f9e747eb0f99215a5a25c7d62bade35c79a97e7 Mon Sep 17 00:00:00 2001 From: Courtney Holcomb Date: Wed, 18 Dec 2024 15:20:03 -0800 Subject: [PATCH] Update SQL engine snapshots for output tests --- ...ffset_window_period_over_period__query_output.txt | 12 ++++++++++++ ...m_offset_window_with_base_grain__query_output.txt | 12 ++++++++++++ ...indow_with_grains_and_date_part__query_output.txt | 7 +++++++ ...ffset_window_period_over_period__query_output.txt | 12 ++++++++++++ ...m_offset_window_with_base_grain__query_output.txt | 12 ++++++++++++ ...indow_with_grains_and_date_part__query_output.txt | 7 +++++++ ...ffset_window_period_over_period__query_output.txt | 12 ++++++++++++ ...m_offset_window_with_base_grain__query_output.txt | 12 ++++++++++++ ...indow_with_grains_and_date_part__query_output.txt | 7 +++++++ ...ffset_window_period_over_period__query_output.txt | 12 ++++++++++++ ...m_offset_window_with_base_grain__query_output.txt | 12 ++++++++++++ ...indow_with_grains_and_date_part__query_output.txt | 7 +++++++ ...ffset_window_period_over_period__query_output.txt | 12 ++++++++++++ ...m_offset_window_with_base_grain__query_output.txt | 12 ++++++++++++ ...indow_with_grains_and_date_part__query_output.txt | 7 +++++++ ...ffset_window_period_over_period__query_output.txt | 12 ++++++++++++ ...m_offset_window_with_base_grain__query_output.txt | 12 ++++++++++++ ...indow_with_grains_and_date_part__query_output.txt | 7 +++++++ 18 files changed, 186 insertions(+) create mode 100644 tests_metricflow/snapshots/test_offset_metrics.py/str/BigQuery/test_custom_offset_window_period_over_period__query_output.txt create mode 100644 tests_metricflow/snapshots/test_offset_metrics.py/str/BigQuery/test_custom_offset_window_with_base_grain__query_output.txt create mode 100644 tests_metricflow/snapshots/test_offset_metrics.py/str/BigQuery/test_custom_offset_window_with_grains_and_date_part__query_output.txt create mode 100644 tests_metricflow/snapshots/test_offset_metrics.py/str/Databricks/test_custom_offset_window_period_over_period__query_output.txt create mode 100644 tests_metricflow/snapshots/test_offset_metrics.py/str/Databricks/test_custom_offset_window_with_base_grain__query_output.txt create mode 100644 tests_metricflow/snapshots/test_offset_metrics.py/str/Databricks/test_custom_offset_window_with_grains_and_date_part__query_output.txt create mode 100644 tests_metricflow/snapshots/test_offset_metrics.py/str/Postgres/test_custom_offset_window_period_over_period__query_output.txt create mode 100644 tests_metricflow/snapshots/test_offset_metrics.py/str/Postgres/test_custom_offset_window_with_base_grain__query_output.txt create mode 100644 tests_metricflow/snapshots/test_offset_metrics.py/str/Postgres/test_custom_offset_window_with_grains_and_date_part__query_output.txt create mode 100644 tests_metricflow/snapshots/test_offset_metrics.py/str/Redshift/test_custom_offset_window_period_over_period__query_output.txt create mode 100644 tests_metricflow/snapshots/test_offset_metrics.py/str/Redshift/test_custom_offset_window_with_base_grain__query_output.txt create mode 100644 tests_metricflow/snapshots/test_offset_metrics.py/str/Redshift/test_custom_offset_window_with_grains_and_date_part__query_output.txt create mode 100644 tests_metricflow/snapshots/test_offset_metrics.py/str/Snowflake/test_custom_offset_window_period_over_period__query_output.txt create mode 100644 tests_metricflow/snapshots/test_offset_metrics.py/str/Snowflake/test_custom_offset_window_with_base_grain__query_output.txt create mode 100644 tests_metricflow/snapshots/test_offset_metrics.py/str/Snowflake/test_custom_offset_window_with_grains_and_date_part__query_output.txt create mode 100644 tests_metricflow/snapshots/test_offset_metrics.py/str/Trino/test_custom_offset_window_period_over_period__query_output.txt create mode 100644 tests_metricflow/snapshots/test_offset_metrics.py/str/Trino/test_custom_offset_window_with_base_grain__query_output.txt create mode 100644 tests_metricflow/snapshots/test_offset_metrics.py/str/Trino/test_custom_offset_window_with_grains_and_date_part__query_output.txt diff --git a/tests_metricflow/snapshots/test_offset_metrics.py/str/BigQuery/test_custom_offset_window_period_over_period__query_output.txt b/tests_metricflow/snapshots/test_offset_metrics.py/str/BigQuery/test_custom_offset_window_period_over_period__query_output.txt new file mode 100644 index 000000000..29924960b --- /dev/null +++ b/tests_metricflow/snapshots/test_offset_metrics.py/str/BigQuery/test_custom_offset_window_period_over_period__query_output.txt @@ -0,0 +1,12 @@ +test_name: test_custom_offset_window_period_over_period +test_filename: test_offset_metrics.py +--- +metric_time__day bookings_martian_day_over_martian_day +------------------- --------------------------------------- +2019-12-01T00:00:00 0 +2019-12-18T00:00:00 9 +2019-12-19T00:00:00 17 +2019-12-20T00:00:00 1 +2020-01-01T00:00:00 4 +2020-01-02T00:00:00 8 +2020-01-03T00:00:00 0 diff --git a/tests_metricflow/snapshots/test_offset_metrics.py/str/BigQuery/test_custom_offset_window_with_base_grain__query_output.txt b/tests_metricflow/snapshots/test_offset_metrics.py/str/BigQuery/test_custom_offset_window_with_base_grain__query_output.txt new file mode 100644 index 000000000..6be3b6d43 --- /dev/null +++ b/tests_metricflow/snapshots/test_offset_metrics.py/str/BigQuery/test_custom_offset_window_with_base_grain__query_output.txt @@ -0,0 +1,12 @@ +test_name: test_custom_offset_window_with_base_grain +test_filename: test_offset_metrics.py +--- +metric_time__day bookings_offset_one_martian_day +------------------- --------------------------------- +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 diff --git a/tests_metricflow/snapshots/test_offset_metrics.py/str/BigQuery/test_custom_offset_window_with_grains_and_date_part__query_output.txt b/tests_metricflow/snapshots/test_offset_metrics.py/str/BigQuery/test_custom_offset_window_with_grains_and_date_part__query_output.txt new file mode 100644 index 000000000..9f3776943 --- /dev/null +++ b/tests_metricflow/snapshots/test_offset_metrics.py/str/BigQuery/test_custom_offset_window_with_grains_and_date_part__query_output.txt @@ -0,0 +1,7 @@ +test_name: test_custom_offset_window_with_grains_and_date_part +test_filename: test_offset_metrics.py +--- +metric_time__martian_day booking__ds__month metric_time__extract_year bookings_offset_one_martian_day +-------------------------- -------------------- --------------------------- --------------------------------- +2020-01-08T00:00:00 2019-12-01T00:00:00 2019 31 +2020-01-08T00:00:00 2020-01-01T00:00:00 2020 15 diff --git a/tests_metricflow/snapshots/test_offset_metrics.py/str/Databricks/test_custom_offset_window_period_over_period__query_output.txt b/tests_metricflow/snapshots/test_offset_metrics.py/str/Databricks/test_custom_offset_window_period_over_period__query_output.txt new file mode 100644 index 000000000..29924960b --- /dev/null +++ b/tests_metricflow/snapshots/test_offset_metrics.py/str/Databricks/test_custom_offset_window_period_over_period__query_output.txt @@ -0,0 +1,12 @@ +test_name: test_custom_offset_window_period_over_period +test_filename: test_offset_metrics.py +--- +metric_time__day bookings_martian_day_over_martian_day +------------------- --------------------------------------- +2019-12-01T00:00:00 0 +2019-12-18T00:00:00 9 +2019-12-19T00:00:00 17 +2019-12-20T00:00:00 1 +2020-01-01T00:00:00 4 +2020-01-02T00:00:00 8 +2020-01-03T00:00:00 0 diff --git a/tests_metricflow/snapshots/test_offset_metrics.py/str/Databricks/test_custom_offset_window_with_base_grain__query_output.txt b/tests_metricflow/snapshots/test_offset_metrics.py/str/Databricks/test_custom_offset_window_with_base_grain__query_output.txt new file mode 100644 index 000000000..6be3b6d43 --- /dev/null +++ b/tests_metricflow/snapshots/test_offset_metrics.py/str/Databricks/test_custom_offset_window_with_base_grain__query_output.txt @@ -0,0 +1,12 @@ +test_name: test_custom_offset_window_with_base_grain +test_filename: test_offset_metrics.py +--- +metric_time__day bookings_offset_one_martian_day +------------------- --------------------------------- +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 diff --git a/tests_metricflow/snapshots/test_offset_metrics.py/str/Databricks/test_custom_offset_window_with_grains_and_date_part__query_output.txt b/tests_metricflow/snapshots/test_offset_metrics.py/str/Databricks/test_custom_offset_window_with_grains_and_date_part__query_output.txt new file mode 100644 index 000000000..9f3776943 --- /dev/null +++ b/tests_metricflow/snapshots/test_offset_metrics.py/str/Databricks/test_custom_offset_window_with_grains_and_date_part__query_output.txt @@ -0,0 +1,7 @@ +test_name: test_custom_offset_window_with_grains_and_date_part +test_filename: test_offset_metrics.py +--- +metric_time__martian_day booking__ds__month metric_time__extract_year bookings_offset_one_martian_day +-------------------------- -------------------- --------------------------- --------------------------------- +2020-01-08T00:00:00 2019-12-01T00:00:00 2019 31 +2020-01-08T00:00:00 2020-01-01T00:00:00 2020 15 diff --git a/tests_metricflow/snapshots/test_offset_metrics.py/str/Postgres/test_custom_offset_window_period_over_period__query_output.txt b/tests_metricflow/snapshots/test_offset_metrics.py/str/Postgres/test_custom_offset_window_period_over_period__query_output.txt new file mode 100644 index 000000000..29924960b --- /dev/null +++ b/tests_metricflow/snapshots/test_offset_metrics.py/str/Postgres/test_custom_offset_window_period_over_period__query_output.txt @@ -0,0 +1,12 @@ +test_name: test_custom_offset_window_period_over_period +test_filename: test_offset_metrics.py +--- +metric_time__day bookings_martian_day_over_martian_day +------------------- --------------------------------------- +2019-12-01T00:00:00 0 +2019-12-18T00:00:00 9 +2019-12-19T00:00:00 17 +2019-12-20T00:00:00 1 +2020-01-01T00:00:00 4 +2020-01-02T00:00:00 8 +2020-01-03T00:00:00 0 diff --git a/tests_metricflow/snapshots/test_offset_metrics.py/str/Postgres/test_custom_offset_window_with_base_grain__query_output.txt b/tests_metricflow/snapshots/test_offset_metrics.py/str/Postgres/test_custom_offset_window_with_base_grain__query_output.txt new file mode 100644 index 000000000..6be3b6d43 --- /dev/null +++ b/tests_metricflow/snapshots/test_offset_metrics.py/str/Postgres/test_custom_offset_window_with_base_grain__query_output.txt @@ -0,0 +1,12 @@ +test_name: test_custom_offset_window_with_base_grain +test_filename: test_offset_metrics.py +--- +metric_time__day bookings_offset_one_martian_day +------------------- --------------------------------- +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 diff --git a/tests_metricflow/snapshots/test_offset_metrics.py/str/Postgres/test_custom_offset_window_with_grains_and_date_part__query_output.txt b/tests_metricflow/snapshots/test_offset_metrics.py/str/Postgres/test_custom_offset_window_with_grains_and_date_part__query_output.txt new file mode 100644 index 000000000..9f3776943 --- /dev/null +++ b/tests_metricflow/snapshots/test_offset_metrics.py/str/Postgres/test_custom_offset_window_with_grains_and_date_part__query_output.txt @@ -0,0 +1,7 @@ +test_name: test_custom_offset_window_with_grains_and_date_part +test_filename: test_offset_metrics.py +--- +metric_time__martian_day booking__ds__month metric_time__extract_year bookings_offset_one_martian_day +-------------------------- -------------------- --------------------------- --------------------------------- +2020-01-08T00:00:00 2019-12-01T00:00:00 2019 31 +2020-01-08T00:00:00 2020-01-01T00:00:00 2020 15 diff --git a/tests_metricflow/snapshots/test_offset_metrics.py/str/Redshift/test_custom_offset_window_period_over_period__query_output.txt b/tests_metricflow/snapshots/test_offset_metrics.py/str/Redshift/test_custom_offset_window_period_over_period__query_output.txt new file mode 100644 index 000000000..29924960b --- /dev/null +++ b/tests_metricflow/snapshots/test_offset_metrics.py/str/Redshift/test_custom_offset_window_period_over_period__query_output.txt @@ -0,0 +1,12 @@ +test_name: test_custom_offset_window_period_over_period +test_filename: test_offset_metrics.py +--- +metric_time__day bookings_martian_day_over_martian_day +------------------- --------------------------------------- +2019-12-01T00:00:00 0 +2019-12-18T00:00:00 9 +2019-12-19T00:00:00 17 +2019-12-20T00:00:00 1 +2020-01-01T00:00:00 4 +2020-01-02T00:00:00 8 +2020-01-03T00:00:00 0 diff --git a/tests_metricflow/snapshots/test_offset_metrics.py/str/Redshift/test_custom_offset_window_with_base_grain__query_output.txt b/tests_metricflow/snapshots/test_offset_metrics.py/str/Redshift/test_custom_offset_window_with_base_grain__query_output.txt new file mode 100644 index 000000000..6be3b6d43 --- /dev/null +++ b/tests_metricflow/snapshots/test_offset_metrics.py/str/Redshift/test_custom_offset_window_with_base_grain__query_output.txt @@ -0,0 +1,12 @@ +test_name: test_custom_offset_window_with_base_grain +test_filename: test_offset_metrics.py +--- +metric_time__day bookings_offset_one_martian_day +------------------- --------------------------------- +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 diff --git a/tests_metricflow/snapshots/test_offset_metrics.py/str/Redshift/test_custom_offset_window_with_grains_and_date_part__query_output.txt b/tests_metricflow/snapshots/test_offset_metrics.py/str/Redshift/test_custom_offset_window_with_grains_and_date_part__query_output.txt new file mode 100644 index 000000000..9f3776943 --- /dev/null +++ b/tests_metricflow/snapshots/test_offset_metrics.py/str/Redshift/test_custom_offset_window_with_grains_and_date_part__query_output.txt @@ -0,0 +1,7 @@ +test_name: test_custom_offset_window_with_grains_and_date_part +test_filename: test_offset_metrics.py +--- +metric_time__martian_day booking__ds__month metric_time__extract_year bookings_offset_one_martian_day +-------------------------- -------------------- --------------------------- --------------------------------- +2020-01-08T00:00:00 2019-12-01T00:00:00 2019 31 +2020-01-08T00:00:00 2020-01-01T00:00:00 2020 15 diff --git a/tests_metricflow/snapshots/test_offset_metrics.py/str/Snowflake/test_custom_offset_window_period_over_period__query_output.txt b/tests_metricflow/snapshots/test_offset_metrics.py/str/Snowflake/test_custom_offset_window_period_over_period__query_output.txt new file mode 100644 index 000000000..1d603b929 --- /dev/null +++ b/tests_metricflow/snapshots/test_offset_metrics.py/str/Snowflake/test_custom_offset_window_period_over_period__query_output.txt @@ -0,0 +1,12 @@ +test_name: test_custom_offset_window_period_over_period +test_filename: test_offset_metrics.py +--- +METRIC_TIME__DAY BOOKINGS_MARTIAN_DAY_OVER_MARTIAN_DAY +------------------- --------------------------------------- +2019-12-01T00:00:00 0 +2019-12-18T00:00:00 9 +2019-12-19T00:00:00 17 +2019-12-20T00:00:00 1 +2020-01-01T00:00:00 4 +2020-01-02T00:00:00 8 +2020-01-03T00:00:00 0 diff --git a/tests_metricflow/snapshots/test_offset_metrics.py/str/Snowflake/test_custom_offset_window_with_base_grain__query_output.txt b/tests_metricflow/snapshots/test_offset_metrics.py/str/Snowflake/test_custom_offset_window_with_base_grain__query_output.txt new file mode 100644 index 000000000..c515e5a0d --- /dev/null +++ b/tests_metricflow/snapshots/test_offset_metrics.py/str/Snowflake/test_custom_offset_window_with_base_grain__query_output.txt @@ -0,0 +1,12 @@ +test_name: test_custom_offset_window_with_base_grain +test_filename: test_offset_metrics.py +--- +METRIC_TIME__DAY BOOKINGS_OFFSET_ONE_MARTIAN_DAY +------------------- --------------------------------- +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 diff --git a/tests_metricflow/snapshots/test_offset_metrics.py/str/Snowflake/test_custom_offset_window_with_grains_and_date_part__query_output.txt b/tests_metricflow/snapshots/test_offset_metrics.py/str/Snowflake/test_custom_offset_window_with_grains_and_date_part__query_output.txt new file mode 100644 index 000000000..090bd9489 --- /dev/null +++ b/tests_metricflow/snapshots/test_offset_metrics.py/str/Snowflake/test_custom_offset_window_with_grains_and_date_part__query_output.txt @@ -0,0 +1,7 @@ +test_name: test_custom_offset_window_with_grains_and_date_part +test_filename: test_offset_metrics.py +--- +METRIC_TIME__MARTIAN_DAY BOOKING__DS__MONTH METRIC_TIME__EXTRACT_YEAR BOOKINGS_OFFSET_ONE_MARTIAN_DAY +-------------------------- -------------------- --------------------------- --------------------------------- +2020-01-08T00:00:00 2019-12-01T00:00:00 2019 31 +2020-01-08T00:00:00 2020-01-01T00:00:00 2020 15 diff --git a/tests_metricflow/snapshots/test_offset_metrics.py/str/Trino/test_custom_offset_window_period_over_period__query_output.txt b/tests_metricflow/snapshots/test_offset_metrics.py/str/Trino/test_custom_offset_window_period_over_period__query_output.txt new file mode 100644 index 000000000..29924960b --- /dev/null +++ b/tests_metricflow/snapshots/test_offset_metrics.py/str/Trino/test_custom_offset_window_period_over_period__query_output.txt @@ -0,0 +1,12 @@ +test_name: test_custom_offset_window_period_over_period +test_filename: test_offset_metrics.py +--- +metric_time__day bookings_martian_day_over_martian_day +------------------- --------------------------------------- +2019-12-01T00:00:00 0 +2019-12-18T00:00:00 9 +2019-12-19T00:00:00 17 +2019-12-20T00:00:00 1 +2020-01-01T00:00:00 4 +2020-01-02T00:00:00 8 +2020-01-03T00:00:00 0 diff --git a/tests_metricflow/snapshots/test_offset_metrics.py/str/Trino/test_custom_offset_window_with_base_grain__query_output.txt b/tests_metricflow/snapshots/test_offset_metrics.py/str/Trino/test_custom_offset_window_with_base_grain__query_output.txt new file mode 100644 index 000000000..6be3b6d43 --- /dev/null +++ b/tests_metricflow/snapshots/test_offset_metrics.py/str/Trino/test_custom_offset_window_with_base_grain__query_output.txt @@ -0,0 +1,12 @@ +test_name: test_custom_offset_window_with_base_grain +test_filename: test_offset_metrics.py +--- +metric_time__day bookings_offset_one_martian_day +------------------- --------------------------------- +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 diff --git a/tests_metricflow/snapshots/test_offset_metrics.py/str/Trino/test_custom_offset_window_with_grains_and_date_part__query_output.txt b/tests_metricflow/snapshots/test_offset_metrics.py/str/Trino/test_custom_offset_window_with_grains_and_date_part__query_output.txt new file mode 100644 index 000000000..9f3776943 --- /dev/null +++ b/tests_metricflow/snapshots/test_offset_metrics.py/str/Trino/test_custom_offset_window_with_grains_and_date_part__query_output.txt @@ -0,0 +1,7 @@ +test_name: test_custom_offset_window_with_grains_and_date_part +test_filename: test_offset_metrics.py +--- +metric_time__martian_day booking__ds__month metric_time__extract_year bookings_offset_one_martian_day +-------------------------- -------------------- --------------------------- --------------------------------- +2020-01-08T00:00:00 2019-12-01T00:00:00 2019 31 +2020-01-08T00:00:00 2020-01-01T00:00:00 2020 15