From e5cb489536d5ed7b0aa28892f4fd831792c0ba9b Mon Sep 17 00:00:00 2001 From: Courtney Holcomb Date: Wed, 12 Jun 2024 10:45:54 -0700 Subject: [PATCH 1/2] Update SqlWindowFunction enum Add AVERAGE for cumulative metrics with non-default granularities. Remove ROW_NUMBER since it isn't used anywhere. Update values to be uppercase for consistency with our other SQL rendering practices. --- metricflow/sql/sql_exprs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/metricflow/sql/sql_exprs.py b/metricflow/sql/sql_exprs.py index 481be5123d..0d1f598abe 100644 --- a/metricflow/sql/sql_exprs.py +++ b/metricflow/sql/sql_exprs.py @@ -944,8 +944,9 @@ class SqlWindowFunction(Enum): Values are the SQL string to be used in rendering. """ - FIRST_VALUE = "first_value" - ROW_NUMBER = "row_number" + FIRST_VALUE = "FIRST_VALUE" + LAST_VALUE = "LAST_VALUE" + AVERAGE = "AVG" @dataclass(frozen=True) From 95db3fad01bdcc795c02ee0b1cad6513ab9e9151 Mon Sep 17 00:00:00 2001 From: Courtney Holcomb Date: Wed, 12 Jun 2024 10:55:09 -0700 Subject: [PATCH 2/2] Update SQL snapshots --- .../BigQuery/test_conversion_metric__plan0.sql | 8 ++++---- .../test_conversion_metric__plan0_optimized.sql | 8 ++++---- ...rsion_metric_with_categorical_filter__plan0.sql | 10 +++++----- ...ic_with_categorical_filter__plan0_optimized.sql | 10 +++++----- ...nversion_metric_with_time_constraint__plan0.sql | 8 ++++---- ...etric_with_time_constraint__plan0_optimized.sql | 8 ++++---- .../test_conversion_metric_with_window__plan0.sql | 8 ++++---- ...version_metric_with_window__plan0_optimized.sql | 8 ++++---- ...tric_with_window_and_time_constraint__plan0.sql | 10 +++++----- ...window_and_time_constraint__plan0_optimized.sql | 10 +++++----- .../Databricks/test_conversion_metric__plan0.sql | 8 ++++---- .../test_conversion_metric__plan0_optimized.sql | 8 ++++---- ...rsion_metric_with_categorical_filter__plan0.sql | 10 +++++----- ...ic_with_categorical_filter__plan0_optimized.sql | 10 +++++----- ...nversion_metric_with_time_constraint__plan0.sql | 8 ++++---- ...etric_with_time_constraint__plan0_optimized.sql | 8 ++++---- .../test_conversion_metric_with_window__plan0.sql | 8 ++++---- ...version_metric_with_window__plan0_optimized.sql | 8 ++++---- ...tric_with_window_and_time_constraint__plan0.sql | 10 +++++----- ...window_and_time_constraint__plan0_optimized.sql | 10 +++++----- .../DuckDB/test_conversion_metric__plan0.sql | 8 ++++---- .../test_conversion_metric__plan0_optimized.sql | 8 ++++---- ...rsion_metric_with_categorical_filter__plan0.sql | 10 +++++----- ...ic_with_categorical_filter__plan0_optimized.sql | 10 +++++----- ...nversion_metric_with_time_constraint__plan0.sql | 8 ++++---- ...etric_with_time_constraint__plan0_optimized.sql | 8 ++++---- .../test_conversion_metric_with_window__plan0.sql | 8 ++++---- ...version_metric_with_window__plan0_optimized.sql | 8 ++++---- ...tric_with_window_and_time_constraint__plan0.sql | 10 +++++----- ...window_and_time_constraint__plan0_optimized.sql | 10 +++++----- .../Postgres/test_conversion_metric__plan0.sql | 8 ++++---- .../test_conversion_metric__plan0_optimized.sql | 8 ++++---- ...rsion_metric_with_categorical_filter__plan0.sql | 10 +++++----- ...ic_with_categorical_filter__plan0_optimized.sql | 10 +++++----- ...nversion_metric_with_time_constraint__plan0.sql | 8 ++++---- ...etric_with_time_constraint__plan0_optimized.sql | 8 ++++---- .../test_conversion_metric_with_window__plan0.sql | 8 ++++---- ...version_metric_with_window__plan0_optimized.sql | 8 ++++---- ...tric_with_window_and_time_constraint__plan0.sql | 10 +++++----- ...window_and_time_constraint__plan0_optimized.sql | 10 +++++----- .../Redshift/test_conversion_metric__plan0.sql | 8 ++++---- .../test_conversion_metric__plan0_optimized.sql | 8 ++++---- ...rsion_metric_with_categorical_filter__plan0.sql | 10 +++++----- ...ic_with_categorical_filter__plan0_optimized.sql | 10 +++++----- ...nversion_metric_with_time_constraint__plan0.sql | 8 ++++---- ...etric_with_time_constraint__plan0_optimized.sql | 8 ++++---- .../test_conversion_metric_with_window__plan0.sql | 8 ++++---- ...version_metric_with_window__plan0_optimized.sql | 8 ++++---- ...tric_with_window_and_time_constraint__plan0.sql | 10 +++++----- ...window_and_time_constraint__plan0_optimized.sql | 10 +++++----- .../Snowflake/test_conversion_metric__plan0.sql | 8 ++++---- .../test_conversion_metric__plan0_optimized.sql | 8 ++++---- ...rsion_metric_with_categorical_filter__plan0.sql | 10 +++++----- ...ic_with_categorical_filter__plan0_optimized.sql | 10 +++++----- ...nversion_metric_with_time_constraint__plan0.sql | 8 ++++---- ...etric_with_time_constraint__plan0_optimized.sql | 8 ++++---- .../test_conversion_metric_with_window__plan0.sql | 8 ++++---- ...version_metric_with_window__plan0_optimized.sql | 8 ++++---- ...tric_with_window_and_time_constraint__plan0.sql | 10 +++++----- ...window_and_time_constraint__plan0_optimized.sql | 10 +++++----- .../Trino/test_conversion_metric__plan0.sql | 8 ++++---- .../test_conversion_metric__plan0_optimized.sql | 8 ++++---- ...rsion_metric_with_categorical_filter__plan0.sql | 10 +++++----- ...ic_with_categorical_filter__plan0_optimized.sql | 10 +++++----- ...nversion_metric_with_time_constraint__plan0.sql | 8 ++++---- ...etric_with_time_constraint__plan0_optimized.sql | 8 ++++---- .../test_conversion_metric_with_window__plan0.sql | 8 ++++---- ...version_metric_with_window__plan0_optimized.sql | 8 ++++---- ...tric_with_window_and_time_constraint__plan0.sql | 10 +++++----- ...window_and_time_constraint__plan0_optimized.sql | 10 +++++----- ...st_conversion_count_with_no_group_by__plan0.sql | 6 +++--- ...ion_count_with_no_group_by__plan0_optimized.sql | 6 +++--- ...n_to_timespine_and_fill_nulls_with_0__plan0.sql | 8 ++++---- ...pine_and_fill_nulls_with_0__plan0_optimized.sql | 8 ++++---- .../BigQuery/test_conversion_rate__plan0.sql | 8 ++++---- .../test_conversion_rate__plan0_optimized.sql | 8 ++++---- ...ersion_rate_with_constant_properties__plan0.sql | 12 ++++++------ ...e_with_constant_properties__plan0_optimized.sql | 12 ++++++------ ...est_conversion_rate_with_no_group_by__plan0.sql | 6 +++--- ...sion_rate_with_no_group_by__plan0_optimized.sql | 6 +++--- .../test_conversion_rate_with_window__plan0.sql | 10 +++++----- ...onversion_rate_with_window__plan0_optimized.sql | 10 +++++----- ...st_conversion_count_with_no_group_by__plan0.sql | 6 +++--- ...ion_count_with_no_group_by__plan0_optimized.sql | 6 +++--- ...n_to_timespine_and_fill_nulls_with_0__plan0.sql | 8 ++++---- ...pine_and_fill_nulls_with_0__plan0_optimized.sql | 8 ++++---- .../Databricks/test_conversion_rate__plan0.sql | 8 ++++---- .../test_conversion_rate__plan0_optimized.sql | 8 ++++---- ...ersion_rate_with_constant_properties__plan0.sql | 12 ++++++------ ...e_with_constant_properties__plan0_optimized.sql | 12 ++++++------ ...est_conversion_rate_with_no_group_by__plan0.sql | 6 +++--- ...sion_rate_with_no_group_by__plan0_optimized.sql | 6 +++--- .../test_conversion_rate_with_window__plan0.sql | 10 +++++----- ...onversion_rate_with_window__plan0_optimized.sql | 10 +++++----- ...st_conversion_count_with_no_group_by__plan0.sql | 6 +++--- ...ion_count_with_no_group_by__plan0_optimized.sql | 6 +++--- ...n_to_timespine_and_fill_nulls_with_0__plan0.sql | 8 ++++---- ...pine_and_fill_nulls_with_0__plan0_optimized.sql | 8 ++++---- .../DuckDB/test_conversion_rate__plan0.sql | 8 ++++---- .../test_conversion_rate__plan0_optimized.sql | 8 ++++---- ...ersion_rate_with_constant_properties__plan0.sql | 12 ++++++------ ...e_with_constant_properties__plan0_optimized.sql | 12 ++++++------ ...est_conversion_rate_with_no_group_by__plan0.sql | 6 +++--- ...sion_rate_with_no_group_by__plan0_optimized.sql | 6 +++--- .../test_conversion_rate_with_window__plan0.sql | 10 +++++----- ...onversion_rate_with_window__plan0_optimized.sql | 10 +++++----- ...st_conversion_count_with_no_group_by__plan0.sql | 6 +++--- ...ion_count_with_no_group_by__plan0_optimized.sql | 6 +++--- ...n_to_timespine_and_fill_nulls_with_0__plan0.sql | 8 ++++---- ...pine_and_fill_nulls_with_0__plan0_optimized.sql | 8 ++++---- .../Postgres/test_conversion_rate__plan0.sql | 8 ++++---- .../test_conversion_rate__plan0_optimized.sql | 8 ++++---- ...ersion_rate_with_constant_properties__plan0.sql | 12 ++++++------ ...e_with_constant_properties__plan0_optimized.sql | 12 ++++++------ ...est_conversion_rate_with_no_group_by__plan0.sql | 6 +++--- ...sion_rate_with_no_group_by__plan0_optimized.sql | 6 +++--- .../test_conversion_rate_with_window__plan0.sql | 10 +++++----- ...onversion_rate_with_window__plan0_optimized.sql | 10 +++++----- ...st_conversion_count_with_no_group_by__plan0.sql | 6 +++--- ...ion_count_with_no_group_by__plan0_optimized.sql | 6 +++--- ...n_to_timespine_and_fill_nulls_with_0__plan0.sql | 8 ++++---- ...pine_and_fill_nulls_with_0__plan0_optimized.sql | 8 ++++---- .../Redshift/test_conversion_rate__plan0.sql | 8 ++++---- .../test_conversion_rate__plan0_optimized.sql | 8 ++++---- ...ersion_rate_with_constant_properties__plan0.sql | 12 ++++++------ ...e_with_constant_properties__plan0_optimized.sql | 12 ++++++------ ...est_conversion_rate_with_no_group_by__plan0.sql | 6 +++--- ...sion_rate_with_no_group_by__plan0_optimized.sql | 6 +++--- .../test_conversion_rate_with_window__plan0.sql | 10 +++++----- ...onversion_rate_with_window__plan0_optimized.sql | 10 +++++----- ...st_conversion_count_with_no_group_by__plan0.sql | 6 +++--- ...ion_count_with_no_group_by__plan0_optimized.sql | 6 +++--- ...n_to_timespine_and_fill_nulls_with_0__plan0.sql | 8 ++++---- ...pine_and_fill_nulls_with_0__plan0_optimized.sql | 8 ++++---- .../Snowflake/test_conversion_rate__plan0.sql | 8 ++++---- .../test_conversion_rate__plan0_optimized.sql | 8 ++++---- ...ersion_rate_with_constant_properties__plan0.sql | 12 ++++++------ ...e_with_constant_properties__plan0_optimized.sql | 12 ++++++------ ...est_conversion_rate_with_no_group_by__plan0.sql | 6 +++--- ...sion_rate_with_no_group_by__plan0_optimized.sql | 6 +++--- .../test_conversion_rate_with_window__plan0.sql | 10 +++++----- ...onversion_rate_with_window__plan0_optimized.sql | 10 +++++----- ...st_conversion_count_with_no_group_by__plan0.sql | 6 +++--- ...ion_count_with_no_group_by__plan0_optimized.sql | 6 +++--- ...n_to_timespine_and_fill_nulls_with_0__plan0.sql | 8 ++++---- ...pine_and_fill_nulls_with_0__plan0_optimized.sql | 8 ++++---- .../Trino/test_conversion_rate__plan0.sql | 8 ++++---- .../test_conversion_rate__plan0_optimized.sql | 8 ++++---- ...ersion_rate_with_constant_properties__plan0.sql | 12 ++++++------ ...e_with_constant_properties__plan0_optimized.sql | 12 ++++++------ ...est_conversion_rate_with_no_group_by__plan0.sql | 6 +++--- ...sion_rate_with_no_group_by__plan0_optimized.sql | 6 +++--- .../test_conversion_rate_with_window__plan0.sql | 10 +++++----- ...onversion_rate_with_window__plan0_optimized.sql | 10 +++++----- .../test_filter_with_conversion_metric__plan0.sql | 6 +++--- ...ter_with_conversion_metric__plan0_optimized.sql | 6 +++--- .../test_filter_with_conversion_metric__plan0.sql | 6 +++--- ...ter_with_conversion_metric__plan0_optimized.sql | 6 +++--- .../test_filter_with_conversion_metric__plan0.sql | 6 +++--- ...ter_with_conversion_metric__plan0_optimized.sql | 6 +++--- .../test_filter_with_conversion_metric__plan0.sql | 6 +++--- ...ter_with_conversion_metric__plan0_optimized.sql | 6 +++--- .../test_filter_with_conversion_metric__plan0.sql | 6 +++--- ...ter_with_conversion_metric__plan0_optimized.sql | 6 +++--- .../test_filter_with_conversion_metric__plan0.sql | 6 +++--- ...ter_with_conversion_metric__plan0_optimized.sql | 6 +++--- .../test_filter_with_conversion_metric__plan0.sql | 6 +++--- ...ter_with_conversion_metric__plan0_optimized.sql | 6 +++--- .../test_window_function_expr__rendered_sql.txt | 14 +++++++------- 169 files changed, 707 insertions(+), 707 deletions(-) diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric__plan0.sql index 3d2de6a9dd..fb505c5256 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric__plan0.sql @@ -130,7 +130,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -138,7 +138,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -146,7 +146,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -154,7 +154,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric__plan0_optimized.sql index 8cf7b74bb6..14790809c8 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric__plan0_optimized.sql @@ -37,7 +37,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -45,7 +45,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_categorical_filter__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_categorical_filter__plan0.sql index fa20a4890f..55ec032ba4 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_categorical_filter__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_categorical_filter__plan0.sql @@ -139,7 +139,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_7.visit__referrer_id) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -155,7 +155,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -163,7 +163,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -171,7 +171,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_categorical_filter__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_categorical_filter__plan0_optimized.sql index cf990757b6..acfdeb4045 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_categorical_filter__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_categorical_filter__plan0_optimized.sql @@ -43,7 +43,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -51,7 +51,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_23.visit__referrer_id) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -67,7 +67,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -75,7 +75,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_time_constraint__plan0.sql index 1a1dcdd800..bdf526d69a 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_time_constraint__plan0.sql @@ -176,7 +176,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_13.visits) OVER ( + FIRST_VALUE(subq_13.visits) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -184,7 +184,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_13.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_13.visit__referrer_id) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -192,7 +192,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_13.ds__day) OVER ( + , FIRST_VALUE(subq_13.ds__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -200,7 +200,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_13.user) OVER ( + , FIRST_VALUE(subq_13.user) OVER ( PARTITION BY subq_16.user , subq_16.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_time_constraint__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_time_constraint__plan0_optimized.sql index bf18f3b8a3..864196cfe4 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_time_constraint__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_time_constraint__plan0_optimized.sql @@ -39,7 +39,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_31.visits) OVER ( + FIRST_VALUE(subq_31.visits) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -47,7 +47,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_31.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_31.visit__referrer_id) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -55,7 +55,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_31.ds__day) OVER ( + , FIRST_VALUE(subq_31.ds__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -63,7 +63,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_31.user) OVER ( + , FIRST_VALUE(subq_31.user) OVER ( PARTITION BY subq_34.user , subq_34.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_window__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_window__plan0.sql index 8d811e2743..e624deff37 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_window__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_window__plan0.sql @@ -130,7 +130,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -138,7 +138,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -146,7 +146,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -154,7 +154,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_window__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_window__plan0_optimized.sql index 2431e36973..7060991a4d 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_window__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_window__plan0_optimized.sql @@ -37,7 +37,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -45,7 +45,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_window_and_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_window_and_time_constraint__plan0.sql index 1acc95787d..2847baa3cf 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_window_and_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_window_and_time_constraint__plan0.sql @@ -185,7 +185,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_13.visits) OVER ( + FIRST_VALUE(subq_13.visits) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -193,7 +193,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_13.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_13.visit__referrer_id) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -201,7 +201,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_13.ds__day) OVER ( + , FIRST_VALUE(subq_13.ds__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -209,7 +209,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_13.metric_time__day) OVER ( + , FIRST_VALUE(subq_13.metric_time__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -217,7 +217,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_13.user) OVER ( + , FIRST_VALUE(subq_13.user) OVER ( PARTITION BY subq_16.user , subq_16.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql index 17ae80eefd..60c1e44503 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/BigQuery/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql @@ -45,7 +45,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_31.visits) OVER ( + FIRST_VALUE(subq_31.visits) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_31.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_31.visit__referrer_id) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_31.ds__day) OVER ( + , FIRST_VALUE(subq_31.ds__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -69,7 +69,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_31.metric_time__day) OVER ( + , FIRST_VALUE(subq_31.metric_time__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -77,7 +77,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_31.user) OVER ( + , FIRST_VALUE(subq_31.user) OVER ( PARTITION BY subq_34.user , subq_34.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric__plan0.sql index b4e5a6c463..9e0429d976 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric__plan0.sql @@ -130,7 +130,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -138,7 +138,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -146,7 +146,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -154,7 +154,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric__plan0_optimized.sql index 91c160f0b0..2ca2302ef6 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric__plan0_optimized.sql @@ -37,7 +37,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -45,7 +45,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_categorical_filter__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_categorical_filter__plan0.sql index bf30d1b786..dc3f01d3a7 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_categorical_filter__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_categorical_filter__plan0.sql @@ -139,7 +139,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_7.visit__referrer_id) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -155,7 +155,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -163,7 +163,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -171,7 +171,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_categorical_filter__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_categorical_filter__plan0_optimized.sql index 46eb6a9d43..2d192fb79d 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_categorical_filter__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_categorical_filter__plan0_optimized.sql @@ -43,7 +43,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -51,7 +51,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_23.visit__referrer_id) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -67,7 +67,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -75,7 +75,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_time_constraint__plan0.sql index abd7eb5465..f3fa4bb74f 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_time_constraint__plan0.sql @@ -176,7 +176,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_13.visits) OVER ( + FIRST_VALUE(subq_13.visits) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -184,7 +184,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_13.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_13.visit__referrer_id) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -192,7 +192,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_13.ds__day) OVER ( + , FIRST_VALUE(subq_13.ds__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -200,7 +200,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_13.user) OVER ( + , FIRST_VALUE(subq_13.user) OVER ( PARTITION BY subq_16.user , subq_16.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_time_constraint__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_time_constraint__plan0_optimized.sql index b9cef550aa..04abb3d277 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_time_constraint__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_time_constraint__plan0_optimized.sql @@ -39,7 +39,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_31.visits) OVER ( + FIRST_VALUE(subq_31.visits) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -47,7 +47,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_31.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_31.visit__referrer_id) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -55,7 +55,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_31.ds__day) OVER ( + , FIRST_VALUE(subq_31.ds__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -63,7 +63,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_31.user) OVER ( + , FIRST_VALUE(subq_31.user) OVER ( PARTITION BY subq_34.user , subq_34.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_window__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_window__plan0.sql index fc5e6d8277..6948316384 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_window__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_window__plan0.sql @@ -130,7 +130,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -138,7 +138,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -146,7 +146,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -154,7 +154,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_window__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_window__plan0_optimized.sql index e45ffc14a6..2a6d80d278 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_window__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_window__plan0_optimized.sql @@ -37,7 +37,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -45,7 +45,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_window_and_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_window_and_time_constraint__plan0.sql index 334aa030cf..0f5a33044c 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_window_and_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_window_and_time_constraint__plan0.sql @@ -185,7 +185,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_13.visits) OVER ( + FIRST_VALUE(subq_13.visits) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -193,7 +193,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_13.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_13.visit__referrer_id) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -201,7 +201,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_13.ds__day) OVER ( + , FIRST_VALUE(subq_13.ds__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -209,7 +209,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_13.metric_time__day) OVER ( + , FIRST_VALUE(subq_13.metric_time__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -217,7 +217,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_13.user) OVER ( + , FIRST_VALUE(subq_13.user) OVER ( PARTITION BY subq_16.user , subq_16.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql index edb59573fd..c3af34cba3 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Databricks/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql @@ -45,7 +45,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_31.visits) OVER ( + FIRST_VALUE(subq_31.visits) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_31.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_31.visit__referrer_id) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_31.ds__day) OVER ( + , FIRST_VALUE(subq_31.ds__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -69,7 +69,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_31.metric_time__day) OVER ( + , FIRST_VALUE(subq_31.metric_time__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -77,7 +77,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_31.user) OVER ( + , FIRST_VALUE(subq_31.user) OVER ( PARTITION BY subq_34.user , subq_34.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric__plan0.sql index e0da220e27..58ba934733 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric__plan0.sql @@ -130,7 +130,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -138,7 +138,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -146,7 +146,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -154,7 +154,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric__plan0_optimized.sql index 47741c1872..8a91583adb 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric__plan0_optimized.sql @@ -37,7 +37,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -45,7 +45,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_categorical_filter__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_categorical_filter__plan0.sql index c381898ab3..fc3d6d87f5 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_categorical_filter__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_categorical_filter__plan0.sql @@ -139,7 +139,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_7.visit__referrer_id) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -155,7 +155,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -163,7 +163,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -171,7 +171,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_categorical_filter__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_categorical_filter__plan0_optimized.sql index bcaf6d1f75..6c179cce7f 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_categorical_filter__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_categorical_filter__plan0_optimized.sql @@ -43,7 +43,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -51,7 +51,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_23.visit__referrer_id) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -67,7 +67,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -75,7 +75,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_time_constraint__plan0.sql index 7ea37e2248..2aa8759354 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_time_constraint__plan0.sql @@ -176,7 +176,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_13.visits) OVER ( + FIRST_VALUE(subq_13.visits) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -184,7 +184,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_13.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_13.visit__referrer_id) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -192,7 +192,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_13.ds__day) OVER ( + , FIRST_VALUE(subq_13.ds__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -200,7 +200,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_13.user) OVER ( + , FIRST_VALUE(subq_13.user) OVER ( PARTITION BY subq_16.user , subq_16.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_time_constraint__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_time_constraint__plan0_optimized.sql index 6e26750751..b73ab97bae 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_time_constraint__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_time_constraint__plan0_optimized.sql @@ -39,7 +39,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_31.visits) OVER ( + FIRST_VALUE(subq_31.visits) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -47,7 +47,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_31.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_31.visit__referrer_id) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -55,7 +55,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_31.ds__day) OVER ( + , FIRST_VALUE(subq_31.ds__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -63,7 +63,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_31.user) OVER ( + , FIRST_VALUE(subq_31.user) OVER ( PARTITION BY subq_34.user , subq_34.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_window__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_window__plan0.sql index 56bba9dab9..f4fe4a5c1a 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_window__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_window__plan0.sql @@ -130,7 +130,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -138,7 +138,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -146,7 +146,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -154,7 +154,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_window__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_window__plan0_optimized.sql index df8bba6a55..82f1fe235c 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_window__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_window__plan0_optimized.sql @@ -37,7 +37,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -45,7 +45,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_window_and_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_window_and_time_constraint__plan0.sql index c2d106c4f7..6971a5e650 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_window_and_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_window_and_time_constraint__plan0.sql @@ -185,7 +185,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_13.visits) OVER ( + FIRST_VALUE(subq_13.visits) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -193,7 +193,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_13.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_13.visit__referrer_id) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -201,7 +201,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_13.ds__day) OVER ( + , FIRST_VALUE(subq_13.ds__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -209,7 +209,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_13.metric_time__day) OVER ( + , FIRST_VALUE(subq_13.metric_time__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -217,7 +217,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_13.user) OVER ( + , FIRST_VALUE(subq_13.user) OVER ( PARTITION BY subq_16.user , subq_16.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql index 075cabfbf2..776b448a5b 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/DuckDB/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql @@ -45,7 +45,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_31.visits) OVER ( + FIRST_VALUE(subq_31.visits) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_31.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_31.visit__referrer_id) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_31.ds__day) OVER ( + , FIRST_VALUE(subq_31.ds__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -69,7 +69,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_31.metric_time__day) OVER ( + , FIRST_VALUE(subq_31.metric_time__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -77,7 +77,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_31.user) OVER ( + , FIRST_VALUE(subq_31.user) OVER ( PARTITION BY subq_34.user , subq_34.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric__plan0.sql index 34510c1ee9..45bcc25f40 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric__plan0.sql @@ -130,7 +130,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -138,7 +138,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -146,7 +146,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -154,7 +154,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric__plan0_optimized.sql index 8f18aa1ad7..f729a92ce9 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric__plan0_optimized.sql @@ -37,7 +37,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -45,7 +45,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_categorical_filter__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_categorical_filter__plan0.sql index 04384556ad..7511fe9e6c 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_categorical_filter__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_categorical_filter__plan0.sql @@ -139,7 +139,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_7.visit__referrer_id) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -155,7 +155,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -163,7 +163,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -171,7 +171,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_categorical_filter__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_categorical_filter__plan0_optimized.sql index 61872b05cc..b06e52d6cf 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_categorical_filter__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_categorical_filter__plan0_optimized.sql @@ -43,7 +43,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -51,7 +51,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_23.visit__referrer_id) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -67,7 +67,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -75,7 +75,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_time_constraint__plan0.sql index f41b943ee9..e31ef8a72f 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_time_constraint__plan0.sql @@ -176,7 +176,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_13.visits) OVER ( + FIRST_VALUE(subq_13.visits) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -184,7 +184,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_13.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_13.visit__referrer_id) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -192,7 +192,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_13.ds__day) OVER ( + , FIRST_VALUE(subq_13.ds__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -200,7 +200,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_13.user) OVER ( + , FIRST_VALUE(subq_13.user) OVER ( PARTITION BY subq_16.user , subq_16.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_time_constraint__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_time_constraint__plan0_optimized.sql index d1e2485393..32214fa4f0 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_time_constraint__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_time_constraint__plan0_optimized.sql @@ -39,7 +39,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_31.visits) OVER ( + FIRST_VALUE(subq_31.visits) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -47,7 +47,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_31.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_31.visit__referrer_id) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -55,7 +55,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_31.ds__day) OVER ( + , FIRST_VALUE(subq_31.ds__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -63,7 +63,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_31.user) OVER ( + , FIRST_VALUE(subq_31.user) OVER ( PARTITION BY subq_34.user , subq_34.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_window__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_window__plan0.sql index bc9e1d62f5..f88c4a8812 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_window__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_window__plan0.sql @@ -130,7 +130,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -138,7 +138,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -146,7 +146,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -154,7 +154,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_window__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_window__plan0_optimized.sql index 30b04d6196..94618c5f72 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_window__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_window__plan0_optimized.sql @@ -37,7 +37,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -45,7 +45,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_window_and_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_window_and_time_constraint__plan0.sql index df75c7f9fb..4eb60f719f 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_window_and_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_window_and_time_constraint__plan0.sql @@ -185,7 +185,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_13.visits) OVER ( + FIRST_VALUE(subq_13.visits) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -193,7 +193,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_13.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_13.visit__referrer_id) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -201,7 +201,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_13.ds__day) OVER ( + , FIRST_VALUE(subq_13.ds__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -209,7 +209,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_13.metric_time__day) OVER ( + , FIRST_VALUE(subq_13.metric_time__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -217,7 +217,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_13.user) OVER ( + , FIRST_VALUE(subq_13.user) OVER ( PARTITION BY subq_16.user , subq_16.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql index d6d757e435..94a044550c 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Postgres/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql @@ -45,7 +45,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_31.visits) OVER ( + FIRST_VALUE(subq_31.visits) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_31.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_31.visit__referrer_id) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_31.ds__day) OVER ( + , FIRST_VALUE(subq_31.ds__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -69,7 +69,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_31.metric_time__day) OVER ( + , FIRST_VALUE(subq_31.metric_time__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -77,7 +77,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_31.user) OVER ( + , FIRST_VALUE(subq_31.user) OVER ( PARTITION BY subq_34.user , subq_34.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric__plan0.sql index ae4184f3ac..2c457d1da7 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric__plan0.sql @@ -130,7 +130,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -138,7 +138,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -146,7 +146,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -154,7 +154,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric__plan0_optimized.sql index 481b7de841..06f8ca6cc6 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric__plan0_optimized.sql @@ -37,7 +37,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -45,7 +45,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_categorical_filter__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_categorical_filter__plan0.sql index 938052511a..6497c3264f 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_categorical_filter__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_categorical_filter__plan0.sql @@ -139,7 +139,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_7.visit__referrer_id) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -155,7 +155,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -163,7 +163,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -171,7 +171,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_categorical_filter__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_categorical_filter__plan0_optimized.sql index a75a657c0e..af0cf0df22 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_categorical_filter__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_categorical_filter__plan0_optimized.sql @@ -43,7 +43,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -51,7 +51,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_23.visit__referrer_id) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -67,7 +67,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -75,7 +75,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_time_constraint__plan0.sql index 756a827b2b..ee9e4efa51 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_time_constraint__plan0.sql @@ -176,7 +176,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_13.visits) OVER ( + FIRST_VALUE(subq_13.visits) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -184,7 +184,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_13.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_13.visit__referrer_id) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -192,7 +192,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_13.ds__day) OVER ( + , FIRST_VALUE(subq_13.ds__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -200,7 +200,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_13.user) OVER ( + , FIRST_VALUE(subq_13.user) OVER ( PARTITION BY subq_16.user , subq_16.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_time_constraint__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_time_constraint__plan0_optimized.sql index a7eb74d2bc..2d16596da9 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_time_constraint__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_time_constraint__plan0_optimized.sql @@ -39,7 +39,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_31.visits) OVER ( + FIRST_VALUE(subq_31.visits) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -47,7 +47,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_31.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_31.visit__referrer_id) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -55,7 +55,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_31.ds__day) OVER ( + , FIRST_VALUE(subq_31.ds__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -63,7 +63,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_31.user) OVER ( + , FIRST_VALUE(subq_31.user) OVER ( PARTITION BY subq_34.user , subq_34.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_window__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_window__plan0.sql index e3fa21809d..f5d8a8c3ff 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_window__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_window__plan0.sql @@ -130,7 +130,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -138,7 +138,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -146,7 +146,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -154,7 +154,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_window__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_window__plan0_optimized.sql index a59248e42d..50f5012370 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_window__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_window__plan0_optimized.sql @@ -37,7 +37,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -45,7 +45,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_window_and_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_window_and_time_constraint__plan0.sql index a52fd49abb..3e0bb9b0ac 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_window_and_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_window_and_time_constraint__plan0.sql @@ -185,7 +185,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_13.visits) OVER ( + FIRST_VALUE(subq_13.visits) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -193,7 +193,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_13.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_13.visit__referrer_id) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -201,7 +201,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_13.ds__day) OVER ( + , FIRST_VALUE(subq_13.ds__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -209,7 +209,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_13.metric_time__day) OVER ( + , FIRST_VALUE(subq_13.metric_time__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -217,7 +217,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_13.user) OVER ( + , FIRST_VALUE(subq_13.user) OVER ( PARTITION BY subq_16.user , subq_16.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql index 45dc1e63d6..b42a94d28b 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Redshift/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql @@ -45,7 +45,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_31.visits) OVER ( + FIRST_VALUE(subq_31.visits) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_31.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_31.visit__referrer_id) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_31.ds__day) OVER ( + , FIRST_VALUE(subq_31.ds__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -69,7 +69,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_31.metric_time__day) OVER ( + , FIRST_VALUE(subq_31.metric_time__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -77,7 +77,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_31.user) OVER ( + , FIRST_VALUE(subq_31.user) OVER ( PARTITION BY subq_34.user , subq_34.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric__plan0.sql index 1d996f07ee..5523bdba87 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric__plan0.sql @@ -130,7 +130,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -138,7 +138,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -146,7 +146,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -154,7 +154,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric__plan0_optimized.sql index 986a1429eb..7e54f9421a 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric__plan0_optimized.sql @@ -37,7 +37,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -45,7 +45,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_categorical_filter__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_categorical_filter__plan0.sql index 1d36cea083..c834aff166 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_categorical_filter__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_categorical_filter__plan0.sql @@ -139,7 +139,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_7.visit__referrer_id) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -155,7 +155,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -163,7 +163,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -171,7 +171,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_categorical_filter__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_categorical_filter__plan0_optimized.sql index ccff7e1173..9abb791996 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_categorical_filter__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_categorical_filter__plan0_optimized.sql @@ -43,7 +43,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -51,7 +51,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_23.visit__referrer_id) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -67,7 +67,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -75,7 +75,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_time_constraint__plan0.sql index fef0bde96e..58f3c05da5 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_time_constraint__plan0.sql @@ -176,7 +176,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_13.visits) OVER ( + FIRST_VALUE(subq_13.visits) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -184,7 +184,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_13.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_13.visit__referrer_id) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -192,7 +192,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_13.ds__day) OVER ( + , FIRST_VALUE(subq_13.ds__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -200,7 +200,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_13.user) OVER ( + , FIRST_VALUE(subq_13.user) OVER ( PARTITION BY subq_16.user , subq_16.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_time_constraint__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_time_constraint__plan0_optimized.sql index 2b174bac0b..7e19e7c9c2 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_time_constraint__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_time_constraint__plan0_optimized.sql @@ -39,7 +39,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_31.visits) OVER ( + FIRST_VALUE(subq_31.visits) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -47,7 +47,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_31.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_31.visit__referrer_id) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -55,7 +55,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_31.ds__day) OVER ( + , FIRST_VALUE(subq_31.ds__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -63,7 +63,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_31.user) OVER ( + , FIRST_VALUE(subq_31.user) OVER ( PARTITION BY subq_34.user , subq_34.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_window__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_window__plan0.sql index 0639bf329d..3187ba717e 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_window__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_window__plan0.sql @@ -130,7 +130,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -138,7 +138,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -146,7 +146,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -154,7 +154,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_window__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_window__plan0_optimized.sql index ba1f391a5e..63b4b1290d 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_window__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_window__plan0_optimized.sql @@ -37,7 +37,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -45,7 +45,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_window_and_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_window_and_time_constraint__plan0.sql index b06093216b..49e682d715 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_window_and_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_window_and_time_constraint__plan0.sql @@ -185,7 +185,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_13.visits) OVER ( + FIRST_VALUE(subq_13.visits) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -193,7 +193,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_13.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_13.visit__referrer_id) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -201,7 +201,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_13.ds__day) OVER ( + , FIRST_VALUE(subq_13.ds__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -209,7 +209,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_13.metric_time__day) OVER ( + , FIRST_VALUE(subq_13.metric_time__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -217,7 +217,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_13.user) OVER ( + , FIRST_VALUE(subq_13.user) OVER ( PARTITION BY subq_16.user , subq_16.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql index f60942e548..ae1f87886d 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Snowflake/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql @@ -45,7 +45,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_31.visits) OVER ( + FIRST_VALUE(subq_31.visits) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_31.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_31.visit__referrer_id) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_31.ds__day) OVER ( + , FIRST_VALUE(subq_31.ds__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -69,7 +69,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_31.metric_time__day) OVER ( + , FIRST_VALUE(subq_31.metric_time__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -77,7 +77,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_31.user) OVER ( + , FIRST_VALUE(subq_31.user) OVER ( PARTITION BY subq_34.user , subq_34.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric__plan0.sql index 7630d246ae..b00bd24e15 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric__plan0.sql @@ -130,7 +130,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -138,7 +138,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -146,7 +146,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -154,7 +154,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric__plan0_optimized.sql index 6894661a08..9fe6b6c32f 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric__plan0_optimized.sql @@ -37,7 +37,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -45,7 +45,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_categorical_filter__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_categorical_filter__plan0.sql index fda80247b6..32ba655478 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_categorical_filter__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_categorical_filter__plan0.sql @@ -139,7 +139,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_7.visit__referrer_id) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -155,7 +155,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -163,7 +163,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -171,7 +171,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_categorical_filter__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_categorical_filter__plan0_optimized.sql index 65e3e94782..4485f78bd4 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_categorical_filter__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_categorical_filter__plan0_optimized.sql @@ -43,7 +43,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -51,7 +51,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_23.visit__referrer_id) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -67,7 +67,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -75,7 +75,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_time_constraint__plan0.sql index 928fef3d5f..902ef80a1c 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_time_constraint__plan0.sql @@ -176,7 +176,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_13.visits) OVER ( + FIRST_VALUE(subq_13.visits) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -184,7 +184,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_13.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_13.visit__referrer_id) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -192,7 +192,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_13.ds__day) OVER ( + , FIRST_VALUE(subq_13.ds__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -200,7 +200,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_13.user) OVER ( + , FIRST_VALUE(subq_13.user) OVER ( PARTITION BY subq_16.user , subq_16.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_time_constraint__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_time_constraint__plan0_optimized.sql index c9a996be94..c7f2bd6fe9 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_time_constraint__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_time_constraint__plan0_optimized.sql @@ -39,7 +39,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_31.visits) OVER ( + FIRST_VALUE(subq_31.visits) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -47,7 +47,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_31.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_31.visit__referrer_id) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -55,7 +55,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_31.ds__day) OVER ( + , FIRST_VALUE(subq_31.ds__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -63,7 +63,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_31.user) OVER ( + , FIRST_VALUE(subq_31.user) OVER ( PARTITION BY subq_34.user , subq_34.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_window__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_window__plan0.sql index 17c1f0dadb..e11187b2a3 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_window__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_window__plan0.sql @@ -130,7 +130,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_7.visits) OVER ( + FIRST_VALUE(subq_7.visits) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -138,7 +138,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_7.ds__day) OVER ( + , FIRST_VALUE(subq_7.ds__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -146,7 +146,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_7.metric_time__day) OVER ( + , FIRST_VALUE(subq_7.metric_time__day) OVER ( PARTITION BY subq_10.user , subq_10.ds__day @@ -154,7 +154,7 @@ FROM ( ORDER BY subq_7.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_7.user) OVER ( + , FIRST_VALUE(subq_7.user) OVER ( PARTITION BY subq_10.user , subq_10.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_window__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_window__plan0_optimized.sql index 630911bd4f..818bd3b5df 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_window__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_window__plan0_optimized.sql @@ -37,7 +37,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_23.visits) OVER ( + FIRST_VALUE(subq_23.visits) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -45,7 +45,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_23.ds__day) OVER ( + , FIRST_VALUE(subq_23.ds__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_23.metric_time__day) OVER ( + , FIRST_VALUE(subq_23.metric_time__day) OVER ( PARTITION BY subq_26.user , subq_26.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_23.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_23.user) OVER ( + , FIRST_VALUE(subq_23.user) OVER ( PARTITION BY subq_26.user , subq_26.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_window_and_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_window_and_time_constraint__plan0.sql index 8f4d837d95..9da8ea4608 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_window_and_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_window_and_time_constraint__plan0.sql @@ -185,7 +185,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_13.visits) OVER ( + FIRST_VALUE(subq_13.visits) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -193,7 +193,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_13.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_13.visit__referrer_id) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -201,7 +201,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_13.ds__day) OVER ( + , FIRST_VALUE(subq_13.ds__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -209,7 +209,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_13.metric_time__day) OVER ( + , FIRST_VALUE(subq_13.metric_time__day) OVER ( PARTITION BY subq_16.user , subq_16.ds__day @@ -217,7 +217,7 @@ FROM ( ORDER BY subq_13.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_13.user) OVER ( + , FIRST_VALUE(subq_13.user) OVER ( PARTITION BY subq_16.user , subq_16.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql index ba03cc4867..fbb04e53b8 100644 --- a/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metric_rendering.py/SqlQueryPlan/Trino/test_conversion_metric_with_window_and_time_constraint__plan0_optimized.sql @@ -45,7 +45,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_31.visits) OVER ( + FIRST_VALUE(subq_31.visits) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -53,7 +53,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_31.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_31.visit__referrer_id) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -61,7 +61,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_31.ds__day) OVER ( + , FIRST_VALUE(subq_31.ds__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -69,7 +69,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_31.metric_time__day) OVER ( + , FIRST_VALUE(subq_31.metric_time__day) OVER ( PARTITION BY subq_34.user , subq_34.ds__day @@ -77,7 +77,7 @@ FROM ( ORDER BY subq_31.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_31.user) OVER ( + , FIRST_VALUE(subq_31.user) OVER ( PARTITION BY subq_34.user , subq_34.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_count_with_no_group_by__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_count_with_no_group_by__plan0.sql index 62bc90317e..b8c59a58dc 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_count_with_no_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_count_with_no_group_by__plan0.sql @@ -114,7 +114,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -122,7 +122,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -130,7 +130,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_count_with_no_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_count_with_no_group_by__plan0_optimized.sql index b277bee163..b7005aac3b 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_count_with_no_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_count_with_no_group_by__plan0_optimized.sql @@ -20,7 +20,7 @@ CROSS JOIN ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -28,7 +28,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -36,7 +36,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql index 32577b7a84..a0b4a9d875 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql @@ -148,7 +148,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_9.visits) OVER ( + FIRST_VALUE(subq_9.visits) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -156,7 +156,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_9.ds__day) OVER ( + , FIRST_VALUE(subq_9.ds__day) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -164,7 +164,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_9.metric_time__day) OVER ( + , FIRST_VALUE(subq_9.metric_time__day) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -172,7 +172,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_9.user) OVER ( + , FIRST_VALUE(subq_9.user) OVER ( PARTITION BY subq_12.user , subq_12.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql index 04ef683a5d..403fd7efdf 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql @@ -50,7 +50,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_30.visits) OVER ( + FIRST_VALUE(subq_30.visits) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -58,7 +58,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_30.ds__day) OVER ( + , FIRST_VALUE(subq_30.ds__day) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -66,7 +66,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_30.metric_time__day) OVER ( + , FIRST_VALUE(subq_30.metric_time__day) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -74,7 +74,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_30.user) OVER ( + , FIRST_VALUE(subq_30.user) OVER ( PARTITION BY subq_33.user , subq_33.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate__plan0.sql index 297cc0c6ea..3ddde06750 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate__plan0.sql @@ -123,7 +123,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -131,7 +131,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -139,7 +139,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate__plan0_optimized.sql index 86ef055208..6fa8caf5e1 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate__plan0_optimized.sql @@ -35,7 +35,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -43,7 +43,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -51,7 +51,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_constant_properties__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_constant_properties__plan0.sql index d552d66a9b..a105c1b34e 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_constant_properties__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_constant_properties__plan0.sql @@ -132,7 +132,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -141,7 +141,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -150,7 +150,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -159,7 +159,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.metric_time__day) OVER ( + , FIRST_VALUE(subq_6.metric_time__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -168,7 +168,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -177,7 +177,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS user - , first_value(subq_6.session) OVER ( + , FIRST_VALUE(subq_6.session) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_constant_properties__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_constant_properties__plan0_optimized.sql index b6de87e9d0..6a3fb65db7 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_constant_properties__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_constant_properties__plan0_optimized.sql @@ -41,7 +41,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -50,7 +50,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -68,7 +68,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.metric_time__day) OVER ( + , FIRST_VALUE(subq_21.metric_time__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -77,7 +77,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -86,7 +86,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS user - , first_value(subq_21.session) OVER ( + , FIRST_VALUE(subq_21.session) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_no_group_by__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_no_group_by__plan0.sql index c7e426d48c..c7a51745ee 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_no_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_no_group_by__plan0.sql @@ -114,7 +114,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -122,7 +122,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -130,7 +130,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_no_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_no_group_by__plan0_optimized.sql index 600310bc17..e1a4c7bfac 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_no_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_no_group_by__plan0_optimized.sql @@ -20,7 +20,7 @@ CROSS JOIN ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -28,7 +28,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -36,7 +36,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_window__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_window__plan0.sql index 702e8c2c6f..f831d43cf0 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_window__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_window__plan0.sql @@ -131,7 +131,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -139,7 +139,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -155,7 +155,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.metric_time__day) OVER ( + , FIRST_VALUE(subq_6.metric_time__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -163,7 +163,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_window__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_window__plan0_optimized.sql index 478eb0b07f..064e73607d 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_window__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/BigQuery/test_conversion_rate_with_window__plan0_optimized.sql @@ -41,7 +41,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -49,7 +49,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -57,7 +57,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -65,7 +65,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.metric_time__day) OVER ( + , FIRST_VALUE(subq_21.metric_time__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -73,7 +73,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_count_with_no_group_by__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_count_with_no_group_by__plan0.sql index 6ce0574b91..af4d846d58 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_count_with_no_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_count_with_no_group_by__plan0.sql @@ -114,7 +114,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -122,7 +122,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -130,7 +130,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_count_with_no_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_count_with_no_group_by__plan0_optimized.sql index a1df596f1b..b639d3ee1f 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_count_with_no_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_count_with_no_group_by__plan0_optimized.sql @@ -20,7 +20,7 @@ CROSS JOIN ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -28,7 +28,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -36,7 +36,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql index 6eda3a95ef..3f7a01455e 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql @@ -148,7 +148,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_9.visits) OVER ( + FIRST_VALUE(subq_9.visits) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -156,7 +156,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_9.ds__day) OVER ( + , FIRST_VALUE(subq_9.ds__day) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -164,7 +164,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_9.metric_time__day) OVER ( + , FIRST_VALUE(subq_9.metric_time__day) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -172,7 +172,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_9.user) OVER ( + , FIRST_VALUE(subq_9.user) OVER ( PARTITION BY subq_12.user , subq_12.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql index 0cf7f15c56..9fe736bed1 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql @@ -50,7 +50,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_30.visits) OVER ( + FIRST_VALUE(subq_30.visits) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -58,7 +58,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_30.ds__day) OVER ( + , FIRST_VALUE(subq_30.ds__day) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -66,7 +66,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_30.metric_time__day) OVER ( + , FIRST_VALUE(subq_30.metric_time__day) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -74,7 +74,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_30.user) OVER ( + , FIRST_VALUE(subq_30.user) OVER ( PARTITION BY subq_33.user , subq_33.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate__plan0.sql index ae58d606ae..3c6d864256 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate__plan0.sql @@ -123,7 +123,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -131,7 +131,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -139,7 +139,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate__plan0_optimized.sql index 41a5f37b69..8690da657b 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate__plan0_optimized.sql @@ -35,7 +35,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -43,7 +43,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -51,7 +51,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_constant_properties__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_constant_properties__plan0.sql index 47a7988ffa..fae17b48cb 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_constant_properties__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_constant_properties__plan0.sql @@ -132,7 +132,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -141,7 +141,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -150,7 +150,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -159,7 +159,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.metric_time__day) OVER ( + , FIRST_VALUE(subq_6.metric_time__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -168,7 +168,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -177,7 +177,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS user - , first_value(subq_6.session) OVER ( + , FIRST_VALUE(subq_6.session) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_constant_properties__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_constant_properties__plan0_optimized.sql index 1d69fcd436..9244bd154b 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_constant_properties__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_constant_properties__plan0_optimized.sql @@ -41,7 +41,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -50,7 +50,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -68,7 +68,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.metric_time__day) OVER ( + , FIRST_VALUE(subq_21.metric_time__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -77,7 +77,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -86,7 +86,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS user - , first_value(subq_21.session) OVER ( + , FIRST_VALUE(subq_21.session) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_no_group_by__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_no_group_by__plan0.sql index d87cc4562e..41544be1ec 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_no_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_no_group_by__plan0.sql @@ -114,7 +114,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -122,7 +122,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -130,7 +130,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_no_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_no_group_by__plan0_optimized.sql index 8f48011f69..eb10541fdf 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_no_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_no_group_by__plan0_optimized.sql @@ -20,7 +20,7 @@ CROSS JOIN ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -28,7 +28,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -36,7 +36,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_window__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_window__plan0.sql index 1847a0e8e7..98e4c0bc1d 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_window__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_window__plan0.sql @@ -131,7 +131,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -139,7 +139,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -155,7 +155,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.metric_time__day) OVER ( + , FIRST_VALUE(subq_6.metric_time__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -163,7 +163,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_window__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_window__plan0_optimized.sql index 795bdb2270..f49e17ec49 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_window__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Databricks/test_conversion_rate_with_window__plan0_optimized.sql @@ -41,7 +41,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -49,7 +49,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -57,7 +57,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -65,7 +65,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.metric_time__day) OVER ( + , FIRST_VALUE(subq_21.metric_time__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -73,7 +73,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_count_with_no_group_by__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_count_with_no_group_by__plan0.sql index e06f9a8a32..f422bff535 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_count_with_no_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_count_with_no_group_by__plan0.sql @@ -114,7 +114,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -122,7 +122,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -130,7 +130,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_count_with_no_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_count_with_no_group_by__plan0_optimized.sql index e7d493a9b7..aa389bcb36 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_count_with_no_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_count_with_no_group_by__plan0_optimized.sql @@ -20,7 +20,7 @@ CROSS JOIN ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -28,7 +28,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -36,7 +36,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql index 72d424695b..7c2d19392d 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql @@ -148,7 +148,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_9.visits) OVER ( + FIRST_VALUE(subq_9.visits) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -156,7 +156,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_9.ds__day) OVER ( + , FIRST_VALUE(subq_9.ds__day) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -164,7 +164,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_9.metric_time__day) OVER ( + , FIRST_VALUE(subq_9.metric_time__day) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -172,7 +172,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_9.user) OVER ( + , FIRST_VALUE(subq_9.user) OVER ( PARTITION BY subq_12.user , subq_12.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql index 665471255a..7f85edf1f7 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql @@ -50,7 +50,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_30.visits) OVER ( + FIRST_VALUE(subq_30.visits) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -58,7 +58,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_30.ds__day) OVER ( + , FIRST_VALUE(subq_30.ds__day) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -66,7 +66,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_30.metric_time__day) OVER ( + , FIRST_VALUE(subq_30.metric_time__day) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -74,7 +74,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_30.user) OVER ( + , FIRST_VALUE(subq_30.user) OVER ( PARTITION BY subq_33.user , subq_33.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate__plan0.sql index 4613d438b5..8aa15de352 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate__plan0.sql @@ -123,7 +123,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -131,7 +131,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -139,7 +139,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate__plan0_optimized.sql index 19fdfbe32a..6463cfb87c 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate__plan0_optimized.sql @@ -35,7 +35,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -43,7 +43,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -51,7 +51,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_constant_properties__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_constant_properties__plan0.sql index 33dc4f9b7a..08eba32e5f 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_constant_properties__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_constant_properties__plan0.sql @@ -132,7 +132,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -141,7 +141,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -150,7 +150,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -159,7 +159,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.metric_time__day) OVER ( + , FIRST_VALUE(subq_6.metric_time__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -168,7 +168,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -177,7 +177,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS user - , first_value(subq_6.session) OVER ( + , FIRST_VALUE(subq_6.session) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_constant_properties__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_constant_properties__plan0_optimized.sql index 8be07dd643..7edeea3bea 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_constant_properties__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_constant_properties__plan0_optimized.sql @@ -41,7 +41,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -50,7 +50,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -68,7 +68,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.metric_time__day) OVER ( + , FIRST_VALUE(subq_21.metric_time__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -77,7 +77,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -86,7 +86,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS user - , first_value(subq_21.session) OVER ( + , FIRST_VALUE(subq_21.session) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_no_group_by__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_no_group_by__plan0.sql index 1e91b0108e..e435416417 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_no_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_no_group_by__plan0.sql @@ -114,7 +114,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -122,7 +122,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -130,7 +130,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_no_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_no_group_by__plan0_optimized.sql index c11ae0dad7..ca44562aee 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_no_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_no_group_by__plan0_optimized.sql @@ -20,7 +20,7 @@ CROSS JOIN ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -28,7 +28,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -36,7 +36,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_window__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_window__plan0.sql index 4623653075..66de5e3f1e 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_window__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_window__plan0.sql @@ -131,7 +131,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -139,7 +139,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -155,7 +155,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.metric_time__day) OVER ( + , FIRST_VALUE(subq_6.metric_time__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -163,7 +163,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_window__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_window__plan0_optimized.sql index eb226a432a..68448ef816 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_window__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/DuckDB/test_conversion_rate_with_window__plan0_optimized.sql @@ -41,7 +41,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -49,7 +49,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -57,7 +57,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -65,7 +65,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.metric_time__day) OVER ( + , FIRST_VALUE(subq_21.metric_time__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -73,7 +73,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_count_with_no_group_by__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_count_with_no_group_by__plan0.sql index 62ced3727a..24b2c8e7ab 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_count_with_no_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_count_with_no_group_by__plan0.sql @@ -114,7 +114,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -122,7 +122,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -130,7 +130,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_count_with_no_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_count_with_no_group_by__plan0_optimized.sql index e0d3855a96..843f6ba39a 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_count_with_no_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_count_with_no_group_by__plan0_optimized.sql @@ -20,7 +20,7 @@ CROSS JOIN ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -28,7 +28,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -36,7 +36,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql index c3c7b06781..6d8cb2fbe9 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql @@ -148,7 +148,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_9.visits) OVER ( + FIRST_VALUE(subq_9.visits) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -156,7 +156,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_9.ds__day) OVER ( + , FIRST_VALUE(subq_9.ds__day) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -164,7 +164,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_9.metric_time__day) OVER ( + , FIRST_VALUE(subq_9.metric_time__day) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -172,7 +172,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_9.user) OVER ( + , FIRST_VALUE(subq_9.user) OVER ( PARTITION BY subq_12.user , subq_12.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql index 992c9daa99..9c23363737 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql @@ -50,7 +50,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_30.visits) OVER ( + FIRST_VALUE(subq_30.visits) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -58,7 +58,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_30.ds__day) OVER ( + , FIRST_VALUE(subq_30.ds__day) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -66,7 +66,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_30.metric_time__day) OVER ( + , FIRST_VALUE(subq_30.metric_time__day) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -74,7 +74,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_30.user) OVER ( + , FIRST_VALUE(subq_30.user) OVER ( PARTITION BY subq_33.user , subq_33.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate__plan0.sql index 0f26837ce2..3aca516467 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate__plan0.sql @@ -123,7 +123,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -131,7 +131,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -139,7 +139,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate__plan0_optimized.sql index f5f8673a22..9427047fdc 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate__plan0_optimized.sql @@ -35,7 +35,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -43,7 +43,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -51,7 +51,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_constant_properties__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_constant_properties__plan0.sql index 23929f5df0..785c3b86ab 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_constant_properties__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_constant_properties__plan0.sql @@ -132,7 +132,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -141,7 +141,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -150,7 +150,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -159,7 +159,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.metric_time__day) OVER ( + , FIRST_VALUE(subq_6.metric_time__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -168,7 +168,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -177,7 +177,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS user - , first_value(subq_6.session) OVER ( + , FIRST_VALUE(subq_6.session) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_constant_properties__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_constant_properties__plan0_optimized.sql index 23fe69a0c6..075b6ec67a 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_constant_properties__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_constant_properties__plan0_optimized.sql @@ -41,7 +41,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -50,7 +50,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -68,7 +68,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.metric_time__day) OVER ( + , FIRST_VALUE(subq_21.metric_time__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -77,7 +77,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -86,7 +86,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS user - , first_value(subq_21.session) OVER ( + , FIRST_VALUE(subq_21.session) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_no_group_by__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_no_group_by__plan0.sql index 52be796545..ed9e3c724f 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_no_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_no_group_by__plan0.sql @@ -114,7 +114,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -122,7 +122,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -130,7 +130,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_no_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_no_group_by__plan0_optimized.sql index 5034745a0e..2d0c6a2ef6 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_no_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_no_group_by__plan0_optimized.sql @@ -20,7 +20,7 @@ CROSS JOIN ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -28,7 +28,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -36,7 +36,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_window__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_window__plan0.sql index 7fb6152866..f2423987b1 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_window__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_window__plan0.sql @@ -131,7 +131,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -139,7 +139,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -155,7 +155,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.metric_time__day) OVER ( + , FIRST_VALUE(subq_6.metric_time__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -163,7 +163,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_window__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_window__plan0_optimized.sql index 693cd051b8..7aaccf3c1a 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_window__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Postgres/test_conversion_rate_with_window__plan0_optimized.sql @@ -41,7 +41,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -49,7 +49,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -57,7 +57,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -65,7 +65,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.metric_time__day) OVER ( + , FIRST_VALUE(subq_21.metric_time__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -73,7 +73,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_count_with_no_group_by__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_count_with_no_group_by__plan0.sql index dbf5d617da..b4032ae933 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_count_with_no_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_count_with_no_group_by__plan0.sql @@ -114,7 +114,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -122,7 +122,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -130,7 +130,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_count_with_no_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_count_with_no_group_by__plan0_optimized.sql index 3ae1070f4f..107d89ecd8 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_count_with_no_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_count_with_no_group_by__plan0_optimized.sql @@ -20,7 +20,7 @@ CROSS JOIN ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -28,7 +28,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -36,7 +36,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql index 3a59ab4676..bd4e2b5500 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql @@ -148,7 +148,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_9.visits) OVER ( + FIRST_VALUE(subq_9.visits) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -156,7 +156,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_9.ds__day) OVER ( + , FIRST_VALUE(subq_9.ds__day) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -164,7 +164,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_9.metric_time__day) OVER ( + , FIRST_VALUE(subq_9.metric_time__day) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -172,7 +172,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_9.user) OVER ( + , FIRST_VALUE(subq_9.user) OVER ( PARTITION BY subq_12.user , subq_12.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql index 572c0100cb..ed74bb1db0 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql @@ -50,7 +50,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_30.visits) OVER ( + FIRST_VALUE(subq_30.visits) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -58,7 +58,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_30.ds__day) OVER ( + , FIRST_VALUE(subq_30.ds__day) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -66,7 +66,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_30.metric_time__day) OVER ( + , FIRST_VALUE(subq_30.metric_time__day) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -74,7 +74,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_30.user) OVER ( + , FIRST_VALUE(subq_30.user) OVER ( PARTITION BY subq_33.user , subq_33.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate__plan0.sql index 3bccb4f2b4..71563f26d6 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate__plan0.sql @@ -123,7 +123,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -131,7 +131,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -139,7 +139,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate__plan0_optimized.sql index 017fea4531..6ac6d16f58 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate__plan0_optimized.sql @@ -35,7 +35,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -43,7 +43,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -51,7 +51,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_constant_properties__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_constant_properties__plan0.sql index 19e6ed5133..dfce56a81f 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_constant_properties__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_constant_properties__plan0.sql @@ -132,7 +132,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -141,7 +141,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -150,7 +150,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -159,7 +159,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.metric_time__day) OVER ( + , FIRST_VALUE(subq_6.metric_time__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -168,7 +168,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -177,7 +177,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS user - , first_value(subq_6.session) OVER ( + , FIRST_VALUE(subq_6.session) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_constant_properties__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_constant_properties__plan0_optimized.sql index 14095e5b7a..ad254098ad 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_constant_properties__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_constant_properties__plan0_optimized.sql @@ -41,7 +41,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -50,7 +50,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -68,7 +68,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.metric_time__day) OVER ( + , FIRST_VALUE(subq_21.metric_time__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -77,7 +77,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -86,7 +86,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS user - , first_value(subq_21.session) OVER ( + , FIRST_VALUE(subq_21.session) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_no_group_by__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_no_group_by__plan0.sql index 471a319219..214cab0b0d 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_no_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_no_group_by__plan0.sql @@ -114,7 +114,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -122,7 +122,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -130,7 +130,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_no_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_no_group_by__plan0_optimized.sql index edb2ae9ae6..5dedffd6bc 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_no_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_no_group_by__plan0_optimized.sql @@ -20,7 +20,7 @@ CROSS JOIN ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -28,7 +28,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -36,7 +36,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_window__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_window__plan0.sql index b5f80f7998..baaccf5237 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_window__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_window__plan0.sql @@ -131,7 +131,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -139,7 +139,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -155,7 +155,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.metric_time__day) OVER ( + , FIRST_VALUE(subq_6.metric_time__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -163,7 +163,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_window__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_window__plan0_optimized.sql index 5b3d1547dd..aaf9daa393 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_window__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Redshift/test_conversion_rate_with_window__plan0_optimized.sql @@ -41,7 +41,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -49,7 +49,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -57,7 +57,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -65,7 +65,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.metric_time__day) OVER ( + , FIRST_VALUE(subq_21.metric_time__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -73,7 +73,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_count_with_no_group_by__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_count_with_no_group_by__plan0.sql index 2a521bc726..5f6a09a3c7 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_count_with_no_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_count_with_no_group_by__plan0.sql @@ -114,7 +114,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -122,7 +122,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -130,7 +130,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_count_with_no_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_count_with_no_group_by__plan0_optimized.sql index cc085592d7..8610e96c73 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_count_with_no_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_count_with_no_group_by__plan0_optimized.sql @@ -20,7 +20,7 @@ CROSS JOIN ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -28,7 +28,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -36,7 +36,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql index e65d8e1231..4671508b46 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql @@ -148,7 +148,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_9.visits) OVER ( + FIRST_VALUE(subq_9.visits) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -156,7 +156,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_9.ds__day) OVER ( + , FIRST_VALUE(subq_9.ds__day) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -164,7 +164,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_9.metric_time__day) OVER ( + , FIRST_VALUE(subq_9.metric_time__day) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -172,7 +172,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_9.user) OVER ( + , FIRST_VALUE(subq_9.user) OVER ( PARTITION BY subq_12.user , subq_12.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql index 1b371dafdd..c89c5b956d 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql @@ -50,7 +50,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_30.visits) OVER ( + FIRST_VALUE(subq_30.visits) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -58,7 +58,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_30.ds__day) OVER ( + , FIRST_VALUE(subq_30.ds__day) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -66,7 +66,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_30.metric_time__day) OVER ( + , FIRST_VALUE(subq_30.metric_time__day) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -74,7 +74,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_30.user) OVER ( + , FIRST_VALUE(subq_30.user) OVER ( PARTITION BY subq_33.user , subq_33.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate__plan0.sql index 1c133149db..dc1c7b8fe2 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate__plan0.sql @@ -123,7 +123,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -131,7 +131,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -139,7 +139,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate__plan0_optimized.sql index 3c386ee281..d4a13437d6 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate__plan0_optimized.sql @@ -35,7 +35,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -43,7 +43,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -51,7 +51,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_constant_properties__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_constant_properties__plan0.sql index dd01430904..b5a4a7484c 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_constant_properties__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_constant_properties__plan0.sql @@ -132,7 +132,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -141,7 +141,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -150,7 +150,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -159,7 +159,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.metric_time__day) OVER ( + , FIRST_VALUE(subq_6.metric_time__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -168,7 +168,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -177,7 +177,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS user - , first_value(subq_6.session) OVER ( + , FIRST_VALUE(subq_6.session) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_constant_properties__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_constant_properties__plan0_optimized.sql index e2da617222..d68ca70d13 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_constant_properties__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_constant_properties__plan0_optimized.sql @@ -41,7 +41,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -50,7 +50,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -68,7 +68,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.metric_time__day) OVER ( + , FIRST_VALUE(subq_21.metric_time__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -77,7 +77,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -86,7 +86,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS user - , first_value(subq_21.session) OVER ( + , FIRST_VALUE(subq_21.session) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_no_group_by__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_no_group_by__plan0.sql index 2fd661bab8..8a95851693 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_no_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_no_group_by__plan0.sql @@ -114,7 +114,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -122,7 +122,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -130,7 +130,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_no_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_no_group_by__plan0_optimized.sql index c3ccc341b2..673891bfd1 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_no_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_no_group_by__plan0_optimized.sql @@ -20,7 +20,7 @@ CROSS JOIN ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -28,7 +28,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -36,7 +36,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_window__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_window__plan0.sql index fa18a61b3a..6f98f0d117 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_window__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_window__plan0.sql @@ -131,7 +131,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -139,7 +139,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -155,7 +155,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.metric_time__day) OVER ( + , FIRST_VALUE(subq_6.metric_time__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -163,7 +163,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_window__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_window__plan0_optimized.sql index 5fa5145edc..adbf3ad096 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_window__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Snowflake/test_conversion_rate_with_window__plan0_optimized.sql @@ -41,7 +41,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -49,7 +49,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -57,7 +57,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -65,7 +65,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.metric_time__day) OVER ( + , FIRST_VALUE(subq_21.metric_time__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -73,7 +73,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_count_with_no_group_by__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_count_with_no_group_by__plan0.sql index 7674a30dd0..1b6030b93b 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_count_with_no_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_count_with_no_group_by__plan0.sql @@ -114,7 +114,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -122,7 +122,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -130,7 +130,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_count_with_no_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_count_with_no_group_by__plan0_optimized.sql index 3b7d4640b2..16049fb48e 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_count_with_no_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_count_with_no_group_by__plan0_optimized.sql @@ -20,7 +20,7 @@ CROSS JOIN ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -28,7 +28,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -36,7 +36,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql index cab5c1b15f..50363aa7e6 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0.sql @@ -148,7 +148,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_9.visits) OVER ( + FIRST_VALUE(subq_9.visits) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -156,7 +156,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_9.ds__day) OVER ( + , FIRST_VALUE(subq_9.ds__day) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -164,7 +164,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_9.metric_time__day) OVER ( + , FIRST_VALUE(subq_9.metric_time__day) OVER ( PARTITION BY subq_12.user , subq_12.ds__day @@ -172,7 +172,7 @@ FROM ( ORDER BY subq_9.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_9.user) OVER ( + , FIRST_VALUE(subq_9.user) OVER ( PARTITION BY subq_12.user , subq_12.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql index 285698f2b5..6ba8de27ce 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_metric_join_to_timespine_and_fill_nulls_with_0__plan0_optimized.sql @@ -50,7 +50,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_30.visits) OVER ( + FIRST_VALUE(subq_30.visits) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -58,7 +58,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_30.ds__day) OVER ( + , FIRST_VALUE(subq_30.ds__day) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -66,7 +66,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_30.metric_time__day) OVER ( + , FIRST_VALUE(subq_30.metric_time__day) OVER ( PARTITION BY subq_33.user , subq_33.ds__day @@ -74,7 +74,7 @@ FROM ( ORDER BY subq_30.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_30.user) OVER ( + , FIRST_VALUE(subq_30.user) OVER ( PARTITION BY subq_33.user , subq_33.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate__plan0.sql index 3e60381752..22977f82ab 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate__plan0.sql @@ -123,7 +123,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -131,7 +131,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -139,7 +139,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate__plan0_optimized.sql index 9909a531e3..329e2521bb 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate__plan0_optimized.sql @@ -35,7 +35,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -43,7 +43,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -51,7 +51,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_constant_properties__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_constant_properties__plan0.sql index 87a42694ae..5a8eab4ee0 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_constant_properties__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_constant_properties__plan0.sql @@ -132,7 +132,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -141,7 +141,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -150,7 +150,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -159,7 +159,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.metric_time__day) OVER ( + , FIRST_VALUE(subq_6.metric_time__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -168,7 +168,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -177,7 +177,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS user - , first_value(subq_6.session) OVER ( + , FIRST_VALUE(subq_6.session) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_constant_properties__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_constant_properties__plan0_optimized.sql index a6cb35a873..96ca636813 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_constant_properties__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_constant_properties__plan0_optimized.sql @@ -41,7 +41,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -50,7 +50,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -59,7 +59,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -68,7 +68,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.metric_time__day) OVER ( + , FIRST_VALUE(subq_21.metric_time__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -77,7 +77,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -86,7 +86,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS user - , first_value(subq_21.session) OVER ( + , FIRST_VALUE(subq_21.session) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_no_group_by__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_no_group_by__plan0.sql index ee341fc7b6..41452d2155 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_no_group_by__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_no_group_by__plan0.sql @@ -114,7 +114,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -122,7 +122,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -130,7 +130,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_no_group_by__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_no_group_by__plan0_optimized.sql index 75a75bc9a6..2e62f8676c 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_no_group_by__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_no_group_by__plan0_optimized.sql @@ -20,7 +20,7 @@ CROSS JOIN ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -28,7 +28,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -36,7 +36,7 @@ CROSS JOIN ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_window__plan0.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_window__plan0.sql index 01b2c5ffc3..814758ad07 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_window__plan0.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_window__plan0.sql @@ -131,7 +131,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_6.visits) OVER ( + FIRST_VALUE(subq_6.visits) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -139,7 +139,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_6.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_6.visit__referrer_id) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -147,7 +147,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_6.ds__day) OVER ( + , FIRST_VALUE(subq_6.ds__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -155,7 +155,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_6.metric_time__day) OVER ( + , FIRST_VALUE(subq_6.metric_time__day) OVER ( PARTITION BY subq_9.user , subq_9.ds__day @@ -163,7 +163,7 @@ FROM ( ORDER BY subq_6.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_6.user) OVER ( + , FIRST_VALUE(subq_6.user) OVER ( PARTITION BY subq_9.user , subq_9.ds__day diff --git a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_window__plan0_optimized.sql b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_window__plan0_optimized.sql index 07be2cc0f6..d897b864bc 100644 --- a/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_window__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_conversion_metrics_to_sql.py/SqlQueryPlan/Trino/test_conversion_rate_with_window__plan0_optimized.sql @@ -41,7 +41,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_21.visits) OVER ( + FIRST_VALUE(subq_21.visits) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -49,7 +49,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_21.visit__referrer_id) OVER ( + , FIRST_VALUE(subq_21.visit__referrer_id) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -57,7 +57,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visit__referrer_id - , first_value(subq_21.ds__day) OVER ( + , FIRST_VALUE(subq_21.ds__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -65,7 +65,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_21.metric_time__day) OVER ( + , FIRST_VALUE(subq_21.metric_time__day) OVER ( PARTITION BY subq_24.user , subq_24.ds__day @@ -73,7 +73,7 @@ FROM ( ORDER BY subq_21.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS metric_time__day - , first_value(subq_21.user) OVER ( + , FIRST_VALUE(subq_21.user) OVER ( PARTITION BY subq_24.user , subq_24.ds__day diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/BigQuery/test_filter_with_conversion_metric__plan0.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/BigQuery/test_filter_with_conversion_metric__plan0.sql index 388180cf2a..994cb7c931 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/BigQuery/test_filter_with_conversion_metric__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/BigQuery/test_filter_with_conversion_metric__plan0.sql @@ -293,7 +293,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_24.visits) OVER ( + FIRST_VALUE(subq_24.visits) OVER ( PARTITION BY subq_27.user , subq_27.ds__day @@ -301,7 +301,7 @@ FROM ( ORDER BY subq_24.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_24.ds__day) OVER ( + , FIRST_VALUE(subq_24.ds__day) OVER ( PARTITION BY subq_27.user , subq_27.ds__day @@ -309,7 +309,7 @@ FROM ( ORDER BY subq_24.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_24.user) OVER ( + , FIRST_VALUE(subq_24.user) OVER ( PARTITION BY subq_27.user , subq_27.ds__day diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/BigQuery/test_filter_with_conversion_metric__plan0_optimized.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/BigQuery/test_filter_with_conversion_metric__plan0_optimized.sql index 01a66ea87b..38688d939a 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/BigQuery/test_filter_with_conversion_metric__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/BigQuery/test_filter_with_conversion_metric__plan0_optimized.sql @@ -52,7 +52,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_49.visits) OVER ( + FIRST_VALUE(subq_49.visits) OVER ( PARTITION BY subq_52.user , subq_52.ds__day @@ -60,7 +60,7 @@ FROM ( ORDER BY subq_49.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_49.ds__day) OVER ( + , FIRST_VALUE(subq_49.ds__day) OVER ( PARTITION BY subq_52.user , subq_52.ds__day @@ -68,7 +68,7 @@ FROM ( ORDER BY subq_49.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_49.user) OVER ( + , FIRST_VALUE(subq_49.user) OVER ( PARTITION BY subq_52.user , subq_52.ds__day diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Databricks/test_filter_with_conversion_metric__plan0.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Databricks/test_filter_with_conversion_metric__plan0.sql index e76b8b835c..b2584a7714 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Databricks/test_filter_with_conversion_metric__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Databricks/test_filter_with_conversion_metric__plan0.sql @@ -293,7 +293,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_24.visits) OVER ( + FIRST_VALUE(subq_24.visits) OVER ( PARTITION BY subq_27.user , subq_27.ds__day @@ -301,7 +301,7 @@ FROM ( ORDER BY subq_24.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_24.ds__day) OVER ( + , FIRST_VALUE(subq_24.ds__day) OVER ( PARTITION BY subq_27.user , subq_27.ds__day @@ -309,7 +309,7 @@ FROM ( ORDER BY subq_24.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_24.user) OVER ( + , FIRST_VALUE(subq_24.user) OVER ( PARTITION BY subq_27.user , subq_27.ds__day diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Databricks/test_filter_with_conversion_metric__plan0_optimized.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Databricks/test_filter_with_conversion_metric__plan0_optimized.sql index ca489133ee..09301fa1fb 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Databricks/test_filter_with_conversion_metric__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Databricks/test_filter_with_conversion_metric__plan0_optimized.sql @@ -52,7 +52,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_49.visits) OVER ( + FIRST_VALUE(subq_49.visits) OVER ( PARTITION BY subq_52.user , subq_52.ds__day @@ -60,7 +60,7 @@ FROM ( ORDER BY subq_49.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_49.ds__day) OVER ( + , FIRST_VALUE(subq_49.ds__day) OVER ( PARTITION BY subq_52.user , subq_52.ds__day @@ -68,7 +68,7 @@ FROM ( ORDER BY subq_49.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_49.user) OVER ( + , FIRST_VALUE(subq_49.user) OVER ( PARTITION BY subq_52.user , subq_52.ds__day diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_filter_with_conversion_metric__plan0.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_filter_with_conversion_metric__plan0.sql index d7b2fb6ef1..2334895733 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_filter_with_conversion_metric__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_filter_with_conversion_metric__plan0.sql @@ -293,7 +293,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_24.visits) OVER ( + FIRST_VALUE(subq_24.visits) OVER ( PARTITION BY subq_27.user , subq_27.ds__day @@ -301,7 +301,7 @@ FROM ( ORDER BY subq_24.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_24.ds__day) OVER ( + , FIRST_VALUE(subq_24.ds__day) OVER ( PARTITION BY subq_27.user , subq_27.ds__day @@ -309,7 +309,7 @@ FROM ( ORDER BY subq_24.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_24.user) OVER ( + , FIRST_VALUE(subq_24.user) OVER ( PARTITION BY subq_27.user , subq_27.ds__day diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_filter_with_conversion_metric__plan0_optimized.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_filter_with_conversion_metric__plan0_optimized.sql index 049b0d251e..56a59f8a90 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_filter_with_conversion_metric__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_filter_with_conversion_metric__plan0_optimized.sql @@ -52,7 +52,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_49.visits) OVER ( + FIRST_VALUE(subq_49.visits) OVER ( PARTITION BY subq_52.user , subq_52.ds__day @@ -60,7 +60,7 @@ FROM ( ORDER BY subq_49.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_49.ds__day) OVER ( + , FIRST_VALUE(subq_49.ds__day) OVER ( PARTITION BY subq_52.user , subq_52.ds__day @@ -68,7 +68,7 @@ FROM ( ORDER BY subq_49.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_49.user) OVER ( + , FIRST_VALUE(subq_49.user) OVER ( PARTITION BY subq_52.user , subq_52.ds__day diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Postgres/test_filter_with_conversion_metric__plan0.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Postgres/test_filter_with_conversion_metric__plan0.sql index eacffcef29..4ce338247d 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Postgres/test_filter_with_conversion_metric__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Postgres/test_filter_with_conversion_metric__plan0.sql @@ -293,7 +293,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_24.visits) OVER ( + FIRST_VALUE(subq_24.visits) OVER ( PARTITION BY subq_27.user , subq_27.ds__day @@ -301,7 +301,7 @@ FROM ( ORDER BY subq_24.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_24.ds__day) OVER ( + , FIRST_VALUE(subq_24.ds__day) OVER ( PARTITION BY subq_27.user , subq_27.ds__day @@ -309,7 +309,7 @@ FROM ( ORDER BY subq_24.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_24.user) OVER ( + , FIRST_VALUE(subq_24.user) OVER ( PARTITION BY subq_27.user , subq_27.ds__day diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Postgres/test_filter_with_conversion_metric__plan0_optimized.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Postgres/test_filter_with_conversion_metric__plan0_optimized.sql index 301829d4fa..3247887a05 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Postgres/test_filter_with_conversion_metric__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Postgres/test_filter_with_conversion_metric__plan0_optimized.sql @@ -52,7 +52,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_49.visits) OVER ( + FIRST_VALUE(subq_49.visits) OVER ( PARTITION BY subq_52.user , subq_52.ds__day @@ -60,7 +60,7 @@ FROM ( ORDER BY subq_49.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_49.ds__day) OVER ( + , FIRST_VALUE(subq_49.ds__day) OVER ( PARTITION BY subq_52.user , subq_52.ds__day @@ -68,7 +68,7 @@ FROM ( ORDER BY subq_49.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_49.user) OVER ( + , FIRST_VALUE(subq_49.user) OVER ( PARTITION BY subq_52.user , subq_52.ds__day diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Redshift/test_filter_with_conversion_metric__plan0.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Redshift/test_filter_with_conversion_metric__plan0.sql index a45ddb8c2c..7cfa9d98a4 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Redshift/test_filter_with_conversion_metric__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Redshift/test_filter_with_conversion_metric__plan0.sql @@ -293,7 +293,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_24.visits) OVER ( + FIRST_VALUE(subq_24.visits) OVER ( PARTITION BY subq_27.user , subq_27.ds__day @@ -301,7 +301,7 @@ FROM ( ORDER BY subq_24.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_24.ds__day) OVER ( + , FIRST_VALUE(subq_24.ds__day) OVER ( PARTITION BY subq_27.user , subq_27.ds__day @@ -309,7 +309,7 @@ FROM ( ORDER BY subq_24.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_24.user) OVER ( + , FIRST_VALUE(subq_24.user) OVER ( PARTITION BY subq_27.user , subq_27.ds__day diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Redshift/test_filter_with_conversion_metric__plan0_optimized.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Redshift/test_filter_with_conversion_metric__plan0_optimized.sql index 3156157b2f..6a0e4371d7 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Redshift/test_filter_with_conversion_metric__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Redshift/test_filter_with_conversion_metric__plan0_optimized.sql @@ -52,7 +52,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_49.visits) OVER ( + FIRST_VALUE(subq_49.visits) OVER ( PARTITION BY subq_52.user , subq_52.ds__day @@ -60,7 +60,7 @@ FROM ( ORDER BY subq_49.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_49.ds__day) OVER ( + , FIRST_VALUE(subq_49.ds__day) OVER ( PARTITION BY subq_52.user , subq_52.ds__day @@ -68,7 +68,7 @@ FROM ( ORDER BY subq_49.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_49.user) OVER ( + , FIRST_VALUE(subq_49.user) OVER ( PARTITION BY subq_52.user , subq_52.ds__day diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Snowflake/test_filter_with_conversion_metric__plan0.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Snowflake/test_filter_with_conversion_metric__plan0.sql index 42675168db..f96293348e 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Snowflake/test_filter_with_conversion_metric__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Snowflake/test_filter_with_conversion_metric__plan0.sql @@ -293,7 +293,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_24.visits) OVER ( + FIRST_VALUE(subq_24.visits) OVER ( PARTITION BY subq_27.user , subq_27.ds__day @@ -301,7 +301,7 @@ FROM ( ORDER BY subq_24.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_24.ds__day) OVER ( + , FIRST_VALUE(subq_24.ds__day) OVER ( PARTITION BY subq_27.user , subq_27.ds__day @@ -309,7 +309,7 @@ FROM ( ORDER BY subq_24.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_24.user) OVER ( + , FIRST_VALUE(subq_24.user) OVER ( PARTITION BY subq_27.user , subq_27.ds__day diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Snowflake/test_filter_with_conversion_metric__plan0_optimized.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Snowflake/test_filter_with_conversion_metric__plan0_optimized.sql index 569538fc6a..238faaf7e0 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Snowflake/test_filter_with_conversion_metric__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Snowflake/test_filter_with_conversion_metric__plan0_optimized.sql @@ -52,7 +52,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_49.visits) OVER ( + FIRST_VALUE(subq_49.visits) OVER ( PARTITION BY subq_52.user , subq_52.ds__day @@ -60,7 +60,7 @@ FROM ( ORDER BY subq_49.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_49.ds__day) OVER ( + , FIRST_VALUE(subq_49.ds__day) OVER ( PARTITION BY subq_52.user , subq_52.ds__day @@ -68,7 +68,7 @@ FROM ( ORDER BY subq_49.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_49.user) OVER ( + , FIRST_VALUE(subq_49.user) OVER ( PARTITION BY subq_52.user , subq_52.ds__day diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Trino/test_filter_with_conversion_metric__plan0.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Trino/test_filter_with_conversion_metric__plan0.sql index 35aafc5d9a..6c5786ff64 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Trino/test_filter_with_conversion_metric__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Trino/test_filter_with_conversion_metric__plan0.sql @@ -293,7 +293,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_24.visits) OVER ( + FIRST_VALUE(subq_24.visits) OVER ( PARTITION BY subq_27.user , subq_27.ds__day @@ -301,7 +301,7 @@ FROM ( ORDER BY subq_24.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_24.ds__day) OVER ( + , FIRST_VALUE(subq_24.ds__day) OVER ( PARTITION BY subq_27.user , subq_27.ds__day @@ -309,7 +309,7 @@ FROM ( ORDER BY subq_24.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_24.user) OVER ( + , FIRST_VALUE(subq_24.user) OVER ( PARTITION BY subq_27.user , subq_27.ds__day diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Trino/test_filter_with_conversion_metric__plan0_optimized.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Trino/test_filter_with_conversion_metric__plan0_optimized.sql index 33bbe3d966..790ea7421e 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Trino/test_filter_with_conversion_metric__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/Trino/test_filter_with_conversion_metric__plan0_optimized.sql @@ -52,7 +52,7 @@ FROM ( FROM ( -- Dedupe the fanout with mf_internal_uuid in the conversion data set SELECT DISTINCT - first_value(subq_49.visits) OVER ( + FIRST_VALUE(subq_49.visits) OVER ( PARTITION BY subq_52.user , subq_52.ds__day @@ -60,7 +60,7 @@ FROM ( ORDER BY subq_49.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS visits - , first_value(subq_49.ds__day) OVER ( + , FIRST_VALUE(subq_49.ds__day) OVER ( PARTITION BY subq_52.user , subq_52.ds__day @@ -68,7 +68,7 @@ FROM ( ORDER BY subq_49.ds__day DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) AS ds__day - , first_value(subq_49.user) OVER ( + , FIRST_VALUE(subq_49.user) OVER ( PARTITION BY subq_52.user , subq_52.ds__day diff --git a/tests_metricflow/snapshots/test_sql_expr_render.py/str/test_window_function_expr__rendered_sql.txt b/tests_metricflow/snapshots/test_sql_expr_render.py/str/test_window_function_expr__rendered_sql.txt index edfbe0989f..7ca036f3ee 100644 --- a/tests_metricflow/snapshots/test_sql_expr_render.py/str/test_window_function_expr__rendered_sql.txt +++ b/tests_metricflow/snapshots/test_sql_expr_render.py/str/test_window_function_expr__rendered_sql.txt @@ -1,27 +1,27 @@ -- Window function with 0 PARTITION BY items(s) -first_value(a.col0) OVER () +FIRST_VALUE(a.col0) OVER () -- Window function with 1 PARTITION BY items(s) -first_value(a.col0) OVER (PARTITION BY b.col0) +FIRST_VALUE(a.col0) OVER (PARTITION BY b.col0) -- Window function with 2 PARTITION BY items(s) -first_value(a.col0) OVER ( +FIRST_VALUE(a.col0) OVER ( PARTITION BY b.col0 , b.col1 ) -- Window function with 0 ORDER BY items(s) -first_value(a.col0) OVER () +FIRST_VALUE(a.col0) OVER () -- Window function with 1 ORDER BY items(s) -first_value(a.col0) OVER ( +FIRST_VALUE(a.col0) OVER ( ORDER BY a.col0 DESC NULLS FIRST ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING ) -- Window function with 2 ORDER BY items(s) -first_value(a.col0) OVER ( +FIRST_VALUE(a.col0) OVER ( ORDER BY a.col0 DESC NULLS FIRST , b.col0 ASC NULLS LAST @@ -29,7 +29,7 @@ first_value(a.col0) OVER ( ) -- Window function with PARTITION BY and ORDER BY items -first_value(a.col0) OVER ( +FIRST_VALUE(a.col0) OVER ( PARTITION BY b.col0 , b.col1