From f4a673ceb801102349a9496c7795a7358aa551bb Mon Sep 17 00:00:00 2001 From: Courtney Holcomb Date: Wed, 9 Oct 2024 20:59:46 -0700 Subject: [PATCH] fixup! Add SQL engine snapshots for new tests --- ...join_to_time_spine_with_filter_not_in_group_by__plan0.sql | 1 - ...me_spine_with_filter_not_in_group_by__plan0_optimized.sql | 1 - ...o_time_spine_with_filter_smaller_than_group_by__plan0.sql | 5 +++-- ...ne_with_filter_smaller_than_group_by__plan0_optimized.sql | 5 +++-- ...join_to_time_spine_with_filter_not_in_group_by__plan0.sql | 1 - ...me_spine_with_filter_not_in_group_by__plan0_optimized.sql | 1 - ...o_time_spine_with_filter_smaller_than_group_by__plan0.sql | 5 +++-- ...ne_with_filter_smaller_than_group_by__plan0_optimized.sql | 5 +++-- ...join_to_time_spine_with_filter_not_in_group_by__plan0.sql | 1 - ...me_spine_with_filter_not_in_group_by__plan0_optimized.sql | 1 - ...o_time_spine_with_filter_smaller_than_group_by__plan0.sql | 5 +++-- ...ne_with_filter_smaller_than_group_by__plan0_optimized.sql | 5 +++-- ...join_to_time_spine_with_filter_not_in_group_by__plan0.sql | 1 - ...me_spine_with_filter_not_in_group_by__plan0_optimized.sql | 1 - ...o_time_spine_with_filter_smaller_than_group_by__plan0.sql | 5 +++-- ...ne_with_filter_smaller_than_group_by__plan0_optimized.sql | 5 +++-- ...join_to_time_spine_with_filter_not_in_group_by__plan0.sql | 1 - ...me_spine_with_filter_not_in_group_by__plan0_optimized.sql | 1 - ...o_time_spine_with_filter_smaller_than_group_by__plan0.sql | 5 +++-- ...ne_with_filter_smaller_than_group_by__plan0_optimized.sql | 5 +++-- ...join_to_time_spine_with_filter_not_in_group_by__plan0.sql | 1 - ...me_spine_with_filter_not_in_group_by__plan0_optimized.sql | 1 - ...o_time_spine_with_filter_smaller_than_group_by__plan0.sql | 5 +++-- ...ne_with_filter_smaller_than_group_by__plan0_optimized.sql | 5 +++-- 24 files changed, 36 insertions(+), 36 deletions(-) diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/BigQuery/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/BigQuery/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql index 882434df75..7f44189c58 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/BigQuery/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/BigQuery/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql @@ -11,7 +11,6 @@ FROM ( -- Filter Time Spine SELECT subq_8.metric_time__day - , subq_8.metric_time__month FROM ( -- Time Spine SELECT diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/BigQuery/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/BigQuery/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql index ad09eed18a..4200375db2 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/BigQuery/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/BigQuery/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql @@ -7,7 +7,6 @@ FROM ( -- Filter Time Spine SELECT metric_time__day - , metric_time__month FROM ( -- Time Spine SELECT diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/BigQuery/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/BigQuery/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql index 76db6059bf..f9d9003f73 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/BigQuery/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/BigQuery/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql @@ -10,8 +10,7 @@ FROM ( FROM ( -- Filter Time Spine SELECT - subq_8.metric_time__hour - , subq_8.metric_time__day + subq_8.metric_time__day FROM ( -- Time Spine SELECT @@ -24,6 +23,8 @@ FROM ( ) AND ( metric_time__day = '2020-01-01' ) + GROUP BY + metric_time__day ) subq_6 LEFT OUTER JOIN ( -- Aggregate Measures diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/BigQuery/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/BigQuery/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql index a0f049c750..b7555abc78 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/BigQuery/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/BigQuery/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql @@ -6,8 +6,7 @@ SELECT FROM ( -- Filter Time Spine SELECT - metric_time__hour - , metric_time__day + metric_time__day FROM ( -- Time Spine SELECT @@ -20,6 +19,8 @@ FROM ( ) AND ( metric_time__day = '2020-01-01' ) + GROUP BY + metric_time__day ) subq_16 LEFT OUTER JOIN ( -- Constrain Output with WHERE diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Databricks/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Databricks/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql index 4f66026c22..7b6f3d644f 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Databricks/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Databricks/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql @@ -11,7 +11,6 @@ FROM ( -- Filter Time Spine SELECT subq_8.metric_time__day - , subq_8.metric_time__month FROM ( -- Time Spine SELECT diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Databricks/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Databricks/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql index bc8140409e..d18abb16dc 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Databricks/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Databricks/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql @@ -7,7 +7,6 @@ FROM ( -- Filter Time Spine SELECT metric_time__day - , metric_time__month FROM ( -- Time Spine SELECT diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Databricks/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Databricks/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql index c71ac03055..1a1ceec45a 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Databricks/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Databricks/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql @@ -10,8 +10,7 @@ FROM ( FROM ( -- Filter Time Spine SELECT - subq_8.metric_time__hour - , subq_8.metric_time__day + subq_8.metric_time__day FROM ( -- Time Spine SELECT @@ -24,6 +23,8 @@ FROM ( ) AND ( metric_time__day = '2020-01-01' ) + GROUP BY + subq_8.metric_time__day ) subq_6 LEFT OUTER JOIN ( -- Aggregate Measures diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Databricks/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Databricks/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql index 1eb1a2b359..8e318e894d 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Databricks/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Databricks/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql @@ -6,8 +6,7 @@ SELECT FROM ( -- Filter Time Spine SELECT - metric_time__hour - , metric_time__day + metric_time__day FROM ( -- Time Spine SELECT @@ -20,6 +19,8 @@ FROM ( ) AND ( metric_time__day = '2020-01-01' ) + GROUP BY + metric_time__day ) subq_16 LEFT OUTER JOIN ( -- Constrain Output with WHERE diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Postgres/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Postgres/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql index 06eba04405..e04c3d1288 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Postgres/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Postgres/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql @@ -11,7 +11,6 @@ FROM ( -- Filter Time Spine SELECT subq_8.metric_time__day - , subq_8.metric_time__month FROM ( -- Time Spine SELECT diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Postgres/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Postgres/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql index bc8140409e..d18abb16dc 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Postgres/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Postgres/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql @@ -7,7 +7,6 @@ FROM ( -- Filter Time Spine SELECT metric_time__day - , metric_time__month FROM ( -- Time Spine SELECT diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Postgres/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Postgres/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql index 6b276de5d7..9c928c4dce 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Postgres/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Postgres/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql @@ -10,8 +10,7 @@ FROM ( FROM ( -- Filter Time Spine SELECT - subq_8.metric_time__hour - , subq_8.metric_time__day + subq_8.metric_time__day FROM ( -- Time Spine SELECT @@ -24,6 +23,8 @@ FROM ( ) AND ( metric_time__day = '2020-01-01' ) + GROUP BY + subq_8.metric_time__day ) subq_6 LEFT OUTER JOIN ( -- Aggregate Measures diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Postgres/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Postgres/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql index 1eb1a2b359..8e318e894d 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Postgres/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Postgres/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql @@ -6,8 +6,7 @@ SELECT FROM ( -- Filter Time Spine SELECT - metric_time__hour - , metric_time__day + metric_time__day FROM ( -- Time Spine SELECT @@ -20,6 +19,8 @@ FROM ( ) AND ( metric_time__day = '2020-01-01' ) + GROUP BY + metric_time__day ) subq_16 LEFT OUTER JOIN ( -- Constrain Output with WHERE diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Redshift/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Redshift/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql index c6b243d719..a48623ad82 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Redshift/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Redshift/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql @@ -11,7 +11,6 @@ FROM ( -- Filter Time Spine SELECT subq_8.metric_time__day - , subq_8.metric_time__month FROM ( -- Time Spine SELECT diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Redshift/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Redshift/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql index bc8140409e..d18abb16dc 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Redshift/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Redshift/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql @@ -7,7 +7,6 @@ FROM ( -- Filter Time Spine SELECT metric_time__day - , metric_time__month FROM ( -- Time Spine SELECT diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Redshift/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Redshift/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql index d0f6bc449a..13a45844c3 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Redshift/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Redshift/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql @@ -10,8 +10,7 @@ FROM ( FROM ( -- Filter Time Spine SELECT - subq_8.metric_time__hour - , subq_8.metric_time__day + subq_8.metric_time__day FROM ( -- Time Spine SELECT @@ -24,6 +23,8 @@ FROM ( ) AND ( metric_time__day = '2020-01-01' ) + GROUP BY + subq_8.metric_time__day ) subq_6 LEFT OUTER JOIN ( -- Aggregate Measures diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Redshift/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Redshift/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql index 1eb1a2b359..8e318e894d 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Redshift/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Redshift/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql @@ -6,8 +6,7 @@ SELECT FROM ( -- Filter Time Spine SELECT - metric_time__hour - , metric_time__day + metric_time__day FROM ( -- Time Spine SELECT @@ -20,6 +19,8 @@ FROM ( ) AND ( metric_time__day = '2020-01-01' ) + GROUP BY + metric_time__day ) subq_16 LEFT OUTER JOIN ( -- Constrain Output with WHERE diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql index 0948567d5a..afef4e3e0a 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql @@ -11,7 +11,6 @@ FROM ( -- Filter Time Spine SELECT subq_8.metric_time__day - , subq_8.metric_time__month FROM ( -- Time Spine SELECT diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql index bc8140409e..d18abb16dc 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql @@ -7,7 +7,6 @@ FROM ( -- Filter Time Spine SELECT metric_time__day - , metric_time__month FROM ( -- Time Spine SELECT diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql index 732a28d246..f602351496 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql @@ -10,8 +10,7 @@ FROM ( FROM ( -- Filter Time Spine SELECT - subq_8.metric_time__hour - , subq_8.metric_time__day + subq_8.metric_time__day FROM ( -- Time Spine SELECT @@ -24,6 +23,8 @@ FROM ( ) AND ( metric_time__day = '2020-01-01' ) + GROUP BY + subq_8.metric_time__day ) subq_6 LEFT OUTER JOIN ( -- Aggregate Measures diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql index 1eb1a2b359..8e318e894d 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql @@ -6,8 +6,7 @@ SELECT FROM ( -- Filter Time Spine SELECT - metric_time__hour - , metric_time__day + metric_time__day FROM ( -- Time Spine SELECT @@ -20,6 +19,8 @@ FROM ( ) AND ( metric_time__day = '2020-01-01' ) + GROUP BY + metric_time__day ) subq_16 LEFT OUTER JOIN ( -- Constrain Output with WHERE diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Trino/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Trino/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql index da4904d6e0..71a28a0f56 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Trino/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Trino/test_join_to_time_spine_with_filter_not_in_group_by__plan0.sql @@ -11,7 +11,6 @@ FROM ( -- Filter Time Spine SELECT subq_8.metric_time__day - , subq_8.metric_time__month FROM ( -- Time Spine SELECT diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Trino/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Trino/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql index bc8140409e..d18abb16dc 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Trino/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Trino/test_join_to_time_spine_with_filter_not_in_group_by__plan0_optimized.sql @@ -7,7 +7,6 @@ FROM ( -- Filter Time Spine SELECT metric_time__day - , metric_time__month FROM ( -- Time Spine SELECT diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Trino/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Trino/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql index e7a4099099..2bf7a13538 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Trino/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Trino/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0.sql @@ -10,8 +10,7 @@ FROM ( FROM ( -- Filter Time Spine SELECT - subq_8.metric_time__hour - , subq_8.metric_time__day + subq_8.metric_time__day FROM ( -- Time Spine SELECT @@ -24,6 +23,8 @@ FROM ( ) AND ( metric_time__day = '2020-01-01' ) + GROUP BY + subq_8.metric_time__day ) subq_6 LEFT OUTER JOIN ( -- Aggregate Measures diff --git a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Trino/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Trino/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql index 1eb1a2b359..8e318e894d 100644 --- a/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Trino/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_fill_nulls_with_rendering.py/SqlQueryPlan/Trino/test_join_to_time_spine_with_filter_smaller_than_group_by__plan0_optimized.sql @@ -6,8 +6,7 @@ SELECT FROM ( -- Filter Time Spine SELECT - metric_time__hour - , metric_time__day + metric_time__day FROM ( -- Time Spine SELECT @@ -20,6 +19,8 @@ FROM ( ) AND ( metric_time__day = '2020-01-01' ) + GROUP BY + metric_time__day ) subq_16 LEFT OUTER JOIN ( -- Constrain Output with WHERE