From 0f36dd143555dd64ef689429ff1d19d57e18589a Mon Sep 17 00:00:00 2001 From: tlento Date: Sun, 15 Oct 2023 15:54:43 -0700 Subject: [PATCH] Convert engines to use native day of week ISO extraction Databricks, DuckDB, Postgres, and Snowflake all have formal support for extracting a day of week value that conforms to the ISO standard of 1 (Monday) - 7 (Sunday). This commit uses that support and enables the new ISO behavior for those engines. BigQuery and Redshift, which require custom rendering for day of week extraction, will be updated separately. --- metricflow/sql/render/databricks.py | 8 +++ metricflow/sql/render/expr_renderer.py | 8 ++- metricflow/sql/render/redshift.py | 5 ++ metricflow/sql/render/snowflake.py | 8 +++ ...st_convert_query_semantic_model__plan0.sql | 4 +- ...le_semantic_model_with_measures__plan0.sql | 8 +-- ...semantic_model_without_measures__plan0.sql | 4 +- ...st_convert_query_semantic_model__plan0.sql | 4 +- ...le_semantic_model_with_measures__plan0.sql | 8 +-- ...semantic_model_without_measures__plan0.sql | 4 +- ...st_convert_query_semantic_model__plan0.sql | 4 +- ...le_semantic_model_with_measures__plan0.sql | 8 +-- ...semantic_model_without_measures__plan0.sql | 4 +- ...st_convert_query_semantic_model__plan0.sql | 4 +- ...le_semantic_model_with_measures__plan0.sql | 8 +-- ...semantic_model_without_measures__plan0.sql | 4 +- .../test_common_semantic_model__plan0.sql | 24 ++++----- .../test_compute_metrics_node__plan0.sql | 20 +++---- ...o_from_multiple_semantic_models__plan0.sql | 36 ++++++------- ...atio_from_single_semantic_model__plan0.sql | 20 +++---- ...ompute_metrics_node_simple_expr__plan0.sql | 20 +++---- .../test_constrain_time_range_node__plan0.sql | 12 ++--- .../test_cumulative_metric__plan0.sql | 4 +- ...cumulative_metric_grain_to_date__plan0.sql | 4 +- .../test_cumulative_metric_no_ds__plan0.sql | 4 +- ...est_cumulative_metric_no_window__plan0.sql | 4 +- ..._no_window_with_time_constraint__plan0.sql | 4 +- ...ive_metric_with_time_constraint__plan0.sql | 4 +- .../Databricks/test_derived_metric__plan0.sql | 24 ++++----- ...ved_metric_with_offset_to_grain__plan0.sql | 24 ++++----- ...offset_to_grain_and_granularity__plan0.sql | 24 ++++----- ...rived_metric_with_offset_window__plan0.sql | 24 ++++----- ...h_offset_window_and_granularity__plan0.sql | 24 ++++----- ...fset_window_and_offset_to_grain__plan0.sql | 24 ++++----- ...offset_to_grain_and_granularity__plan0.sql | 24 ++++----- ...erived_offset_cumulative_metric__plan0.sql | 12 ++--- ...et_metric_with_one_input_metric__plan0.sql | 12 ++--- .../test_distinct_values__plan0.sql | 8 +-- .../Databricks/test_filter_node__plan0.sql | 12 ++--- ...lter_with_where_constraint_node__plan0.sql | 12 ++--- ...th_where_constraint_on_join_dim__plan0.sql | 20 +++---- .../test_join_to_scd_dimension__plan0.sql | 20 +++---- ...spine_node_with_offset_to_grain__plan0.sql | 12 ++--- ...e_spine_node_with_offset_window__plan0.sql | 12 ++--- ..._time_spine_node_without_offset__plan0.sql | 12 ++--- .../Databricks/test_limit_rows__plan0.sql | 12 ++--- ...al_dimension_using_local_entity__plan0.sql | 8 +-- .../test_measure_aggregation_node__plan0.sql | 12 ++--- .../test_measure_constraint__plan0.sql | 52 +++++++++---------- ..._constraint_with_reused_measure__plan0.sql | 24 ++++----- ...aint_with_single_expr_and_alias__plan0.sql | 12 ++--- ..._multiple_sources_no_dimensions__plan0.sql | 20 +++---- ...multi_hop_through_scd_dimension__plan0.sql | 24 ++++----- ...test_multi_hop_to_scd_dimension__plan0.sql | 20 +++---- .../test_multi_join_node__plan0.sql | 28 +++++----- .../Databricks/test_multihop_node__plan0.sql | 18 +++---- ..._multiple_metrics_no_dimensions__plan0.sql | 20 +++---- .../test_nested_derived_metric__plan0.sql | 48 ++++++++--------- ...st_offset_window_with_date_part__plan0.sql | 26 +++++----- ...window_with_date_part__plan0_optimized.sql | 6 +-- .../Databricks/test_order_by_node__plan0.sql | 12 ++--- .../test_partitioned_join__plan0.sql | 20 +++---- .../test_semi_additive_join_node__plan0.sql | 8 +-- ...mi_additive_join_node__plan0_optimized.sql | 4 +- ...dditive_join_node_with_grouping__plan0.sql | 8 +-- ...in_node_with_grouping__plan0_optimized.sql | 4 +- ...join_node_with_queried_group_by__plan0.sql | 8 +-- ...with_queried_group_by__plan0_optimized.sql | 4 +- ...est_simple_query_with_date_part__plan0.sql | 12 ++--- ..._query_with_date_part__plan0_optimized.sql | 2 +- ..._query_with_multiple_date_parts__plan0.sql | 12 ++--- ...h_multiple_date_parts__plan0_optimized.sql | 2 +- .../test_single_join_node__plan0.sql | 20 +++---- .../Databricks/test_source_node__plan0.sql | 12 ++--- .../test_source_node__plan0_optimized.sql | 12 ++--- .../test_common_semantic_model__plan0.sql | 24 ++++----- .../test_compute_metrics_node__plan0.sql | 20 +++---- ...o_from_multiple_semantic_models__plan0.sql | 36 ++++++------- ...atio_from_single_semantic_model__plan0.sql | 20 +++---- ...ompute_metrics_node_simple_expr__plan0.sql | 20 +++---- .../test_constrain_time_range_node__plan0.sql | 12 ++--- .../DuckDB/test_cumulative_metric__plan0.sql | 4 +- ...cumulative_metric_grain_to_date__plan0.sql | 4 +- .../test_cumulative_metric_no_ds__plan0.sql | 4 +- ...est_cumulative_metric_no_window__plan0.sql | 4 +- ..._no_window_with_time_constraint__plan0.sql | 4 +- ...ive_metric_with_time_constraint__plan0.sql | 4 +- .../DuckDB/test_derived_metric__plan0.sql | 24 ++++----- ...ved_metric_with_offset_to_grain__plan0.sql | 24 ++++----- ...offset_to_grain_and_granularity__plan0.sql | 24 ++++----- ...rived_metric_with_offset_window__plan0.sql | 24 ++++----- ...h_offset_window_and_granularity__plan0.sql | 24 ++++----- ...fset_window_and_offset_to_grain__plan0.sql | 24 ++++----- ...offset_to_grain_and_granularity__plan0.sql | 24 ++++----- ...erived_offset_cumulative_metric__plan0.sql | 12 ++--- ...et_metric_with_one_input_metric__plan0.sql | 12 ++--- .../DuckDB/test_distinct_values__plan0.sql | 8 +-- .../DuckDB/test_filter_node__plan0.sql | 12 ++--- ...lter_with_where_constraint_node__plan0.sql | 12 ++--- ...th_where_constraint_on_join_dim__plan0.sql | 20 +++---- .../test_join_to_scd_dimension__plan0.sql | 20 +++---- ...spine_node_with_offset_to_grain__plan0.sql | 12 ++--- ...e_spine_node_with_offset_window__plan0.sql | 12 ++--- ..._time_spine_node_without_offset__plan0.sql | 12 ++--- .../DuckDB/test_limit_rows__plan0.sql | 12 ++--- ...al_dimension_using_local_entity__plan0.sql | 8 +-- .../test_measure_aggregation_node__plan0.sql | 12 ++--- .../DuckDB/test_measure_constraint__plan0.sql | 52 +++++++++---------- ..._constraint_with_reused_measure__plan0.sql | 24 ++++----- ...aint_with_single_expr_and_alias__plan0.sql | 12 ++--- ..._multiple_sources_no_dimensions__plan0.sql | 20 +++---- ...multi_hop_through_scd_dimension__plan0.sql | 24 ++++----- ...test_multi_hop_to_scd_dimension__plan0.sql | 20 +++---- .../DuckDB/test_multi_join_node__plan0.sql | 28 +++++----- .../DuckDB/test_multihop_node__plan0.sql | 18 +++---- ..._multiple_metrics_no_dimensions__plan0.sql | 20 +++---- .../test_nested_derived_metric__plan0.sql | 48 ++++++++--------- ...st_offset_window_with_date_part__plan0.sql | 26 +++++----- ...window_with_date_part__plan0_optimized.sql | 6 +-- .../DuckDB/test_order_by_node__plan0.sql | 12 ++--- .../DuckDB/test_partitioned_join__plan0.sql | 20 +++---- .../test_semi_additive_join_node__plan0.sql | 8 +-- ...mi_additive_join_node__plan0_optimized.sql | 4 +- ...dditive_join_node_with_grouping__plan0.sql | 8 +-- ...in_node_with_grouping__plan0_optimized.sql | 4 +- ...join_node_with_queried_group_by__plan0.sql | 8 +-- ...with_queried_group_by__plan0_optimized.sql | 4 +- ...est_simple_query_with_date_part__plan0.sql | 12 ++--- ..._query_with_date_part__plan0_optimized.sql | 2 +- ..._query_with_multiple_date_parts__plan0.sql | 12 ++--- ...h_multiple_date_parts__plan0_optimized.sql | 2 +- .../DuckDB/test_single_join_node__plan0.sql | 20 +++---- .../DuckDB/test_source_node__plan0.sql | 12 ++--- .../test_source_node__plan0_optimized.sql | 12 ++--- .../test_common_semantic_model__plan0.sql | 24 ++++----- .../test_compute_metrics_node__plan0.sql | 20 +++---- ...o_from_multiple_semantic_models__plan0.sql | 36 ++++++------- ...atio_from_single_semantic_model__plan0.sql | 20 +++---- ...ompute_metrics_node_simple_expr__plan0.sql | 20 +++---- .../test_constrain_time_range_node__plan0.sql | 12 ++--- .../test_cumulative_metric__plan0.sql | 4 +- ...cumulative_metric_grain_to_date__plan0.sql | 4 +- .../test_cumulative_metric_no_ds__plan0.sql | 4 +- ...est_cumulative_metric_no_window__plan0.sql | 4 +- ..._no_window_with_time_constraint__plan0.sql | 4 +- ...ive_metric_with_time_constraint__plan0.sql | 4 +- .../Postgres/test_derived_metric__plan0.sql | 24 ++++----- ...ved_metric_with_offset_to_grain__plan0.sql | 24 ++++----- ...offset_to_grain_and_granularity__plan0.sql | 24 ++++----- ...rived_metric_with_offset_window__plan0.sql | 24 ++++----- ...h_offset_window_and_granularity__plan0.sql | 24 ++++----- ...fset_window_and_offset_to_grain__plan0.sql | 24 ++++----- ...offset_to_grain_and_granularity__plan0.sql | 24 ++++----- ...erived_offset_cumulative_metric__plan0.sql | 12 ++--- ...et_metric_with_one_input_metric__plan0.sql | 12 ++--- .../Postgres/test_distinct_values__plan0.sql | 8 +-- .../Postgres/test_filter_node__plan0.sql | 12 ++--- ...lter_with_where_constraint_node__plan0.sql | 12 ++--- ...th_where_constraint_on_join_dim__plan0.sql | 20 +++---- .../test_join_to_scd_dimension__plan0.sql | 20 +++---- ...spine_node_with_offset_to_grain__plan0.sql | 12 ++--- ...e_spine_node_with_offset_window__plan0.sql | 12 ++--- ..._time_spine_node_without_offset__plan0.sql | 12 ++--- .../Postgres/test_limit_rows__plan0.sql | 12 ++--- ...al_dimension_using_local_entity__plan0.sql | 8 +-- .../test_measure_aggregation_node__plan0.sql | 12 ++--- .../test_measure_constraint__plan0.sql | 52 +++++++++---------- ..._constraint_with_reused_measure__plan0.sql | 24 ++++----- ...aint_with_single_expr_and_alias__plan0.sql | 12 ++--- ..._multiple_sources_no_dimensions__plan0.sql | 20 +++---- ...multi_hop_through_scd_dimension__plan0.sql | 24 ++++----- ...test_multi_hop_to_scd_dimension__plan0.sql | 20 +++---- .../Postgres/test_multi_join_node__plan0.sql | 28 +++++----- .../Postgres/test_multihop_node__plan0.sql | 18 +++---- ..._multiple_metrics_no_dimensions__plan0.sql | 20 +++---- .../test_nested_derived_metric__plan0.sql | 48 ++++++++--------- ...st_offset_window_with_date_part__plan0.sql | 26 +++++----- ...window_with_date_part__plan0_optimized.sql | 6 +-- .../Postgres/test_order_by_node__plan0.sql | 12 ++--- .../Postgres/test_partitioned_join__plan0.sql | 20 +++---- .../test_semi_additive_join_node__plan0.sql | 8 +-- ...mi_additive_join_node__plan0_optimized.sql | 4 +- ...dditive_join_node_with_grouping__plan0.sql | 8 +-- ...in_node_with_grouping__plan0_optimized.sql | 4 +- ...join_node_with_queried_group_by__plan0.sql | 8 +-- ...with_queried_group_by__plan0_optimized.sql | 4 +- ...est_simple_query_with_date_part__plan0.sql | 12 ++--- ..._query_with_date_part__plan0_optimized.sql | 2 +- ..._query_with_multiple_date_parts__plan0.sql | 12 ++--- ...h_multiple_date_parts__plan0_optimized.sql | 2 +- .../Postgres/test_single_join_node__plan0.sql | 20 +++---- .../Postgres/test_source_node__plan0.sql | 12 ++--- .../test_source_node__plan0_optimized.sql | 12 ++--- .../test_common_semantic_model__plan0.sql | 24 ++++----- .../test_compute_metrics_node__plan0.sql | 20 +++---- ...o_from_multiple_semantic_models__plan0.sql | 36 ++++++------- ...atio_from_single_semantic_model__plan0.sql | 20 +++---- ...ompute_metrics_node_simple_expr__plan0.sql | 20 +++---- .../test_constrain_time_range_node__plan0.sql | 12 ++--- .../test_cumulative_metric__plan0.sql | 4 +- ...cumulative_metric_grain_to_date__plan0.sql | 4 +- .../test_cumulative_metric_no_ds__plan0.sql | 4 +- ...est_cumulative_metric_no_window__plan0.sql | 4 +- ..._no_window_with_time_constraint__plan0.sql | 4 +- ...ive_metric_with_time_constraint__plan0.sql | 4 +- .../Snowflake/test_derived_metric__plan0.sql | 24 ++++----- ...ved_metric_with_offset_to_grain__plan0.sql | 24 ++++----- ...offset_to_grain_and_granularity__plan0.sql | 24 ++++----- ...rived_metric_with_offset_window__plan0.sql | 24 ++++----- ...h_offset_window_and_granularity__plan0.sql | 24 ++++----- ...fset_window_and_offset_to_grain__plan0.sql | 24 ++++----- ...offset_to_grain_and_granularity__plan0.sql | 24 ++++----- ...erived_offset_cumulative_metric__plan0.sql | 12 ++--- ...et_metric_with_one_input_metric__plan0.sql | 12 ++--- .../Snowflake/test_distinct_values__plan0.sql | 8 +-- .../Snowflake/test_filter_node__plan0.sql | 12 ++--- ...lter_with_where_constraint_node__plan0.sql | 12 ++--- ...th_where_constraint_on_join_dim__plan0.sql | 20 +++---- .../test_join_to_scd_dimension__plan0.sql | 20 +++---- ...spine_node_with_offset_to_grain__plan0.sql | 12 ++--- ...e_spine_node_with_offset_window__plan0.sql | 12 ++--- ..._time_spine_node_without_offset__plan0.sql | 12 ++--- .../Snowflake/test_limit_rows__plan0.sql | 12 ++--- ...al_dimension_using_local_entity__plan0.sql | 8 +-- .../test_measure_aggregation_node__plan0.sql | 12 ++--- .../test_measure_constraint__plan0.sql | 52 +++++++++---------- ..._constraint_with_reused_measure__plan0.sql | 24 ++++----- ...aint_with_single_expr_and_alias__plan0.sql | 12 ++--- ..._multiple_sources_no_dimensions__plan0.sql | 20 +++---- ...multi_hop_through_scd_dimension__plan0.sql | 24 ++++----- ...test_multi_hop_to_scd_dimension__plan0.sql | 20 +++---- .../Snowflake/test_multi_join_node__plan0.sql | 28 +++++----- .../Snowflake/test_multihop_node__plan0.sql | 18 +++---- ..._multiple_metrics_no_dimensions__plan0.sql | 20 +++---- .../test_nested_derived_metric__plan0.sql | 48 ++++++++--------- ...st_offset_window_with_date_part__plan0.sql | 26 +++++----- ...window_with_date_part__plan0_optimized.sql | 6 +-- .../Snowflake/test_order_by_node__plan0.sql | 12 ++--- .../test_partitioned_join__plan0.sql | 20 +++---- .../test_semi_additive_join_node__plan0.sql | 8 +-- ...mi_additive_join_node__plan0_optimized.sql | 4 +- ...dditive_join_node_with_grouping__plan0.sql | 8 +-- ...in_node_with_grouping__plan0_optimized.sql | 4 +- ...join_node_with_queried_group_by__plan0.sql | 8 +-- ...with_queried_group_by__plan0_optimized.sql | 4 +- ...est_simple_query_with_date_part__plan0.sql | 12 ++--- ..._query_with_date_part__plan0_optimized.sql | 2 +- ..._query_with_multiple_date_parts__plan0.sql | 12 ++--- ...h_multiple_date_parts__plan0_optimized.sql | 2 +- .../test_single_join_node__plan0.sql | 20 +++---- .../Snowflake/test_source_node__plan0.sql | 12 ++--- .../test_source_node__plan0_optimized.sql | 12 ++--- ...orm_node_using_non_primary_time__plan0.sql | 12 ++--- ...sing_non_primary_time__plan0_optimized.sql | 14 ++--- ...ansform_node_using_primary_time__plan0.sql | 12 ++--- ...de_using_primary_time__plan0_optimized.sql | 14 ++--- ...uery_with_metric_time_dimension__plan0.sql | 24 ++++----- ...orm_node_using_non_primary_time__plan0.sql | 12 ++--- ...sing_non_primary_time__plan0_optimized.sql | 14 ++--- ...ansform_node_using_primary_time__plan0.sql | 12 ++--- ...de_using_primary_time__plan0_optimized.sql | 14 ++--- ...uery_with_metric_time_dimension__plan0.sql | 24 ++++----- ...orm_node_using_non_primary_time__plan0.sql | 12 ++--- ...sing_non_primary_time__plan0_optimized.sql | 14 ++--- ...ansform_node_using_primary_time__plan0.sql | 12 ++--- ...de_using_primary_time__plan0_optimized.sql | 14 ++--- ...uery_with_metric_time_dimension__plan0.sql | 24 ++++----- ...orm_node_using_non_primary_time__plan0.sql | 12 ++--- ...sing_non_primary_time__plan0_optimized.sql | 14 ++--- ...ansform_node_using_primary_time__plan0.sql | 12 ++--- ...de_using_primary_time__plan0_optimized.sql | 14 ++--- ...uery_with_metric_time_dimension__plan0.sql | 24 ++++----- .../sql_clients/test_date_time_operations.py | 7 ++- 273 files changed, 2067 insertions(+), 2041 deletions(-) diff --git a/metricflow/sql/render/databricks.py b/metricflow/sql/render/databricks.py index 0740f66350..bdd2b58d33 100644 --- a/metricflow/sql/render/databricks.py +++ b/metricflow/sql/render/databricks.py @@ -13,6 +13,7 @@ ) from metricflow.sql.render.sql_plan_renderer import DefaultSqlQueryPlanRenderer from metricflow.sql.sql_exprs import SqlPercentileExpression, SqlPercentileFunctionType +from metricflow.time.date_part import DatePart class DatabricksSqlExpressionRenderer(DefaultSqlExpressionRenderer): @@ -23,6 +24,13 @@ class DatabricksSqlExpressionRenderer(DefaultSqlExpressionRenderer): def supported_percentile_function_types(self) -> Collection[SqlPercentileFunctionType]: return {SqlPercentileFunctionType.CONTINUOUS, SqlPercentileFunctionType.APPROXIMATE_DISCRETE} + @override + def render_date_part(self, date_part: DatePart) -> str: + if date_part is DatePart.DOW: + return "DAYOFWEEK_ISO" + + return super().render_date_part(date_part) + @override def visit_percentile_expr(self, node: SqlPercentileExpression) -> SqlExpressionRenderResult: """Render a percentile expression for Databricks.""" diff --git a/metricflow/sql/render/expr_renderer.py b/metricflow/sql/render/expr_renderer.py index 84df8d2395..8c603ffdc4 100644 --- a/metricflow/sql/render/expr_renderer.py +++ b/metricflow/sql/render/expr_renderer.py @@ -278,7 +278,13 @@ def visit_extract_expr(self, node: SqlExtractExpression) -> SqlExpressionRenderR ) def render_date_part(self, date_part: DatePart) -> str: - """Render DATE PART for an EXTRACT expression.""" + """Render DATE PART for an EXTRACT expression. + + For DatePart.DOW (day of week) we use the ISO date part to ensure all engines return consistent results. + """ + if date_part is DatePart.DOW: + return "isodow" + return date_part.value def visit_time_delta_expr(self, node: SqlSubtractTimeIntervalExpression) -> SqlExpressionRenderResult: # noqa: D diff --git a/metricflow/sql/render/redshift.py b/metricflow/sql/render/redshift.py index 3b64682f7d..d4ab4ef3f8 100644 --- a/metricflow/sql/render/redshift.py +++ b/metricflow/sql/render/redshift.py @@ -14,6 +14,7 @@ from metricflow.sql.render.sql_plan_renderer import DefaultSqlQueryPlanRenderer from metricflow.sql.sql_bind_parameters import SqlBindParameters from metricflow.sql.sql_exprs import SqlGenerateUuidExpression, SqlPercentileExpression, SqlPercentileFunctionType +from metricflow.time.date_part import DatePart class RedshiftSqlExpressionRenderer(DefaultSqlExpressionRenderer): @@ -25,6 +26,10 @@ def double_data_type(self) -> str: """Custom double data type for the Redshift engine.""" return "DOUBLE PRECISION" + @override + def render_date_part(self, date_part: DatePart) -> str: + return date_part.value + @property @override def supported_percentile_function_types(self) -> Collection[SqlPercentileFunctionType]: diff --git a/metricflow/sql/render/snowflake.py b/metricflow/sql/render/snowflake.py index d2a0fea6a6..c368cbdf57 100644 --- a/metricflow/sql/render/snowflake.py +++ b/metricflow/sql/render/snowflake.py @@ -14,6 +14,7 @@ from metricflow.sql.render.sql_plan_renderer import DefaultSqlQueryPlanRenderer from metricflow.sql.sql_bind_parameters import SqlBindParameters from metricflow.sql.sql_exprs import SqlGenerateUuidExpression, SqlPercentileExpression, SqlPercentileFunctionType +from metricflow.time.date_part import DatePart class SnowflakeSqlExpressionRenderer(DefaultSqlExpressionRenderer): @@ -28,6 +29,13 @@ def supported_percentile_function_types(self) -> Collection[SqlPercentileFunctio SqlPercentileFunctionType.APPROXIMATE_CONTINUOUS, } + @override + def render_date_part(self, date_part: DatePart) -> str: + if date_part is DatePart.DOW: + return "dayofweekiso" + + return super().render_date_part(date_part) + @override def visit_generate_uuid_expr(self, node: SqlGenerateUuidExpression) -> SqlExpressionRenderResult: return SqlExpressionRenderResult( diff --git a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Databricks/test_convert_query_semantic_model__plan0.sql b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Databricks/test_convert_query_semantic_model__plan0.sql index ab86a9036e..e66d6dddc3 100644 --- a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Databricks/test_convert_query_semantic_model__plan0.sql +++ b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Databricks/test_convert_query_semantic_model__plan0.sql @@ -10,7 +10,7 @@ SELECT , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Databricks/test_convert_table_semantic_model_with_measures__plan0.sql b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Databricks/test_convert_table_semantic_model_with_measures__plan0.sql index ad7211ccf9..d600e88591 100644 --- a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Databricks/test_convert_table_semantic_model_with_measures__plan0.sql +++ b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Databricks/test_convert_table_semantic_model_with_measures__plan0.sql @@ -10,7 +10,7 @@ SELECT , EXTRACT(quarter FROM id_verifications_src_10003.ds) AS ds__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds) AS ds__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds) AS ds__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM id_verifications_src_10003.ds) AS ds__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds) AS ds__extract_doy , DATE_TRUNC('day', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__week @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_doy , id_verifications_src_10003.verification_type , DATE_TRUNC('day', id_verifications_src_10003.ds) AS verification__ds__day @@ -33,7 +33,7 @@ SELECT , EXTRACT(quarter FROM id_verifications_src_10003.ds) AS verification__ds__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds) AS verification__ds__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds) AS verification__ds__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds) AS verification__ds__extract_doy , DATE_TRUNC('day', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__day , DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__week @@ -44,7 +44,7 @@ SELECT , EXTRACT(quarter FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_doy , id_verifications_src_10003.verification_type AS verification__verification_type , id_verifications_src_10003.verification_id AS verification diff --git a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Databricks/test_convert_table_semantic_model_without_measures__plan0.sql b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Databricks/test_convert_table_semantic_model_without_measures__plan0.sql index 96ec1e1c14..b0c9ffa482 100644 --- a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Databricks/test_convert_table_semantic_model_without_measures__plan0.sql +++ b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Databricks/test_convert_table_semantic_model_without_measures__plan0.sql @@ -9,7 +9,7 @@ SELECT , EXTRACT(quarter FROM users_latest_src_10008.ds) AS ds_latest__extract_quarter , EXTRACT(month FROM users_latest_src_10008.ds) AS ds_latest__extract_month , EXTRACT(day FROM users_latest_src_10008.ds) AS ds_latest__extract_day - , EXTRACT(dow FROM users_latest_src_10008.ds) AS ds_latest__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM users_latest_src_10008.ds) AS ds_latest__extract_dow , EXTRACT(doy FROM users_latest_src_10008.ds) AS ds_latest__extract_doy , users_latest_src_10008.home_state_latest , DATE_TRUNC('day', users_latest_src_10008.ds) AS user__ds_latest__day @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM users_latest_src_10008.ds) AS user__ds_latest__extract_quarter , EXTRACT(month FROM users_latest_src_10008.ds) AS user__ds_latest__extract_month , EXTRACT(day FROM users_latest_src_10008.ds) AS user__ds_latest__extract_day - , EXTRACT(dow FROM users_latest_src_10008.ds) AS user__ds_latest__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM users_latest_src_10008.ds) AS user__ds_latest__extract_dow , EXTRACT(doy FROM users_latest_src_10008.ds) AS user__ds_latest__extract_doy , users_latest_src_10008.home_state_latest AS user__home_state_latest , users_latest_src_10008.user_id AS user diff --git a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/DuckDB/test_convert_query_semantic_model__plan0.sql b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/DuckDB/test_convert_query_semantic_model__plan0.sql index ab86a9036e..042424c85d 100644 --- a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/DuckDB/test_convert_query_semantic_model__plan0.sql +++ b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/DuckDB/test_convert_query_semantic_model__plan0.sql @@ -10,7 +10,7 @@ SELECT , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/DuckDB/test_convert_table_semantic_model_with_measures__plan0.sql b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/DuckDB/test_convert_table_semantic_model_with_measures__plan0.sql index ad7211ccf9..26f04aefa0 100644 --- a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/DuckDB/test_convert_table_semantic_model_with_measures__plan0.sql +++ b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/DuckDB/test_convert_table_semantic_model_with_measures__plan0.sql @@ -10,7 +10,7 @@ SELECT , EXTRACT(quarter FROM id_verifications_src_10003.ds) AS ds__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds) AS ds__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds) AS ds__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds) AS ds__extract_dow + , EXTRACT(isodow FROM id_verifications_src_10003.ds) AS ds__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds) AS ds__extract_doy , DATE_TRUNC('day', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__week @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_doy , id_verifications_src_10003.verification_type , DATE_TRUNC('day', id_verifications_src_10003.ds) AS verification__ds__day @@ -33,7 +33,7 @@ SELECT , EXTRACT(quarter FROM id_verifications_src_10003.ds) AS verification__ds__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds) AS verification__ds__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds) AS verification__ds__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow + , EXTRACT(isodow FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds) AS verification__ds__extract_doy , DATE_TRUNC('day', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__day , DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__week @@ -44,7 +44,7 @@ SELECT , EXTRACT(quarter FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow + , EXTRACT(isodow FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_doy , id_verifications_src_10003.verification_type AS verification__verification_type , id_verifications_src_10003.verification_id AS verification diff --git a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/DuckDB/test_convert_table_semantic_model_without_measures__plan0.sql b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/DuckDB/test_convert_table_semantic_model_without_measures__plan0.sql index 96ec1e1c14..9542d63f41 100644 --- a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/DuckDB/test_convert_table_semantic_model_without_measures__plan0.sql +++ b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/DuckDB/test_convert_table_semantic_model_without_measures__plan0.sql @@ -9,7 +9,7 @@ SELECT , EXTRACT(quarter FROM users_latest_src_10008.ds) AS ds_latest__extract_quarter , EXTRACT(month FROM users_latest_src_10008.ds) AS ds_latest__extract_month , EXTRACT(day FROM users_latest_src_10008.ds) AS ds_latest__extract_day - , EXTRACT(dow FROM users_latest_src_10008.ds) AS ds_latest__extract_dow + , EXTRACT(isodow FROM users_latest_src_10008.ds) AS ds_latest__extract_dow , EXTRACT(doy FROM users_latest_src_10008.ds) AS ds_latest__extract_doy , users_latest_src_10008.home_state_latest , DATE_TRUNC('day', users_latest_src_10008.ds) AS user__ds_latest__day @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM users_latest_src_10008.ds) AS user__ds_latest__extract_quarter , EXTRACT(month FROM users_latest_src_10008.ds) AS user__ds_latest__extract_month , EXTRACT(day FROM users_latest_src_10008.ds) AS user__ds_latest__extract_day - , EXTRACT(dow FROM users_latest_src_10008.ds) AS user__ds_latest__extract_dow + , EXTRACT(isodow FROM users_latest_src_10008.ds) AS user__ds_latest__extract_dow , EXTRACT(doy FROM users_latest_src_10008.ds) AS user__ds_latest__extract_doy , users_latest_src_10008.home_state_latest AS user__home_state_latest , users_latest_src_10008.user_id AS user diff --git a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Postgres/test_convert_query_semantic_model__plan0.sql b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Postgres/test_convert_query_semantic_model__plan0.sql index ab86a9036e..042424c85d 100644 --- a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Postgres/test_convert_query_semantic_model__plan0.sql +++ b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Postgres/test_convert_query_semantic_model__plan0.sql @@ -10,7 +10,7 @@ SELECT , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Postgres/test_convert_table_semantic_model_with_measures__plan0.sql b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Postgres/test_convert_table_semantic_model_with_measures__plan0.sql index ad7211ccf9..26f04aefa0 100644 --- a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Postgres/test_convert_table_semantic_model_with_measures__plan0.sql +++ b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Postgres/test_convert_table_semantic_model_with_measures__plan0.sql @@ -10,7 +10,7 @@ SELECT , EXTRACT(quarter FROM id_verifications_src_10003.ds) AS ds__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds) AS ds__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds) AS ds__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds) AS ds__extract_dow + , EXTRACT(isodow FROM id_verifications_src_10003.ds) AS ds__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds) AS ds__extract_doy , DATE_TRUNC('day', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__week @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_doy , id_verifications_src_10003.verification_type , DATE_TRUNC('day', id_verifications_src_10003.ds) AS verification__ds__day @@ -33,7 +33,7 @@ SELECT , EXTRACT(quarter FROM id_verifications_src_10003.ds) AS verification__ds__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds) AS verification__ds__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds) AS verification__ds__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow + , EXTRACT(isodow FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds) AS verification__ds__extract_doy , DATE_TRUNC('day', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__day , DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__week @@ -44,7 +44,7 @@ SELECT , EXTRACT(quarter FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow + , EXTRACT(isodow FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_doy , id_verifications_src_10003.verification_type AS verification__verification_type , id_verifications_src_10003.verification_id AS verification diff --git a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Postgres/test_convert_table_semantic_model_without_measures__plan0.sql b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Postgres/test_convert_table_semantic_model_without_measures__plan0.sql index 96ec1e1c14..9542d63f41 100644 --- a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Postgres/test_convert_table_semantic_model_without_measures__plan0.sql +++ b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Postgres/test_convert_table_semantic_model_without_measures__plan0.sql @@ -9,7 +9,7 @@ SELECT , EXTRACT(quarter FROM users_latest_src_10008.ds) AS ds_latest__extract_quarter , EXTRACT(month FROM users_latest_src_10008.ds) AS ds_latest__extract_month , EXTRACT(day FROM users_latest_src_10008.ds) AS ds_latest__extract_day - , EXTRACT(dow FROM users_latest_src_10008.ds) AS ds_latest__extract_dow + , EXTRACT(isodow FROM users_latest_src_10008.ds) AS ds_latest__extract_dow , EXTRACT(doy FROM users_latest_src_10008.ds) AS ds_latest__extract_doy , users_latest_src_10008.home_state_latest , DATE_TRUNC('day', users_latest_src_10008.ds) AS user__ds_latest__day @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM users_latest_src_10008.ds) AS user__ds_latest__extract_quarter , EXTRACT(month FROM users_latest_src_10008.ds) AS user__ds_latest__extract_month , EXTRACT(day FROM users_latest_src_10008.ds) AS user__ds_latest__extract_day - , EXTRACT(dow FROM users_latest_src_10008.ds) AS user__ds_latest__extract_dow + , EXTRACT(isodow FROM users_latest_src_10008.ds) AS user__ds_latest__extract_dow , EXTRACT(doy FROM users_latest_src_10008.ds) AS user__ds_latest__extract_doy , users_latest_src_10008.home_state_latest AS user__home_state_latest , users_latest_src_10008.user_id AS user diff --git a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Snowflake/test_convert_query_semantic_model__plan0.sql b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Snowflake/test_convert_query_semantic_model__plan0.sql index ab86a9036e..847aa5e171 100644 --- a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Snowflake/test_convert_query_semantic_model__plan0.sql +++ b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Snowflake/test_convert_query_semantic_model__plan0.sql @@ -10,7 +10,7 @@ SELECT , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(dayofweekiso FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Snowflake/test_convert_table_semantic_model_with_measures__plan0.sql b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Snowflake/test_convert_table_semantic_model_with_measures__plan0.sql index ad7211ccf9..c3becf3fc8 100644 --- a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Snowflake/test_convert_table_semantic_model_with_measures__plan0.sql +++ b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Snowflake/test_convert_table_semantic_model_with_measures__plan0.sql @@ -10,7 +10,7 @@ SELECT , EXTRACT(quarter FROM id_verifications_src_10003.ds) AS ds__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds) AS ds__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds) AS ds__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM id_verifications_src_10003.ds) AS ds__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds) AS ds__extract_doy , DATE_TRUNC('day', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__week @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_doy , id_verifications_src_10003.verification_type , DATE_TRUNC('day', id_verifications_src_10003.ds) AS verification__ds__day @@ -33,7 +33,7 @@ SELECT , EXTRACT(quarter FROM id_verifications_src_10003.ds) AS verification__ds__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds) AS verification__ds__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds) AS verification__ds__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow + , EXTRACT(dayofweekiso FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds) AS verification__ds__extract_doy , DATE_TRUNC('day', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__day , DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__week @@ -44,7 +44,7 @@ SELECT , EXTRACT(quarter FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_doy , id_verifications_src_10003.verification_type AS verification__verification_type , id_verifications_src_10003.verification_id AS verification diff --git a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Snowflake/test_convert_table_semantic_model_without_measures__plan0.sql b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Snowflake/test_convert_table_semantic_model_without_measures__plan0.sql index 96ec1e1c14..397bd30737 100644 --- a/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Snowflake/test_convert_table_semantic_model_without_measures__plan0.sql +++ b/metricflow/test/snapshots/test_convert_semantic_model.py/SqlQueryPlan/Snowflake/test_convert_table_semantic_model_without_measures__plan0.sql @@ -9,7 +9,7 @@ SELECT , EXTRACT(quarter FROM users_latest_src_10008.ds) AS ds_latest__extract_quarter , EXTRACT(month FROM users_latest_src_10008.ds) AS ds_latest__extract_month , EXTRACT(day FROM users_latest_src_10008.ds) AS ds_latest__extract_day - , EXTRACT(dow FROM users_latest_src_10008.ds) AS ds_latest__extract_dow + , EXTRACT(dayofweekiso FROM users_latest_src_10008.ds) AS ds_latest__extract_dow , EXTRACT(doy FROM users_latest_src_10008.ds) AS ds_latest__extract_doy , users_latest_src_10008.home_state_latest , DATE_TRUNC('day', users_latest_src_10008.ds) AS user__ds_latest__day @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM users_latest_src_10008.ds) AS user__ds_latest__extract_quarter , EXTRACT(month FROM users_latest_src_10008.ds) AS user__ds_latest__extract_month , EXTRACT(day FROM users_latest_src_10008.ds) AS user__ds_latest__extract_day - , EXTRACT(dow FROM users_latest_src_10008.ds) AS user__ds_latest__extract_dow + , EXTRACT(dayofweekiso FROM users_latest_src_10008.ds) AS user__ds_latest__extract_dow , EXTRACT(doy FROM users_latest_src_10008.ds) AS user__ds_latest__extract_doy , users_latest_src_10008.home_state_latest AS user__home_state_latest , users_latest_src_10008.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_common_semantic_model__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_common_semantic_model__plan0.sql index 02c67b1f1d..07dc51cee4 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_common_semantic_model__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_common_semantic_model__plan0.sql @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -158,7 +158,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -169,7 +169,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -192,7 +192,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -203,7 +203,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -363,7 +363,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -374,7 +374,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -385,7 +385,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -397,7 +397,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -408,7 +408,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -419,7 +419,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_compute_metrics_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_compute_metrics_node__plan0.sql index e538be4e44..379c4ecb15 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_compute_metrics_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_compute_metrics_node__plan0.sql @@ -48,7 +48,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -59,7 +59,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -70,7 +70,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -82,7 +82,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -93,7 +93,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -104,7 +104,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -136,7 +136,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -161,7 +161,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -172,7 +172,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.sql index e7ff8d05e2..cce4a6d693 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.sql @@ -171,7 +171,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -182,7 +182,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -193,7 +193,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -205,7 +205,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -216,7 +216,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -227,7 +227,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -330,7 +330,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -341,7 +341,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -355,7 +355,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -366,7 +366,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest @@ -496,7 +496,7 @@ FROM ( , EXTRACT(quarter FROM views_source_src_10009.ds) AS ds__extract_quarter , EXTRACT(month FROM views_source_src_10009.ds) AS ds__extract_month , EXTRACT(day FROM views_source_src_10009.ds) AS ds__extract_day - , EXTRACT(dow FROM views_source_src_10009.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM views_source_src_10009.ds) AS ds__extract_dow , EXTRACT(doy FROM views_source_src_10009.ds) AS ds__extract_doy , DATE_TRUNC('day', views_source_src_10009.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', views_source_src_10009.ds_partitioned) AS ds_partitioned__week @@ -507,7 +507,7 @@ FROM ( , EXTRACT(quarter FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', views_source_src_10009.ds) AS view__ds__day , DATE_TRUNC('week', views_source_src_10009.ds) AS view__ds__week @@ -518,7 +518,7 @@ FROM ( , EXTRACT(quarter FROM views_source_src_10009.ds) AS view__ds__extract_quarter , EXTRACT(month FROM views_source_src_10009.ds) AS view__ds__extract_month , EXTRACT(day FROM views_source_src_10009.ds) AS view__ds__extract_day - , EXTRACT(dow FROM views_source_src_10009.ds) AS view__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM views_source_src_10009.ds) AS view__ds__extract_dow , EXTRACT(doy FROM views_source_src_10009.ds) AS view__ds__extract_doy , DATE_TRUNC('day', views_source_src_10009.ds_partitioned) AS view__ds_partitioned__day , DATE_TRUNC('week', views_source_src_10009.ds_partitioned) AS view__ds_partitioned__week @@ -529,7 +529,7 @@ FROM ( , EXTRACT(quarter FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_quarter , EXTRACT(month FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_month , EXTRACT(day FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_day - , EXTRACT(dow FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_dow , EXTRACT(doy FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_doy , views_source_src_10009.listing_id AS listing , views_source_src_10009.user_id AS user @@ -630,7 +630,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -641,7 +641,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -655,7 +655,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -666,7 +666,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.sql index 557c8fa827..36354019e7 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.sql @@ -51,7 +51,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -62,7 +62,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -73,7 +73,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -85,7 +85,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -96,7 +96,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -107,7 +107,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -139,7 +139,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -150,7 +150,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -164,7 +164,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -175,7 +175,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_compute_metrics_node_simple_expr__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_compute_metrics_node_simple_expr__plan0.sql index b605ddaab8..849d6bdd73 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_compute_metrics_node_simple_expr__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_compute_metrics_node_simple_expr__plan0.sql @@ -48,7 +48,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -59,7 +59,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -70,7 +70,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -82,7 +82,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -93,7 +93,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -104,7 +104,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -136,7 +136,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -161,7 +161,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -172,7 +172,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_constrain_time_range_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_constrain_time_range_node__plan0.sql index 3cb28606de..e53f0fd11b 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_constrain_time_range_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_constrain_time_range_node__plan0.sql @@ -42,7 +42,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -53,7 +53,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -64,7 +64,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -76,7 +76,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -87,7 +87,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -98,7 +98,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric__plan0.sql index 88a6d4fd8a..72257900d1 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric__plan0.sql @@ -65,7 +65,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -76,7 +76,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_grain_to_date__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_grain_to_date__plan0.sql index 42156f7eee..7ee47bd1e6 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_grain_to_date__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_grain_to_date__plan0.sql @@ -65,7 +65,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -76,7 +76,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_no_ds__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_no_ds__plan0.sql index 5b7887d232..0f0e838642 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_no_ds__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_no_ds__plan0.sql @@ -62,7 +62,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -73,7 +73,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_no_window__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_no_window__plan0.sql index 165461634d..f63f9071b0 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_no_window__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_no_window__plan0.sql @@ -65,7 +65,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -76,7 +76,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_no_window_with_time_constraint__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_no_window_with_time_constraint__plan0.sql index 7157a555a0..692c080b72 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_no_window_with_time_constraint__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_no_window_with_time_constraint__plan0.sql @@ -104,7 +104,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -115,7 +115,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_with_time_constraint__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_with_time_constraint__plan0.sql index a7ada383e1..9ab38c7093 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_with_time_constraint__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_cumulative_metric_with_time_constraint__plan0.sql @@ -104,7 +104,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -115,7 +115,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric__plan0.sql index 6d26c880d1..097834a44e 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -368,7 +368,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -379,7 +379,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -390,7 +390,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -402,7 +402,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -413,7 +413,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -424,7 +424,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_to_grain__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_to_grain__plan0.sql index b6c51504b0..046b1c3478 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_to_grain__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_to_grain__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_to_grain_and_granularity__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_to_grain_and_granularity__plan0.sql index 57d2f00513..a708ce4a8e 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_to_grain_and_granularity__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_to_grain_and_granularity__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_window__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_window__plan0.sql index b16bac877b..92b03bebe8 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_window__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_window__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_window_and_granularity__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_window_and_granularity__plan0.sql index 7ec2828600..aca3ea0065 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_window_and_granularity__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_window_and_granularity__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.sql index 2bb12399b8..8545ddd49d 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.sql @@ -249,7 +249,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -260,7 +260,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -271,7 +271,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -283,7 +283,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -294,7 +294,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -305,7 +305,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -565,7 +565,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -576,7 +576,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -587,7 +587,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -599,7 +599,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -610,7 +610,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -621,7 +621,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.sql index 179f1aa3b2..189201fc45 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.sql @@ -249,7 +249,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -260,7 +260,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -271,7 +271,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -283,7 +283,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -294,7 +294,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -305,7 +305,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -566,7 +566,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -577,7 +577,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -588,7 +588,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -600,7 +600,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -611,7 +611,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -622,7 +622,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_offset_cumulative_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_offset_cumulative_metric__plan0.sql index 71991cf8dc..0aa6fd6300 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_offset_cumulative_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_offset_cumulative_metric__plan0.sql @@ -350,7 +350,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -361,7 +361,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -372,7 +372,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -384,7 +384,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -395,7 +395,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -406,7 +406,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_offset_metric_with_one_input_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_offset_metric_with_one_input_metric__plan0.sql index 4d5dd790f3..f37169e929 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_offset_metric_with_one_input_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_derived_offset_metric_with_one_input_metric__plan0.sql @@ -243,7 +243,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -254,7 +254,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -265,7 +265,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -277,7 +277,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -288,7 +288,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -299,7 +299,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_distinct_values__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_distinct_values__plan0.sql index 635a5427b7..e619b12f0c 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_distinct_values__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_distinct_values__plan0.sql @@ -80,7 +80,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -91,7 +91,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -105,7 +105,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -116,7 +116,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_filter_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_filter_node__plan0.sql index 1244d9945d..1c7ff60c02 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_filter_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_filter_node__plan0.sql @@ -29,7 +29,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -40,7 +40,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -51,7 +51,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -63,7 +63,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -74,7 +74,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -85,7 +85,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_filter_with_where_constraint_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_filter_with_where_constraint_node__plan0.sql index 80aa98ee5f..bb31c69935 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_filter_with_where_constraint_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_filter_with_where_constraint_node__plan0.sql @@ -35,7 +35,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -46,7 +46,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -57,7 +57,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -69,7 +69,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -80,7 +80,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -91,7 +91,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_filter_with_where_constraint_on_join_dim__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_filter_with_where_constraint_on_join_dim__plan0.sql index 9071b78119..e3fb65cbf6 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_filter_with_where_constraint_on_join_dim__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_filter_with_where_constraint_on_join_dim__plan0.sql @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -179,7 +179,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -190,7 +190,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -213,7 +213,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -224,7 +224,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -327,7 +327,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -338,7 +338,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -352,7 +352,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -363,7 +363,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_join_to_scd_dimension__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_join_to_scd_dimension__plan0.sql index 21832677e6..3dce9387f2 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_join_to_scd_dimension__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_join_to_scd_dimension__plan0.sql @@ -156,7 +156,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10015.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__week @@ -167,7 +167,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS paid_at__week @@ -178,7 +178,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS paid_at__extract_doy , bookings_source_src_10015.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10015.ds) AS booking__ds__day @@ -190,7 +190,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__week @@ -201,7 +201,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS booking__paid_at__week @@ -212,7 +212,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10015.listing_id AS listing , bookings_source_src_10015.guest_id AS guest @@ -246,7 +246,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_from) AS window_start__extract_quarter , EXTRACT(month FROM listings_src_10017.active_from) AS window_start__extract_month , EXTRACT(day FROM listings_src_10017.active_from) AS window_start__extract_day - , EXTRACT(dow FROM listings_src_10017.active_from) AS window_start__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_src_10017.active_from) AS window_start__extract_dow , EXTRACT(doy FROM listings_src_10017.active_from) AS window_start__extract_doy , listings_src_10017.active_to AS window_end__day , DATE_TRUNC('week', listings_src_10017.active_to) AS window_end__week @@ -257,7 +257,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_to) AS window_end__extract_quarter , EXTRACT(month FROM listings_src_10017.active_to) AS window_end__extract_month , EXTRACT(day FROM listings_src_10017.active_to) AS window_end__extract_day - , EXTRACT(dow FROM listings_src_10017.active_to) AS window_end__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_src_10017.active_to) AS window_end__extract_dow , EXTRACT(doy FROM listings_src_10017.active_to) AS window_end__extract_doy , listings_src_10017.country , listings_src_10017.is_lux @@ -271,7 +271,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_from) AS listing__window_start__extract_quarter , EXTRACT(month FROM listings_src_10017.active_from) AS listing__window_start__extract_month , EXTRACT(day FROM listings_src_10017.active_from) AS listing__window_start__extract_day - , EXTRACT(dow FROM listings_src_10017.active_from) AS listing__window_start__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_src_10017.active_from) AS listing__window_start__extract_dow , EXTRACT(doy FROM listings_src_10017.active_from) AS listing__window_start__extract_doy , listings_src_10017.active_to AS listing__window_end__day , DATE_TRUNC('week', listings_src_10017.active_to) AS listing__window_end__week @@ -282,7 +282,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_to) AS listing__window_end__extract_quarter , EXTRACT(month FROM listings_src_10017.active_to) AS listing__window_end__extract_month , EXTRACT(day FROM listings_src_10017.active_to) AS listing__window_end__extract_day - , EXTRACT(dow FROM listings_src_10017.active_to) AS listing__window_end__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_src_10017.active_to) AS listing__window_end__extract_dow , EXTRACT(doy FROM listings_src_10017.active_to) AS listing__window_end__extract_doy , listings_src_10017.country AS listing__country , listings_src_10017.is_lux AS listing__is_lux diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_join_to_time_spine_node_with_offset_to_grain__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_join_to_time_spine_node_with_offset_to_grain__plan0.sql index 60be6502e7..892bfdd3ad 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_join_to_time_spine_node_with_offset_to_grain__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_join_to_time_spine_node_with_offset_to_grain__plan0.sql @@ -157,7 +157,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -168,7 +168,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -179,7 +179,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -191,7 +191,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -202,7 +202,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -213,7 +213,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_join_to_time_spine_node_with_offset_window__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_join_to_time_spine_node_with_offset_window__plan0.sql index bcdfa096e7..c852e50c24 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_join_to_time_spine_node_with_offset_window__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_join_to_time_spine_node_with_offset_window__plan0.sql @@ -157,7 +157,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -168,7 +168,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -179,7 +179,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -191,7 +191,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -202,7 +202,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -213,7 +213,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_join_to_time_spine_node_without_offset__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_join_to_time_spine_node_without_offset__plan0.sql index dc3ea8edb4..4d28b2ad55 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_join_to_time_spine_node_without_offset__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_join_to_time_spine_node_without_offset__plan0.sql @@ -157,7 +157,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -168,7 +168,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -179,7 +179,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -191,7 +191,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -202,7 +202,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -213,7 +213,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_limit_rows__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_limit_rows__plan0.sql index be82e3aa20..93b3a3d360 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_limit_rows__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_limit_rows__plan0.sql @@ -146,7 +146,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -157,7 +157,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -180,7 +180,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -191,7 +191,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_local_dimension_using_local_entity__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_local_dimension_using_local_entity__plan0.sql index a9df0cddc0..2cdc819d2e 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_local_dimension_using_local_entity__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_local_dimension_using_local_entity__plan0.sql @@ -98,7 +98,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -109,7 +109,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -123,7 +123,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -134,7 +134,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_measure_aggregation_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_measure_aggregation_node__plan0.sql index 1c26e58a38..40d373bb65 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_measure_aggregation_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_measure_aggregation_node__plan0.sql @@ -39,7 +39,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -50,7 +50,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -61,7 +61,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -73,7 +73,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -84,7 +84,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -95,7 +95,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_measure_constraint__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_measure_constraint__plan0.sql index 62f1ddc0c6..9bf98d60f7 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_measure_constraint__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_measure_constraint__plan0.sql @@ -180,7 +180,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -191,7 +191,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -214,7 +214,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -225,7 +225,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -236,7 +236,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -339,7 +339,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -350,7 +350,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -364,7 +364,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -375,7 +375,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest @@ -569,7 +569,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -580,7 +580,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -591,7 +591,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -603,7 +603,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -614,7 +614,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -625,7 +625,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -728,7 +728,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -739,7 +739,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -753,7 +753,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -764,7 +764,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest @@ -941,7 +941,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -952,7 +952,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -963,7 +963,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -975,7 +975,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -986,7 +986,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -997,7 +997,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_measure_constraint_with_reused_measure__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_measure_constraint_with_reused_measure__plan0.sql index 9ddf530c04..805de5201b 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_measure_constraint_with_reused_measure__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_measure_constraint_with_reused_measure__plan0.sql @@ -165,7 +165,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -176,7 +176,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -187,7 +187,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -199,7 +199,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -210,7 +210,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -221,7 +221,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -384,7 +384,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -395,7 +395,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -406,7 +406,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -418,7 +418,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -429,7 +429,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -440,7 +440,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_measure_constraint_with_single_expr_and_alias__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_measure_constraint_with_single_expr_and_alias__plan0.sql index e8ab341b30..da083784ed 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_measure_constraint_with_single_expr_and_alias__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_measure_constraint_with_single_expr_and_alias__plan0.sql @@ -159,7 +159,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -170,7 +170,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -193,7 +193,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -204,7 +204,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -215,7 +215,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.sql index cd94832c72..bdf1479a4d 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.sql @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -158,7 +158,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -169,7 +169,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -192,7 +192,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -203,7 +203,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -315,7 +315,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -326,7 +326,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -340,7 +340,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -351,7 +351,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multi_hop_through_scd_dimension__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multi_hop_through_scd_dimension__plan0.sql index c7bf69480d..f1e0646c86 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multi_hop_through_scd_dimension__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multi_hop_through_scd_dimension__plan0.sql @@ -146,7 +146,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10015.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__week @@ -157,7 +157,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS paid_at__week @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS paid_at__extract_doy , bookings_source_src_10015.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10015.ds) AS booking__ds__day @@ -180,7 +180,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__week @@ -191,7 +191,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS booking__paid_at__week @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10015.listing_id AS listing , bookings_source_src_10015.guest_id AS guest @@ -304,7 +304,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_from) AS window_start__extract_quarter , EXTRACT(month FROM listings_src_10017.active_from) AS window_start__extract_month , EXTRACT(day FROM listings_src_10017.active_from) AS window_start__extract_day - , EXTRACT(dow FROM listings_src_10017.active_from) AS window_start__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_src_10017.active_from) AS window_start__extract_dow , EXTRACT(doy FROM listings_src_10017.active_from) AS window_start__extract_doy , listings_src_10017.active_to AS window_end__day , DATE_TRUNC('week', listings_src_10017.active_to) AS window_end__week @@ -315,7 +315,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_to) AS window_end__extract_quarter , EXTRACT(month FROM listings_src_10017.active_to) AS window_end__extract_month , EXTRACT(day FROM listings_src_10017.active_to) AS window_end__extract_day - , EXTRACT(dow FROM listings_src_10017.active_to) AS window_end__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_src_10017.active_to) AS window_end__extract_dow , EXTRACT(doy FROM listings_src_10017.active_to) AS window_end__extract_doy , listings_src_10017.country , listings_src_10017.is_lux @@ -329,7 +329,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_from) AS listing__window_start__extract_quarter , EXTRACT(month FROM listings_src_10017.active_from) AS listing__window_start__extract_month , EXTRACT(day FROM listings_src_10017.active_from) AS listing__window_start__extract_day - , EXTRACT(dow FROM listings_src_10017.active_from) AS listing__window_start__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_src_10017.active_from) AS listing__window_start__extract_dow , EXTRACT(doy FROM listings_src_10017.active_from) AS listing__window_start__extract_doy , listings_src_10017.active_to AS listing__window_end__day , DATE_TRUNC('week', listings_src_10017.active_to) AS listing__window_end__week @@ -340,7 +340,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_to) AS listing__window_end__extract_quarter , EXTRACT(month FROM listings_src_10017.active_to) AS listing__window_end__extract_month , EXTRACT(day FROM listings_src_10017.active_to) AS listing__window_end__extract_day - , EXTRACT(dow FROM listings_src_10017.active_to) AS listing__window_end__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_src_10017.active_to) AS listing__window_end__extract_dow , EXTRACT(doy FROM listings_src_10017.active_to) AS listing__window_end__extract_doy , listings_src_10017.country AS listing__country , listings_src_10017.is_lux AS listing__is_lux @@ -415,7 +415,7 @@ FROM ( , EXTRACT(quarter FROM users_latest_src_10021.ds) AS ds__extract_quarter , EXTRACT(month FROM users_latest_src_10021.ds) AS ds__extract_month , EXTRACT(day FROM users_latest_src_10021.ds) AS ds__extract_day - , EXTRACT(dow FROM users_latest_src_10021.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM users_latest_src_10021.ds) AS ds__extract_dow , EXTRACT(doy FROM users_latest_src_10021.ds) AS ds__extract_doy , users_latest_src_10021.home_state_latest , DATE_TRUNC('day', users_latest_src_10021.ds) AS user__ds__day @@ -427,7 +427,7 @@ FROM ( , EXTRACT(quarter FROM users_latest_src_10021.ds) AS user__ds__extract_quarter , EXTRACT(month FROM users_latest_src_10021.ds) AS user__ds__extract_month , EXTRACT(day FROM users_latest_src_10021.ds) AS user__ds__extract_day - , EXTRACT(dow FROM users_latest_src_10021.ds) AS user__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM users_latest_src_10021.ds) AS user__ds__extract_dow , EXTRACT(doy FROM users_latest_src_10021.ds) AS user__ds__extract_doy , users_latest_src_10021.home_state_latest AS user__home_state_latest , users_latest_src_10021.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multi_hop_to_scd_dimension__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multi_hop_to_scd_dimension__plan0.sql index 5b3ca3f0a8..d32114ddad 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multi_hop_to_scd_dimension__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multi_hop_to_scd_dimension__plan0.sql @@ -146,7 +146,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10015.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__week @@ -157,7 +157,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS paid_at__week @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS paid_at__extract_doy , bookings_source_src_10015.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10015.ds) AS booking__ds__day @@ -180,7 +180,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__week @@ -191,7 +191,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS booking__paid_at__week @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10015.listing_id AS listing , bookings_source_src_10015.guest_id AS guest @@ -373,7 +373,7 @@ FROM ( , EXTRACT(quarter FROM lux_listings_src_10019.valid_from) AS window_start__extract_quarter , EXTRACT(month FROM lux_listings_src_10019.valid_from) AS window_start__extract_month , EXTRACT(day FROM lux_listings_src_10019.valid_from) AS window_start__extract_day - , EXTRACT(dow FROM lux_listings_src_10019.valid_from) AS window_start__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM lux_listings_src_10019.valid_from) AS window_start__extract_dow , EXTRACT(doy FROM lux_listings_src_10019.valid_from) AS window_start__extract_doy , lux_listings_src_10019.valid_to AS window_end__day , DATE_TRUNC('week', lux_listings_src_10019.valid_to) AS window_end__week @@ -384,7 +384,7 @@ FROM ( , EXTRACT(quarter FROM lux_listings_src_10019.valid_to) AS window_end__extract_quarter , EXTRACT(month FROM lux_listings_src_10019.valid_to) AS window_end__extract_month , EXTRACT(day FROM lux_listings_src_10019.valid_to) AS window_end__extract_day - , EXTRACT(dow FROM lux_listings_src_10019.valid_to) AS window_end__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM lux_listings_src_10019.valid_to) AS window_end__extract_dow , EXTRACT(doy FROM lux_listings_src_10019.valid_to) AS window_end__extract_doy , lux_listings_src_10019.is_confirmed_lux , lux_listings_src_10019.valid_from AS lux_listing__window_start__day @@ -396,7 +396,7 @@ FROM ( , EXTRACT(quarter FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_quarter , EXTRACT(month FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_month , EXTRACT(day FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_day - , EXTRACT(dow FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_dow , EXTRACT(doy FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_doy , lux_listings_src_10019.valid_to AS lux_listing__window_end__day , DATE_TRUNC('week', lux_listings_src_10019.valid_to) AS lux_listing__window_end__week @@ -407,7 +407,7 @@ FROM ( , EXTRACT(quarter FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_quarter , EXTRACT(month FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_month , EXTRACT(day FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_day - , EXTRACT(dow FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_dow , EXTRACT(doy FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_doy , lux_listings_src_10019.is_confirmed_lux AS lux_listing__is_confirmed_lux , lux_listings_src_10019.lux_listing_id AS lux_listing diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multi_join_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multi_join_node__plan0.sql index 0c665ca416..af21fd2a53 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multi_join_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multi_join_node__plan0.sql @@ -37,7 +37,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -48,7 +48,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -59,7 +59,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -71,7 +71,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -82,7 +82,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -93,7 +93,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -125,7 +125,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -136,7 +136,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -150,7 +150,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -161,7 +161,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest @@ -195,7 +195,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -206,7 +206,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -220,7 +220,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -231,7 +231,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multihop_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multihop_node__plan0.sql index 6f3ba6132d..24136e4058 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multihop_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multihop_node__plan0.sql @@ -103,7 +103,7 @@ FROM ( , EXTRACT(quarter FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', account_month_txns_src_10010.ds) AS ds__day , DATE_TRUNC('week', account_month_txns_src_10010.ds) AS ds__week @@ -114,7 +114,7 @@ FROM ( , EXTRACT(quarter FROM account_month_txns_src_10010.ds) AS ds__extract_quarter , EXTRACT(month FROM account_month_txns_src_10010.ds) AS ds__extract_month , EXTRACT(day FROM account_month_txns_src_10010.ds) AS ds__extract_day - , EXTRACT(dow FROM account_month_txns_src_10010.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM account_month_txns_src_10010.ds) AS ds__extract_dow , EXTRACT(doy FROM account_month_txns_src_10010.ds) AS ds__extract_doy , account_month_txns_src_10010.account_month , DATE_TRUNC('day', account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__day @@ -126,7 +126,7 @@ FROM ( , EXTRACT(quarter FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_quarter , EXTRACT(month FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_month , EXTRACT(day FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_day - , EXTRACT(dow FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_dow , EXTRACT(doy FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_doy , DATE_TRUNC('day', account_month_txns_src_10010.ds) AS account_id__ds__day , DATE_TRUNC('week', account_month_txns_src_10010.ds) AS account_id__ds__week @@ -137,7 +137,7 @@ FROM ( , EXTRACT(quarter FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_quarter , EXTRACT(month FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_month , EXTRACT(day FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_day - , EXTRACT(dow FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_dow , EXTRACT(doy FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_doy , account_month_txns_src_10010.account_month AS account_id__account_month , account_month_txns_src_10010.account_id @@ -222,7 +222,7 @@ FROM ( , EXTRACT(quarter FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_doy , bridge_table_src_10011.extra_dim AS account_id__extra_dim , DATE_TRUNC('day', bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__day @@ -234,7 +234,7 @@ FROM ( , EXTRACT(quarter FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_quarter , EXTRACT(month FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_month , EXTRACT(day FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_day - , EXTRACT(dow FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_dow , EXTRACT(doy FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_doy , bridge_table_src_10011.extra_dim AS bridge_account__extra_dim , DATE_TRUNC('day', bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__day @@ -246,7 +246,7 @@ FROM ( , EXTRACT(quarter FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_quarter , EXTRACT(month FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_month , EXTRACT(day FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_day - , EXTRACT(dow FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_dow , EXTRACT(doy FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_doy , bridge_table_src_10011.account_id , bridge_table_src_10011.customer_id @@ -326,7 +326,7 @@ FROM ( , EXTRACT(quarter FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_doy , customer_table_src_10013.customer_name AS customer_id__customer_name , customer_table_src_10013.customer_atomic_weight AS customer_id__customer_atomic_weight @@ -339,7 +339,7 @@ FROM ( , EXTRACT(quarter FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_quarter , EXTRACT(month FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_month , EXTRACT(day FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_day - , EXTRACT(dow FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_dow , EXTRACT(doy FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_doy , customer_table_src_10013.customer_id FROM ***************************.customer_table customer_table_src_10013 diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multiple_metrics_no_dimensions__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multiple_metrics_no_dimensions__plan0.sql index db8d6d4dc6..0497fb5627 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multiple_metrics_no_dimensions__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_multiple_metrics_no_dimensions__plan0.sql @@ -244,7 +244,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -255,7 +255,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -266,7 +266,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -278,7 +278,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -289,7 +289,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -300,7 +300,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -484,7 +484,7 @@ CROSS JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -495,7 +495,7 @@ CROSS JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -509,7 +509,7 @@ CROSS JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -520,7 +520,7 @@ CROSS JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_nested_derived_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_nested_derived_metric__plan0.sql index e184c40d9e..0bcc1c2e9e 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_nested_derived_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_nested_derived_metric__plan0.sql @@ -164,7 +164,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -175,7 +175,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -198,7 +198,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -209,7 +209,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -220,7 +220,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -380,7 +380,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -391,7 +391,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -402,7 +402,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -414,7 +414,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -425,7 +425,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -436,7 +436,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -608,7 +608,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -619,7 +619,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -630,7 +630,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -642,7 +642,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -653,7 +653,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -664,7 +664,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -834,7 +834,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -845,7 +845,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -856,7 +856,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -868,7 +868,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -879,7 +879,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -890,7 +890,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_offset_window_with_date_part__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_offset_window_with_date_part__plan0.sql index 6a952ab9bc..2879967246 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_offset_window_with_date_part__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_offset_window_with_date_part__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -243,7 +243,7 @@ FROM ( FROM ( -- Join to Time Spine Dataset SELECT - EXTRACT(dow FROM subq_7.metric_time__day) AS metric_time__extract_dow + EXTRACT(DAYOFWEEK_ISO FROM subq_7.metric_time__day) AS metric_time__extract_dow , subq_6.ds__day AS ds__day , subq_6.ds__week AS ds__week , subq_6.ds__month AS ds__month @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_offset_window_with_date_part__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_offset_window_with_date_part__plan0_optimized.sql index cbb1d95f41..bc01ce93a7 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_offset_window_with_date_part__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_offset_window_with_date_part__plan0_optimized.sql @@ -20,7 +20,7 @@ FROM ( -- Pass Only Elements: -- ['bookings', 'metric_time__extract_dow'] SELECT - EXTRACT(dow FROM ds) AS metric_time__extract_dow + EXTRACT(DAYOFWEEK_ISO FROM ds) AS metric_time__extract_dow , 1 AS bookings FROM ***************************.fct_bookings bookings_source_src_10001 ) subq_16 @@ -34,7 +34,7 @@ FROM ( -- Aggregate Measures -- Compute Metrics via Expressions SELECT - EXTRACT(dow FROM subq_22.ds) AS metric_time__extract_dow + EXTRACT(DAYOFWEEK_ISO FROM subq_22.ds) AS metric_time__extract_dow , SUM(subq_20.bookings) AS bookings_2_weeks_ago FROM ***************************.mf_time_spine subq_22 INNER JOIN ( @@ -48,7 +48,7 @@ FROM ( ON DATEADD(day, -14, subq_22.ds) = subq_20.metric_time__day GROUP BY - EXTRACT(dow FROM subq_22.ds) + EXTRACT(DAYOFWEEK_ISO FROM subq_22.ds) ) subq_26 ON ( diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_order_by_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_order_by_node__plan0.sql index c0f439ce6d..1fad0f7872 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_order_by_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_order_by_node__plan0.sql @@ -49,7 +49,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -60,7 +60,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -71,7 +71,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -83,7 +83,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -94,7 +94,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -105,7 +105,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_partitioned_join__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_partitioned_join__plan0.sql index 1cba2c2615..74585c6bf0 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_partitioned_join__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_partitioned_join__plan0.sql @@ -105,7 +105,7 @@ FROM ( , EXTRACT(quarter FROM id_verifications_src_10003.ds) AS ds__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds) AS ds__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds) AS ds__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM id_verifications_src_10003.ds) AS ds__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds) AS ds__extract_doy , DATE_TRUNC('day', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__week @@ -116,7 +116,7 @@ FROM ( , EXTRACT(quarter FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_doy , id_verifications_src_10003.verification_type , DATE_TRUNC('day', id_verifications_src_10003.ds) AS verification__ds__day @@ -128,7 +128,7 @@ FROM ( , EXTRACT(quarter FROM id_verifications_src_10003.ds) AS verification__ds__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds) AS verification__ds__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds) AS verification__ds__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds) AS verification__ds__extract_doy , DATE_TRUNC('day', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__day , DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__week @@ -139,7 +139,7 @@ FROM ( , EXTRACT(quarter FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_doy , id_verifications_src_10003.verification_type AS verification__verification_type , id_verifications_src_10003.verification_id AS verification @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.ds) AS ds__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.ds) AS ds__extract_month , EXTRACT(day FROM users_ds_source_src_10007.ds) AS ds__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM users_ds_source_src_10007.ds) AS ds__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.ds) AS ds__extract_doy , DATE_TRUNC('day', users_ds_source_src_10007.created_at) AS created_at__day , DATE_TRUNC('week', users_ds_source_src_10007.created_at) AS created_at__week @@ -179,7 +179,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.created_at) AS created_at__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.created_at) AS created_at__extract_month , EXTRACT(day FROM users_ds_source_src_10007.created_at) AS created_at__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM users_ds_source_src_10007.created_at) AS created_at__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.created_at) AS created_at__extract_doy , DATE_TRUNC('day', users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__week @@ -190,7 +190,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_doy , users_ds_source_src_10007.home_state , DATE_TRUNC('day', users_ds_source_src_10007.ds) AS user__ds__day @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.ds) AS user__ds__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.ds) AS user__ds__extract_month , EXTRACT(day FROM users_ds_source_src_10007.ds) AS user__ds__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.ds) AS user__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM users_ds_source_src_10007.ds) AS user__ds__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.ds) AS user__ds__extract_doy , DATE_TRUNC('day', users_ds_source_src_10007.created_at) AS user__created_at__day , DATE_TRUNC('week', users_ds_source_src_10007.created_at) AS user__created_at__week @@ -213,7 +213,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_month , EXTRACT(day FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_doy , DATE_TRUNC('day', users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__day , DATE_TRUNC('week', users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__week @@ -224,7 +224,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_month , EXTRACT(day FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_doy , users_ds_source_src_10007.home_state AS user__home_state , users_ds_source_src_10007.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node__plan0.sql index 2659cbd52f..3b991ddc6f 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node__plan0.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user @@ -82,7 +82,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -94,7 +94,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node__plan0_optimized.sql index a19cbd2307..e2ab28ba23 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node__plan0_optimized.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , account_type , DATE_TRUNC('day', ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS account__ds__extract_quarter , EXTRACT(month FROM ds) AS account__ds__extract_month , EXTRACT(day FROM ds) AS account__ds__extract_day - , EXTRACT(dow FROM ds) AS account__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds) AS account__ds__extract_dow , EXTRACT(doy FROM ds) AS account__ds__extract_doy , account_type AS account__account_type , user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node_with_grouping__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node_with_grouping__plan0.sql index 7fb7f7cd5d..3693e6cb82 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node_with_grouping__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node_with_grouping__plan0.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user @@ -83,7 +83,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -95,7 +95,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node_with_grouping__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node_with_grouping__plan0_optimized.sql index 1b0a5993d5..241f4d4578 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node_with_grouping__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node_with_grouping__plan0_optimized.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , account_type , DATE_TRUNC('day', ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS account__ds__extract_quarter , EXTRACT(month FROM ds) AS account__ds__extract_month , EXTRACT(day FROM ds) AS account__ds__extract_day - , EXTRACT(dow FROM ds) AS account__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds) AS account__ds__extract_dow , EXTRACT(doy FROM ds) AS account__ds__extract_doy , account_type AS account__account_type , user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node_with_queried_group_by__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node_with_queried_group_by__plan0.sql index d47c00c2ff..7f37b603da 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node_with_queried_group_by__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node_with_queried_group_by__plan0.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user @@ -83,7 +83,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -95,7 +95,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node_with_queried_group_by__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node_with_queried_group_by__plan0_optimized.sql index ec857a8a3c..2ed5dd83fa 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node_with_queried_group_by__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_semi_additive_join_node_with_queried_group_by__plan0_optimized.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , account_type , DATE_TRUNC('day', ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS account__ds__extract_quarter , EXTRACT(month FROM ds) AS account__ds__extract_month , EXTRACT(day FROM ds) AS account__ds__extract_day - , EXTRACT(dow FROM ds) AS account__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds) AS account__ds__extract_dow , EXTRACT(doy FROM ds) AS account__ds__extract_doy , account_type AS account__account_type , user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_simple_query_with_date_part__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_simple_query_with_date_part__plan0.sql index 555f66e073..0b99744234 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_simple_query_with_date_part__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_simple_query_with_date_part__plan0.sql @@ -141,7 +141,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -175,7 +175,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_simple_query_with_date_part__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_simple_query_with_date_part__plan0_optimized.sql index 33b25a725c..9233faf6e6 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_simple_query_with_date_part__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_simple_query_with_date_part__plan0_optimized.sql @@ -9,7 +9,7 @@ FROM ( -- Pass Only Elements: -- ['bookings', 'metric_time__extract_dow'] SELECT - EXTRACT(dow FROM ds) AS metric_time__extract_dow + EXTRACT(DAYOFWEEK_ISO FROM ds) AS metric_time__extract_dow , 1 AS bookings FROM ***************************.fct_bookings bookings_source_src_10001 ) subq_6 diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_simple_query_with_multiple_date_parts__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_simple_query_with_multiple_date_parts__plan0.sql index 547e875dc1..e1cf61b291 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_simple_query_with_multiple_date_parts__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_simple_query_with_multiple_date_parts__plan0.sql @@ -162,7 +162,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -173,7 +173,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -184,7 +184,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -196,7 +196,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -207,7 +207,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -218,7 +218,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_simple_query_with_multiple_date_parts__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_simple_query_with_multiple_date_parts__plan0_optimized.sql index bbc70c4ec8..11b9235dbc 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_simple_query_with_multiple_date_parts__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_simple_query_with_multiple_date_parts__plan0_optimized.sql @@ -24,7 +24,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS metric_time__extract_quarter , EXTRACT(month FROM ds) AS metric_time__extract_month , EXTRACT(day FROM ds) AS metric_time__extract_day - , EXTRACT(dow FROM ds) AS metric_time__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds) AS metric_time__extract_dow , EXTRACT(doy FROM ds) AS metric_time__extract_doy , 1 AS bookings FROM ***************************.fct_bookings bookings_source_src_10001 diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_single_join_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_single_join_node__plan0.sql index 39ea31a652..d5769334ab 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_single_join_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_single_join_node__plan0.sql @@ -35,7 +35,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -46,7 +46,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -57,7 +57,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -69,7 +69,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -80,7 +80,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -91,7 +91,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -123,7 +123,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -134,7 +134,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -148,7 +148,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -159,7 +159,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_source_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_source_node__plan0.sql index b25bba3bb9..6a1050e14b 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_source_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_source_node__plan0.sql @@ -24,7 +24,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -35,7 +35,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -46,7 +46,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -58,7 +58,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -69,7 +69,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -80,7 +80,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_source_node__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_source_node__plan0_optimized.sql index b570c8f026..8b442b9b07 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_source_node__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Databricks/test_source_node__plan0_optimized.sql @@ -24,7 +24,7 @@ SELECT , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS ds_partitioned__week @@ -35,7 +35,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS paid_at__day , DATE_TRUNC('week', paid_at) AS paid_at__week @@ -46,7 +46,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS paid_at__extract_month , EXTRACT(day FROM paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS paid_at__extract_doy , is_instant AS booking__is_instant , DATE_TRUNC('day', ds) AS booking__ds__day @@ -58,7 +58,7 @@ SELECT , EXTRACT(quarter FROM ds) AS booking__ds__extract_quarter , EXTRACT(month FROM ds) AS booking__ds__extract_month , EXTRACT(day FROM ds) AS booking__ds__extract_day - , EXTRACT(dow FROM ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds) AS booking__ds__extract_dow , EXTRACT(doy FROM ds) AS booking__ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS booking__ds_partitioned__week @@ -69,7 +69,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS booking__paid_at__day , DATE_TRUNC('week', paid_at) AS booking__paid_at__week @@ -80,7 +80,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS booking__paid_at__extract_doy , listing_id AS listing , guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_common_semantic_model__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_common_semantic_model__plan0.sql index 02c67b1f1d..1457dd33ee 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_common_semantic_model__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_common_semantic_model__plan0.sql @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -158,7 +158,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -169,7 +169,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -192,7 +192,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -203,7 +203,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -363,7 +363,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -374,7 +374,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -385,7 +385,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -397,7 +397,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -408,7 +408,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -419,7 +419,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_compute_metrics_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_compute_metrics_node__plan0.sql index e538be4e44..8acd57a67f 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_compute_metrics_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_compute_metrics_node__plan0.sql @@ -48,7 +48,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -59,7 +59,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -70,7 +70,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -82,7 +82,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -93,7 +93,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -104,7 +104,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -136,7 +136,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -161,7 +161,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -172,7 +172,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.sql index e7ff8d05e2..6a9d428c0a 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.sql @@ -171,7 +171,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -182,7 +182,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -193,7 +193,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -205,7 +205,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -216,7 +216,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -227,7 +227,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -330,7 +330,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -341,7 +341,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -355,7 +355,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -366,7 +366,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest @@ -496,7 +496,7 @@ FROM ( , EXTRACT(quarter FROM views_source_src_10009.ds) AS ds__extract_quarter , EXTRACT(month FROM views_source_src_10009.ds) AS ds__extract_month , EXTRACT(day FROM views_source_src_10009.ds) AS ds__extract_day - , EXTRACT(dow FROM views_source_src_10009.ds) AS ds__extract_dow + , EXTRACT(isodow FROM views_source_src_10009.ds) AS ds__extract_dow , EXTRACT(doy FROM views_source_src_10009.ds) AS ds__extract_doy , DATE_TRUNC('day', views_source_src_10009.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', views_source_src_10009.ds_partitioned) AS ds_partitioned__week @@ -507,7 +507,7 @@ FROM ( , EXTRACT(quarter FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', views_source_src_10009.ds) AS view__ds__day , DATE_TRUNC('week', views_source_src_10009.ds) AS view__ds__week @@ -518,7 +518,7 @@ FROM ( , EXTRACT(quarter FROM views_source_src_10009.ds) AS view__ds__extract_quarter , EXTRACT(month FROM views_source_src_10009.ds) AS view__ds__extract_month , EXTRACT(day FROM views_source_src_10009.ds) AS view__ds__extract_day - , EXTRACT(dow FROM views_source_src_10009.ds) AS view__ds__extract_dow + , EXTRACT(isodow FROM views_source_src_10009.ds) AS view__ds__extract_dow , EXTRACT(doy FROM views_source_src_10009.ds) AS view__ds__extract_doy , DATE_TRUNC('day', views_source_src_10009.ds_partitioned) AS view__ds_partitioned__day , DATE_TRUNC('week', views_source_src_10009.ds_partitioned) AS view__ds_partitioned__week @@ -529,7 +529,7 @@ FROM ( , EXTRACT(quarter FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_quarter , EXTRACT(month FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_month , EXTRACT(day FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_day - , EXTRACT(dow FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_dow + , EXTRACT(isodow FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_dow , EXTRACT(doy FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_doy , views_source_src_10009.listing_id AS listing , views_source_src_10009.user_id AS user @@ -630,7 +630,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -641,7 +641,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -655,7 +655,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -666,7 +666,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.sql index 557c8fa827..583678d2d6 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.sql @@ -51,7 +51,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -62,7 +62,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -73,7 +73,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -85,7 +85,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -96,7 +96,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -107,7 +107,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -139,7 +139,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -150,7 +150,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -164,7 +164,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -175,7 +175,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_compute_metrics_node_simple_expr__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_compute_metrics_node_simple_expr__plan0.sql index b605ddaab8..f04f16e5bf 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_compute_metrics_node_simple_expr__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_compute_metrics_node_simple_expr__plan0.sql @@ -48,7 +48,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -59,7 +59,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -70,7 +70,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -82,7 +82,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -93,7 +93,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -104,7 +104,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -136,7 +136,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -161,7 +161,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -172,7 +172,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_constrain_time_range_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_constrain_time_range_node__plan0.sql index 3cb28606de..9dc2aaef05 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_constrain_time_range_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_constrain_time_range_node__plan0.sql @@ -42,7 +42,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -53,7 +53,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -64,7 +64,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -76,7 +76,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -87,7 +87,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -98,7 +98,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric__plan0.sql index 88a6d4fd8a..e9c34e79c1 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric__plan0.sql @@ -65,7 +65,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -76,7 +76,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_grain_to_date__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_grain_to_date__plan0.sql index 42156f7eee..3f894968de 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_grain_to_date__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_grain_to_date__plan0.sql @@ -65,7 +65,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -76,7 +76,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_no_ds__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_no_ds__plan0.sql index 5b7887d232..2db07399cd 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_no_ds__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_no_ds__plan0.sql @@ -62,7 +62,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -73,7 +73,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_no_window__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_no_window__plan0.sql index 165461634d..883b02bd6e 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_no_window__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_no_window__plan0.sql @@ -65,7 +65,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -76,7 +76,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_no_window_with_time_constraint__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_no_window_with_time_constraint__plan0.sql index 7157a555a0..672f04d4d2 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_no_window_with_time_constraint__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_no_window_with_time_constraint__plan0.sql @@ -104,7 +104,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -115,7 +115,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_with_time_constraint__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_with_time_constraint__plan0.sql index a7ada383e1..b00b09b575 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_with_time_constraint__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_cumulative_metric_with_time_constraint__plan0.sql @@ -104,7 +104,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -115,7 +115,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric__plan0.sql index 6d26c880d1..127ebba768 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -368,7 +368,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -379,7 +379,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -390,7 +390,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -402,7 +402,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -413,7 +413,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -424,7 +424,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_to_grain__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_to_grain__plan0.sql index b6c51504b0..9ee6e81037 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_to_grain__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_to_grain__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_to_grain_and_granularity__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_to_grain_and_granularity__plan0.sql index 57d2f00513..b526384e42 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_to_grain_and_granularity__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_to_grain_and_granularity__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_window__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_window__plan0.sql index 7bb228bf28..4c269caac4 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_window__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_window__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_window_and_granularity__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_window_and_granularity__plan0.sql index 903e13cd05..1eca8bda82 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_window_and_granularity__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_window_and_granularity__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.sql index 74df355f9f..23be1ba20e 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.sql @@ -249,7 +249,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -260,7 +260,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -271,7 +271,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -283,7 +283,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -294,7 +294,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -305,7 +305,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -565,7 +565,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -576,7 +576,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -587,7 +587,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -599,7 +599,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -610,7 +610,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -621,7 +621,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.sql index dd1860dbbf..c6f5d6fd56 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.sql @@ -249,7 +249,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -260,7 +260,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -271,7 +271,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -283,7 +283,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -294,7 +294,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -305,7 +305,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -566,7 +566,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -577,7 +577,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -588,7 +588,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -600,7 +600,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -611,7 +611,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -622,7 +622,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_offset_cumulative_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_offset_cumulative_metric__plan0.sql index 9b4389709a..25fe3b87a3 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_offset_cumulative_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_offset_cumulative_metric__plan0.sql @@ -350,7 +350,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -361,7 +361,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -372,7 +372,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -384,7 +384,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -395,7 +395,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -406,7 +406,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_offset_metric_with_one_input_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_offset_metric_with_one_input_metric__plan0.sql index 04e2993aac..d82b53e13d 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_offset_metric_with_one_input_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_derived_offset_metric_with_one_input_metric__plan0.sql @@ -243,7 +243,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -254,7 +254,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -265,7 +265,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -277,7 +277,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -288,7 +288,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -299,7 +299,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_distinct_values__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_distinct_values__plan0.sql index 635a5427b7..7a6a9e1f3d 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_distinct_values__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_distinct_values__plan0.sql @@ -80,7 +80,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -91,7 +91,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -105,7 +105,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -116,7 +116,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_filter_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_filter_node__plan0.sql index 1244d9945d..3a790854dd 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_filter_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_filter_node__plan0.sql @@ -29,7 +29,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -40,7 +40,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -51,7 +51,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -63,7 +63,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -74,7 +74,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -85,7 +85,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_filter_with_where_constraint_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_filter_with_where_constraint_node__plan0.sql index 80aa98ee5f..e959b55f6b 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_filter_with_where_constraint_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_filter_with_where_constraint_node__plan0.sql @@ -35,7 +35,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -46,7 +46,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -57,7 +57,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -69,7 +69,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -80,7 +80,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -91,7 +91,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_filter_with_where_constraint_on_join_dim__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_filter_with_where_constraint_on_join_dim__plan0.sql index 9071b78119..e95c1119b3 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_filter_with_where_constraint_on_join_dim__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_filter_with_where_constraint_on_join_dim__plan0.sql @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -179,7 +179,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -190,7 +190,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -213,7 +213,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -224,7 +224,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -327,7 +327,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -338,7 +338,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -352,7 +352,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -363,7 +363,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_join_to_scd_dimension__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_join_to_scd_dimension__plan0.sql index 21832677e6..d6f3055b49 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_join_to_scd_dimension__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_join_to_scd_dimension__plan0.sql @@ -156,7 +156,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__week @@ -167,7 +167,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS paid_at__week @@ -178,7 +178,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS paid_at__extract_doy , bookings_source_src_10015.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10015.ds) AS booking__ds__day @@ -190,7 +190,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__week @@ -201,7 +201,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS booking__paid_at__week @@ -212,7 +212,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10015.listing_id AS listing , bookings_source_src_10015.guest_id AS guest @@ -246,7 +246,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_from) AS window_start__extract_quarter , EXTRACT(month FROM listings_src_10017.active_from) AS window_start__extract_month , EXTRACT(day FROM listings_src_10017.active_from) AS window_start__extract_day - , EXTRACT(dow FROM listings_src_10017.active_from) AS window_start__extract_dow + , EXTRACT(isodow FROM listings_src_10017.active_from) AS window_start__extract_dow , EXTRACT(doy FROM listings_src_10017.active_from) AS window_start__extract_doy , listings_src_10017.active_to AS window_end__day , DATE_TRUNC('week', listings_src_10017.active_to) AS window_end__week @@ -257,7 +257,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_to) AS window_end__extract_quarter , EXTRACT(month FROM listings_src_10017.active_to) AS window_end__extract_month , EXTRACT(day FROM listings_src_10017.active_to) AS window_end__extract_day - , EXTRACT(dow FROM listings_src_10017.active_to) AS window_end__extract_dow + , EXTRACT(isodow FROM listings_src_10017.active_to) AS window_end__extract_dow , EXTRACT(doy FROM listings_src_10017.active_to) AS window_end__extract_doy , listings_src_10017.country , listings_src_10017.is_lux @@ -271,7 +271,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_from) AS listing__window_start__extract_quarter , EXTRACT(month FROM listings_src_10017.active_from) AS listing__window_start__extract_month , EXTRACT(day FROM listings_src_10017.active_from) AS listing__window_start__extract_day - , EXTRACT(dow FROM listings_src_10017.active_from) AS listing__window_start__extract_dow + , EXTRACT(isodow FROM listings_src_10017.active_from) AS listing__window_start__extract_dow , EXTRACT(doy FROM listings_src_10017.active_from) AS listing__window_start__extract_doy , listings_src_10017.active_to AS listing__window_end__day , DATE_TRUNC('week', listings_src_10017.active_to) AS listing__window_end__week @@ -282,7 +282,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_to) AS listing__window_end__extract_quarter , EXTRACT(month FROM listings_src_10017.active_to) AS listing__window_end__extract_month , EXTRACT(day FROM listings_src_10017.active_to) AS listing__window_end__extract_day - , EXTRACT(dow FROM listings_src_10017.active_to) AS listing__window_end__extract_dow + , EXTRACT(isodow FROM listings_src_10017.active_to) AS listing__window_end__extract_dow , EXTRACT(doy FROM listings_src_10017.active_to) AS listing__window_end__extract_doy , listings_src_10017.country AS listing__country , listings_src_10017.is_lux AS listing__is_lux diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_join_to_time_spine_node_with_offset_to_grain__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_join_to_time_spine_node_with_offset_to_grain__plan0.sql index 60be6502e7..b1a59fc9d2 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_join_to_time_spine_node_with_offset_to_grain__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_join_to_time_spine_node_with_offset_to_grain__plan0.sql @@ -157,7 +157,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -168,7 +168,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -179,7 +179,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -191,7 +191,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -202,7 +202,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -213,7 +213,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_join_to_time_spine_node_with_offset_window__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_join_to_time_spine_node_with_offset_window__plan0.sql index 1796ef8b28..4143e8a21a 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_join_to_time_spine_node_with_offset_window__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_join_to_time_spine_node_with_offset_window__plan0.sql @@ -157,7 +157,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -168,7 +168,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -179,7 +179,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -191,7 +191,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -202,7 +202,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -213,7 +213,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_join_to_time_spine_node_without_offset__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_join_to_time_spine_node_without_offset__plan0.sql index dc3ea8edb4..99221f6773 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_join_to_time_spine_node_without_offset__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_join_to_time_spine_node_without_offset__plan0.sql @@ -157,7 +157,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -168,7 +168,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -179,7 +179,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -191,7 +191,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -202,7 +202,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -213,7 +213,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_limit_rows__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_limit_rows__plan0.sql index be82e3aa20..32f84a64a1 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_limit_rows__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_limit_rows__plan0.sql @@ -146,7 +146,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -157,7 +157,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -180,7 +180,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -191,7 +191,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_local_dimension_using_local_entity__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_local_dimension_using_local_entity__plan0.sql index a9df0cddc0..d3d98e92e5 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_local_dimension_using_local_entity__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_local_dimension_using_local_entity__plan0.sql @@ -98,7 +98,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -109,7 +109,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -123,7 +123,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -134,7 +134,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_measure_aggregation_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_measure_aggregation_node__plan0.sql index 1c26e58a38..db5e83a62c 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_measure_aggregation_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_measure_aggregation_node__plan0.sql @@ -39,7 +39,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -50,7 +50,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -61,7 +61,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -73,7 +73,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -84,7 +84,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -95,7 +95,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_measure_constraint__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_measure_constraint__plan0.sql index 62f1ddc0c6..dbb29c4d73 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_measure_constraint__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_measure_constraint__plan0.sql @@ -180,7 +180,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -191,7 +191,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -214,7 +214,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -225,7 +225,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -236,7 +236,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -339,7 +339,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -350,7 +350,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -364,7 +364,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -375,7 +375,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest @@ -569,7 +569,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -580,7 +580,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -591,7 +591,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -603,7 +603,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -614,7 +614,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -625,7 +625,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -728,7 +728,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -739,7 +739,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -753,7 +753,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -764,7 +764,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest @@ -941,7 +941,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -952,7 +952,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -963,7 +963,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -975,7 +975,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -986,7 +986,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -997,7 +997,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_measure_constraint_with_reused_measure__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_measure_constraint_with_reused_measure__plan0.sql index 9ddf530c04..a2fb429ea9 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_measure_constraint_with_reused_measure__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_measure_constraint_with_reused_measure__plan0.sql @@ -165,7 +165,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -176,7 +176,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -187,7 +187,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -199,7 +199,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -210,7 +210,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -221,7 +221,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -384,7 +384,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -395,7 +395,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -406,7 +406,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -418,7 +418,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -429,7 +429,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -440,7 +440,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_measure_constraint_with_single_expr_and_alias__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_measure_constraint_with_single_expr_and_alias__plan0.sql index e8ab341b30..0a51195dec 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_measure_constraint_with_single_expr_and_alias__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_measure_constraint_with_single_expr_and_alias__plan0.sql @@ -159,7 +159,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -170,7 +170,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -193,7 +193,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -204,7 +204,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -215,7 +215,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.sql index cd94832c72..6169511027 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.sql @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -158,7 +158,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -169,7 +169,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -192,7 +192,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -203,7 +203,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -315,7 +315,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -326,7 +326,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -340,7 +340,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -351,7 +351,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multi_hop_through_scd_dimension__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multi_hop_through_scd_dimension__plan0.sql index c7bf69480d..dcc369e93e 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multi_hop_through_scd_dimension__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multi_hop_through_scd_dimension__plan0.sql @@ -146,7 +146,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__week @@ -157,7 +157,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS paid_at__week @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS paid_at__extract_doy , bookings_source_src_10015.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10015.ds) AS booking__ds__day @@ -180,7 +180,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__week @@ -191,7 +191,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS booking__paid_at__week @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10015.listing_id AS listing , bookings_source_src_10015.guest_id AS guest @@ -304,7 +304,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_from) AS window_start__extract_quarter , EXTRACT(month FROM listings_src_10017.active_from) AS window_start__extract_month , EXTRACT(day FROM listings_src_10017.active_from) AS window_start__extract_day - , EXTRACT(dow FROM listings_src_10017.active_from) AS window_start__extract_dow + , EXTRACT(isodow FROM listings_src_10017.active_from) AS window_start__extract_dow , EXTRACT(doy FROM listings_src_10017.active_from) AS window_start__extract_doy , listings_src_10017.active_to AS window_end__day , DATE_TRUNC('week', listings_src_10017.active_to) AS window_end__week @@ -315,7 +315,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_to) AS window_end__extract_quarter , EXTRACT(month FROM listings_src_10017.active_to) AS window_end__extract_month , EXTRACT(day FROM listings_src_10017.active_to) AS window_end__extract_day - , EXTRACT(dow FROM listings_src_10017.active_to) AS window_end__extract_dow + , EXTRACT(isodow FROM listings_src_10017.active_to) AS window_end__extract_dow , EXTRACT(doy FROM listings_src_10017.active_to) AS window_end__extract_doy , listings_src_10017.country , listings_src_10017.is_lux @@ -329,7 +329,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_from) AS listing__window_start__extract_quarter , EXTRACT(month FROM listings_src_10017.active_from) AS listing__window_start__extract_month , EXTRACT(day FROM listings_src_10017.active_from) AS listing__window_start__extract_day - , EXTRACT(dow FROM listings_src_10017.active_from) AS listing__window_start__extract_dow + , EXTRACT(isodow FROM listings_src_10017.active_from) AS listing__window_start__extract_dow , EXTRACT(doy FROM listings_src_10017.active_from) AS listing__window_start__extract_doy , listings_src_10017.active_to AS listing__window_end__day , DATE_TRUNC('week', listings_src_10017.active_to) AS listing__window_end__week @@ -340,7 +340,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_to) AS listing__window_end__extract_quarter , EXTRACT(month FROM listings_src_10017.active_to) AS listing__window_end__extract_month , EXTRACT(day FROM listings_src_10017.active_to) AS listing__window_end__extract_day - , EXTRACT(dow FROM listings_src_10017.active_to) AS listing__window_end__extract_dow + , EXTRACT(isodow FROM listings_src_10017.active_to) AS listing__window_end__extract_dow , EXTRACT(doy FROM listings_src_10017.active_to) AS listing__window_end__extract_doy , listings_src_10017.country AS listing__country , listings_src_10017.is_lux AS listing__is_lux @@ -415,7 +415,7 @@ FROM ( , EXTRACT(quarter FROM users_latest_src_10021.ds) AS ds__extract_quarter , EXTRACT(month FROM users_latest_src_10021.ds) AS ds__extract_month , EXTRACT(day FROM users_latest_src_10021.ds) AS ds__extract_day - , EXTRACT(dow FROM users_latest_src_10021.ds) AS ds__extract_dow + , EXTRACT(isodow FROM users_latest_src_10021.ds) AS ds__extract_dow , EXTRACT(doy FROM users_latest_src_10021.ds) AS ds__extract_doy , users_latest_src_10021.home_state_latest , DATE_TRUNC('day', users_latest_src_10021.ds) AS user__ds__day @@ -427,7 +427,7 @@ FROM ( , EXTRACT(quarter FROM users_latest_src_10021.ds) AS user__ds__extract_quarter , EXTRACT(month FROM users_latest_src_10021.ds) AS user__ds__extract_month , EXTRACT(day FROM users_latest_src_10021.ds) AS user__ds__extract_day - , EXTRACT(dow FROM users_latest_src_10021.ds) AS user__ds__extract_dow + , EXTRACT(isodow FROM users_latest_src_10021.ds) AS user__ds__extract_dow , EXTRACT(doy FROM users_latest_src_10021.ds) AS user__ds__extract_doy , users_latest_src_10021.home_state_latest AS user__home_state_latest , users_latest_src_10021.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multi_hop_to_scd_dimension__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multi_hop_to_scd_dimension__plan0.sql index 5b3ca3f0a8..34675e44cc 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multi_hop_to_scd_dimension__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multi_hop_to_scd_dimension__plan0.sql @@ -146,7 +146,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__week @@ -157,7 +157,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS paid_at__week @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS paid_at__extract_doy , bookings_source_src_10015.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10015.ds) AS booking__ds__day @@ -180,7 +180,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__week @@ -191,7 +191,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS booking__paid_at__week @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10015.listing_id AS listing , bookings_source_src_10015.guest_id AS guest @@ -373,7 +373,7 @@ FROM ( , EXTRACT(quarter FROM lux_listings_src_10019.valid_from) AS window_start__extract_quarter , EXTRACT(month FROM lux_listings_src_10019.valid_from) AS window_start__extract_month , EXTRACT(day FROM lux_listings_src_10019.valid_from) AS window_start__extract_day - , EXTRACT(dow FROM lux_listings_src_10019.valid_from) AS window_start__extract_dow + , EXTRACT(isodow FROM lux_listings_src_10019.valid_from) AS window_start__extract_dow , EXTRACT(doy FROM lux_listings_src_10019.valid_from) AS window_start__extract_doy , lux_listings_src_10019.valid_to AS window_end__day , DATE_TRUNC('week', lux_listings_src_10019.valid_to) AS window_end__week @@ -384,7 +384,7 @@ FROM ( , EXTRACT(quarter FROM lux_listings_src_10019.valid_to) AS window_end__extract_quarter , EXTRACT(month FROM lux_listings_src_10019.valid_to) AS window_end__extract_month , EXTRACT(day FROM lux_listings_src_10019.valid_to) AS window_end__extract_day - , EXTRACT(dow FROM lux_listings_src_10019.valid_to) AS window_end__extract_dow + , EXTRACT(isodow FROM lux_listings_src_10019.valid_to) AS window_end__extract_dow , EXTRACT(doy FROM lux_listings_src_10019.valid_to) AS window_end__extract_doy , lux_listings_src_10019.is_confirmed_lux , lux_listings_src_10019.valid_from AS lux_listing__window_start__day @@ -396,7 +396,7 @@ FROM ( , EXTRACT(quarter FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_quarter , EXTRACT(month FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_month , EXTRACT(day FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_day - , EXTRACT(dow FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_dow + , EXTRACT(isodow FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_dow , EXTRACT(doy FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_doy , lux_listings_src_10019.valid_to AS lux_listing__window_end__day , DATE_TRUNC('week', lux_listings_src_10019.valid_to) AS lux_listing__window_end__week @@ -407,7 +407,7 @@ FROM ( , EXTRACT(quarter FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_quarter , EXTRACT(month FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_month , EXTRACT(day FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_day - , EXTRACT(dow FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_dow + , EXTRACT(isodow FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_dow , EXTRACT(doy FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_doy , lux_listings_src_10019.is_confirmed_lux AS lux_listing__is_confirmed_lux , lux_listings_src_10019.lux_listing_id AS lux_listing diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multi_join_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multi_join_node__plan0.sql index 0c665ca416..5c1795fec6 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multi_join_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multi_join_node__plan0.sql @@ -37,7 +37,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -48,7 +48,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -59,7 +59,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -71,7 +71,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -82,7 +82,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -93,7 +93,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -125,7 +125,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -136,7 +136,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -150,7 +150,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -161,7 +161,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest @@ -195,7 +195,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -206,7 +206,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -220,7 +220,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -231,7 +231,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multihop_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multihop_node__plan0.sql index 6f3ba6132d..66555fd231 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multihop_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multihop_node__plan0.sql @@ -103,7 +103,7 @@ FROM ( , EXTRACT(quarter FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', account_month_txns_src_10010.ds) AS ds__day , DATE_TRUNC('week', account_month_txns_src_10010.ds) AS ds__week @@ -114,7 +114,7 @@ FROM ( , EXTRACT(quarter FROM account_month_txns_src_10010.ds) AS ds__extract_quarter , EXTRACT(month FROM account_month_txns_src_10010.ds) AS ds__extract_month , EXTRACT(day FROM account_month_txns_src_10010.ds) AS ds__extract_day - , EXTRACT(dow FROM account_month_txns_src_10010.ds) AS ds__extract_dow + , EXTRACT(isodow FROM account_month_txns_src_10010.ds) AS ds__extract_dow , EXTRACT(doy FROM account_month_txns_src_10010.ds) AS ds__extract_doy , account_month_txns_src_10010.account_month , DATE_TRUNC('day', account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__day @@ -126,7 +126,7 @@ FROM ( , EXTRACT(quarter FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_quarter , EXTRACT(month FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_month , EXTRACT(day FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_day - , EXTRACT(dow FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_dow + , EXTRACT(isodow FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_dow , EXTRACT(doy FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_doy , DATE_TRUNC('day', account_month_txns_src_10010.ds) AS account_id__ds__day , DATE_TRUNC('week', account_month_txns_src_10010.ds) AS account_id__ds__week @@ -137,7 +137,7 @@ FROM ( , EXTRACT(quarter FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_quarter , EXTRACT(month FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_month , EXTRACT(day FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_day - , EXTRACT(dow FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_dow + , EXTRACT(isodow FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_dow , EXTRACT(doy FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_doy , account_month_txns_src_10010.account_month AS account_id__account_month , account_month_txns_src_10010.account_id @@ -222,7 +222,7 @@ FROM ( , EXTRACT(quarter FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_doy , bridge_table_src_10011.extra_dim AS account_id__extra_dim , DATE_TRUNC('day', bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__day @@ -234,7 +234,7 @@ FROM ( , EXTRACT(quarter FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_quarter , EXTRACT(month FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_month , EXTRACT(day FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_day - , EXTRACT(dow FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_dow , EXTRACT(doy FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_doy , bridge_table_src_10011.extra_dim AS bridge_account__extra_dim , DATE_TRUNC('day', bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__day @@ -246,7 +246,7 @@ FROM ( , EXTRACT(quarter FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_quarter , EXTRACT(month FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_month , EXTRACT(day FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_day - , EXTRACT(dow FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_dow , EXTRACT(doy FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_doy , bridge_table_src_10011.account_id , bridge_table_src_10011.customer_id @@ -326,7 +326,7 @@ FROM ( , EXTRACT(quarter FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_doy , customer_table_src_10013.customer_name AS customer_id__customer_name , customer_table_src_10013.customer_atomic_weight AS customer_id__customer_atomic_weight @@ -339,7 +339,7 @@ FROM ( , EXTRACT(quarter FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_quarter , EXTRACT(month FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_month , EXTRACT(day FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_day - , EXTRACT(dow FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_dow + , EXTRACT(isodow FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_dow , EXTRACT(doy FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_doy , customer_table_src_10013.customer_id FROM ***************************.customer_table customer_table_src_10013 diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multiple_metrics_no_dimensions__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multiple_metrics_no_dimensions__plan0.sql index db8d6d4dc6..a9ee829c3e 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multiple_metrics_no_dimensions__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_multiple_metrics_no_dimensions__plan0.sql @@ -244,7 +244,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -255,7 +255,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -266,7 +266,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -278,7 +278,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -289,7 +289,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -300,7 +300,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -484,7 +484,7 @@ CROSS JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -495,7 +495,7 @@ CROSS JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -509,7 +509,7 @@ CROSS JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -520,7 +520,7 @@ CROSS JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_nested_derived_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_nested_derived_metric__plan0.sql index e184c40d9e..d7ab098327 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_nested_derived_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_nested_derived_metric__plan0.sql @@ -164,7 +164,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -175,7 +175,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -198,7 +198,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -209,7 +209,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -220,7 +220,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -380,7 +380,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -391,7 +391,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -402,7 +402,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -414,7 +414,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -425,7 +425,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -436,7 +436,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -608,7 +608,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -619,7 +619,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -630,7 +630,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -642,7 +642,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -653,7 +653,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -664,7 +664,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -834,7 +834,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -845,7 +845,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -856,7 +856,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -868,7 +868,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -879,7 +879,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -890,7 +890,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_offset_window_with_date_part__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_offset_window_with_date_part__plan0.sql index 21db15e5a2..a03cec3919 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_offset_window_with_date_part__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_offset_window_with_date_part__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -243,7 +243,7 @@ FROM ( FROM ( -- Join to Time Spine Dataset SELECT - EXTRACT(dow FROM subq_7.metric_time__day) AS metric_time__extract_dow + EXTRACT(isodow FROM subq_7.metric_time__day) AS metric_time__extract_dow , subq_6.ds__day AS ds__day , subq_6.ds__week AS ds__week , subq_6.ds__month AS ds__month @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_offset_window_with_date_part__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_offset_window_with_date_part__plan0_optimized.sql index 76c25bc3ac..31f8ab6fcc 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_offset_window_with_date_part__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_offset_window_with_date_part__plan0_optimized.sql @@ -20,7 +20,7 @@ FROM ( -- Pass Only Elements: -- ['bookings', 'metric_time__extract_dow'] SELECT - EXTRACT(dow FROM ds) AS metric_time__extract_dow + EXTRACT(isodow FROM ds) AS metric_time__extract_dow , 1 AS bookings FROM ***************************.fct_bookings bookings_source_src_10001 ) subq_16 @@ -34,7 +34,7 @@ FROM ( -- Aggregate Measures -- Compute Metrics via Expressions SELECT - EXTRACT(dow FROM subq_22.ds) AS metric_time__extract_dow + EXTRACT(isodow FROM subq_22.ds) AS metric_time__extract_dow , SUM(subq_20.bookings) AS bookings_2_weeks_ago FROM ***************************.mf_time_spine subq_22 INNER JOIN ( @@ -48,7 +48,7 @@ FROM ( ON subq_22.ds - INTERVAL 14 day = subq_20.metric_time__day GROUP BY - EXTRACT(dow FROM subq_22.ds) + EXTRACT(isodow FROM subq_22.ds) ) subq_26 ON ( diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_order_by_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_order_by_node__plan0.sql index c0f439ce6d..610ed023ee 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_order_by_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_order_by_node__plan0.sql @@ -49,7 +49,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -60,7 +60,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -71,7 +71,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -83,7 +83,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -94,7 +94,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -105,7 +105,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_partitioned_join__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_partitioned_join__plan0.sql index 1cba2c2615..1673729a9a 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_partitioned_join__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_partitioned_join__plan0.sql @@ -105,7 +105,7 @@ FROM ( , EXTRACT(quarter FROM id_verifications_src_10003.ds) AS ds__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds) AS ds__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds) AS ds__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds) AS ds__extract_dow + , EXTRACT(isodow FROM id_verifications_src_10003.ds) AS ds__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds) AS ds__extract_doy , DATE_TRUNC('day', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__week @@ -116,7 +116,7 @@ FROM ( , EXTRACT(quarter FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_doy , id_verifications_src_10003.verification_type , DATE_TRUNC('day', id_verifications_src_10003.ds) AS verification__ds__day @@ -128,7 +128,7 @@ FROM ( , EXTRACT(quarter FROM id_verifications_src_10003.ds) AS verification__ds__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds) AS verification__ds__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds) AS verification__ds__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow + , EXTRACT(isodow FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds) AS verification__ds__extract_doy , DATE_TRUNC('day', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__day , DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__week @@ -139,7 +139,7 @@ FROM ( , EXTRACT(quarter FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow + , EXTRACT(isodow FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_doy , id_verifications_src_10003.verification_type AS verification__verification_type , id_verifications_src_10003.verification_id AS verification @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.ds) AS ds__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.ds) AS ds__extract_month , EXTRACT(day FROM users_ds_source_src_10007.ds) AS ds__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.ds) AS ds__extract_dow + , EXTRACT(isodow FROM users_ds_source_src_10007.ds) AS ds__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.ds) AS ds__extract_doy , DATE_TRUNC('day', users_ds_source_src_10007.created_at) AS created_at__day , DATE_TRUNC('week', users_ds_source_src_10007.created_at) AS created_at__week @@ -179,7 +179,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.created_at) AS created_at__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.created_at) AS created_at__extract_month , EXTRACT(day FROM users_ds_source_src_10007.created_at) AS created_at__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM users_ds_source_src_10007.created_at) AS created_at__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.created_at) AS created_at__extract_doy , DATE_TRUNC('day', users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__week @@ -190,7 +190,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_doy , users_ds_source_src_10007.home_state , DATE_TRUNC('day', users_ds_source_src_10007.ds) AS user__ds__day @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.ds) AS user__ds__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.ds) AS user__ds__extract_month , EXTRACT(day FROM users_ds_source_src_10007.ds) AS user__ds__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.ds) AS user__ds__extract_dow + , EXTRACT(isodow FROM users_ds_source_src_10007.ds) AS user__ds__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.ds) AS user__ds__extract_doy , DATE_TRUNC('day', users_ds_source_src_10007.created_at) AS user__created_at__day , DATE_TRUNC('week', users_ds_source_src_10007.created_at) AS user__created_at__week @@ -213,7 +213,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_month , EXTRACT(day FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_dow + , EXTRACT(isodow FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_doy , DATE_TRUNC('day', users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__day , DATE_TRUNC('week', users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__week @@ -224,7 +224,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_month , EXTRACT(day FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_dow + , EXTRACT(isodow FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_doy , users_ds_source_src_10007.home_state AS user__home_state , users_ds_source_src_10007.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node__plan0.sql index 2659cbd52f..1cc34ed0f7 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node__plan0.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user @@ -82,7 +82,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -94,7 +94,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node__plan0_optimized.sql index a19cbd2307..856e79ec2a 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node__plan0_optimized.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(isodow FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , account_type , DATE_TRUNC('day', ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS account__ds__extract_quarter , EXTRACT(month FROM ds) AS account__ds__extract_month , EXTRACT(day FROM ds) AS account__ds__extract_day - , EXTRACT(dow FROM ds) AS account__ds__extract_dow + , EXTRACT(isodow FROM ds) AS account__ds__extract_dow , EXTRACT(doy FROM ds) AS account__ds__extract_doy , account_type AS account__account_type , user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node_with_grouping__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node_with_grouping__plan0.sql index 7fb7f7cd5d..f3c7431c9b 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node_with_grouping__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node_with_grouping__plan0.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user @@ -83,7 +83,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -95,7 +95,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node_with_grouping__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node_with_grouping__plan0_optimized.sql index 1b0a5993d5..0c9362b7f9 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node_with_grouping__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node_with_grouping__plan0_optimized.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(isodow FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , account_type , DATE_TRUNC('day', ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS account__ds__extract_quarter , EXTRACT(month FROM ds) AS account__ds__extract_month , EXTRACT(day FROM ds) AS account__ds__extract_day - , EXTRACT(dow FROM ds) AS account__ds__extract_dow + , EXTRACT(isodow FROM ds) AS account__ds__extract_dow , EXTRACT(doy FROM ds) AS account__ds__extract_doy , account_type AS account__account_type , user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node_with_queried_group_by__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node_with_queried_group_by__plan0.sql index d47c00c2ff..02c7dfa09a 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node_with_queried_group_by__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node_with_queried_group_by__plan0.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user @@ -83,7 +83,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -95,7 +95,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node_with_queried_group_by__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node_with_queried_group_by__plan0_optimized.sql index ec857a8a3c..e01155ac27 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node_with_queried_group_by__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_semi_additive_join_node_with_queried_group_by__plan0_optimized.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(isodow FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , account_type , DATE_TRUNC('day', ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS account__ds__extract_quarter , EXTRACT(month FROM ds) AS account__ds__extract_month , EXTRACT(day FROM ds) AS account__ds__extract_day - , EXTRACT(dow FROM ds) AS account__ds__extract_dow + , EXTRACT(isodow FROM ds) AS account__ds__extract_dow , EXTRACT(doy FROM ds) AS account__ds__extract_doy , account_type AS account__account_type , user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_simple_query_with_date_part__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_simple_query_with_date_part__plan0.sql index 555f66e073..b1faa6666a 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_simple_query_with_date_part__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_simple_query_with_date_part__plan0.sql @@ -141,7 +141,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -175,7 +175,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_simple_query_with_date_part__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_simple_query_with_date_part__plan0_optimized.sql index 33b25a725c..eeac94b961 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_simple_query_with_date_part__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_simple_query_with_date_part__plan0_optimized.sql @@ -9,7 +9,7 @@ FROM ( -- Pass Only Elements: -- ['bookings', 'metric_time__extract_dow'] SELECT - EXTRACT(dow FROM ds) AS metric_time__extract_dow + EXTRACT(isodow FROM ds) AS metric_time__extract_dow , 1 AS bookings FROM ***************************.fct_bookings bookings_source_src_10001 ) subq_6 diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_simple_query_with_multiple_date_parts__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_simple_query_with_multiple_date_parts__plan0.sql index 547e875dc1..449bc3d5b1 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_simple_query_with_multiple_date_parts__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_simple_query_with_multiple_date_parts__plan0.sql @@ -162,7 +162,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -173,7 +173,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -184,7 +184,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -196,7 +196,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -207,7 +207,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -218,7 +218,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_simple_query_with_multiple_date_parts__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_simple_query_with_multiple_date_parts__plan0_optimized.sql index bbc70c4ec8..99cdea3f8f 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_simple_query_with_multiple_date_parts__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_simple_query_with_multiple_date_parts__plan0_optimized.sql @@ -24,7 +24,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS metric_time__extract_quarter , EXTRACT(month FROM ds) AS metric_time__extract_month , EXTRACT(day FROM ds) AS metric_time__extract_day - , EXTRACT(dow FROM ds) AS metric_time__extract_dow + , EXTRACT(isodow FROM ds) AS metric_time__extract_dow , EXTRACT(doy FROM ds) AS metric_time__extract_doy , 1 AS bookings FROM ***************************.fct_bookings bookings_source_src_10001 diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_single_join_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_single_join_node__plan0.sql index 39ea31a652..749b06ce93 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_single_join_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_single_join_node__plan0.sql @@ -35,7 +35,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -46,7 +46,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -57,7 +57,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -69,7 +69,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -80,7 +80,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -91,7 +91,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -123,7 +123,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -134,7 +134,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -148,7 +148,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -159,7 +159,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_source_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_source_node__plan0.sql index b25bba3bb9..6bfcae0c06 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_source_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_source_node__plan0.sql @@ -24,7 +24,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -35,7 +35,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -46,7 +46,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -58,7 +58,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -69,7 +69,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -80,7 +80,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_source_node__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_source_node__plan0_optimized.sql index b570c8f026..9c8bd00c68 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_source_node__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/DuckDB/test_source_node__plan0_optimized.sql @@ -24,7 +24,7 @@ SELECT , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(isodow FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS ds_partitioned__week @@ -35,7 +35,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS paid_at__day , DATE_TRUNC('week', paid_at) AS paid_at__week @@ -46,7 +46,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS paid_at__extract_month , EXTRACT(day FROM paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS paid_at__extract_doy , is_instant AS booking__is_instant , DATE_TRUNC('day', ds) AS booking__ds__day @@ -58,7 +58,7 @@ SELECT , EXTRACT(quarter FROM ds) AS booking__ds__extract_quarter , EXTRACT(month FROM ds) AS booking__ds__extract_month , EXTRACT(day FROM ds) AS booking__ds__extract_day - , EXTRACT(dow FROM ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM ds) AS booking__ds__extract_dow , EXTRACT(doy FROM ds) AS booking__ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS booking__ds_partitioned__week @@ -69,7 +69,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS booking__paid_at__day , DATE_TRUNC('week', paid_at) AS booking__paid_at__week @@ -80,7 +80,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS booking__paid_at__extract_doy , listing_id AS listing , guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_common_semantic_model__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_common_semantic_model__plan0.sql index 02c67b1f1d..1457dd33ee 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_common_semantic_model__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_common_semantic_model__plan0.sql @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -158,7 +158,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -169,7 +169,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -192,7 +192,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -203,7 +203,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -363,7 +363,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -374,7 +374,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -385,7 +385,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -397,7 +397,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -408,7 +408,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -419,7 +419,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_compute_metrics_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_compute_metrics_node__plan0.sql index e538be4e44..8acd57a67f 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_compute_metrics_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_compute_metrics_node__plan0.sql @@ -48,7 +48,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -59,7 +59,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -70,7 +70,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -82,7 +82,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -93,7 +93,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -104,7 +104,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -136,7 +136,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -161,7 +161,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -172,7 +172,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.sql index a522f3619d..0252714d7d 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.sql @@ -171,7 +171,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -182,7 +182,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -193,7 +193,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -205,7 +205,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -216,7 +216,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -227,7 +227,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -330,7 +330,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -341,7 +341,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -355,7 +355,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -366,7 +366,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest @@ -496,7 +496,7 @@ FROM ( , EXTRACT(quarter FROM views_source_src_10009.ds) AS ds__extract_quarter , EXTRACT(month FROM views_source_src_10009.ds) AS ds__extract_month , EXTRACT(day FROM views_source_src_10009.ds) AS ds__extract_day - , EXTRACT(dow FROM views_source_src_10009.ds) AS ds__extract_dow + , EXTRACT(isodow FROM views_source_src_10009.ds) AS ds__extract_dow , EXTRACT(doy FROM views_source_src_10009.ds) AS ds__extract_doy , DATE_TRUNC('day', views_source_src_10009.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', views_source_src_10009.ds_partitioned) AS ds_partitioned__week @@ -507,7 +507,7 @@ FROM ( , EXTRACT(quarter FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', views_source_src_10009.ds) AS view__ds__day , DATE_TRUNC('week', views_source_src_10009.ds) AS view__ds__week @@ -518,7 +518,7 @@ FROM ( , EXTRACT(quarter FROM views_source_src_10009.ds) AS view__ds__extract_quarter , EXTRACT(month FROM views_source_src_10009.ds) AS view__ds__extract_month , EXTRACT(day FROM views_source_src_10009.ds) AS view__ds__extract_day - , EXTRACT(dow FROM views_source_src_10009.ds) AS view__ds__extract_dow + , EXTRACT(isodow FROM views_source_src_10009.ds) AS view__ds__extract_dow , EXTRACT(doy FROM views_source_src_10009.ds) AS view__ds__extract_doy , DATE_TRUNC('day', views_source_src_10009.ds_partitioned) AS view__ds_partitioned__day , DATE_TRUNC('week', views_source_src_10009.ds_partitioned) AS view__ds_partitioned__week @@ -529,7 +529,7 @@ FROM ( , EXTRACT(quarter FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_quarter , EXTRACT(month FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_month , EXTRACT(day FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_day - , EXTRACT(dow FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_dow + , EXTRACT(isodow FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_dow , EXTRACT(doy FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_doy , views_source_src_10009.listing_id AS listing , views_source_src_10009.user_id AS user @@ -630,7 +630,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -641,7 +641,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -655,7 +655,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -666,7 +666,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.sql index a2be325877..be4f95db6e 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.sql @@ -51,7 +51,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -62,7 +62,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -73,7 +73,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -85,7 +85,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -96,7 +96,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -107,7 +107,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -139,7 +139,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -150,7 +150,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -164,7 +164,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -175,7 +175,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_compute_metrics_node_simple_expr__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_compute_metrics_node_simple_expr__plan0.sql index b605ddaab8..f04f16e5bf 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_compute_metrics_node_simple_expr__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_compute_metrics_node_simple_expr__plan0.sql @@ -48,7 +48,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -59,7 +59,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -70,7 +70,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -82,7 +82,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -93,7 +93,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -104,7 +104,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -136,7 +136,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -161,7 +161,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -172,7 +172,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_constrain_time_range_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_constrain_time_range_node__plan0.sql index 3cb28606de..9dc2aaef05 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_constrain_time_range_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_constrain_time_range_node__plan0.sql @@ -42,7 +42,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -53,7 +53,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -64,7 +64,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -76,7 +76,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -87,7 +87,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -98,7 +98,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric__plan0.sql index 88a6d4fd8a..e9c34e79c1 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric__plan0.sql @@ -65,7 +65,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -76,7 +76,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_grain_to_date__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_grain_to_date__plan0.sql index 42156f7eee..3f894968de 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_grain_to_date__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_grain_to_date__plan0.sql @@ -65,7 +65,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -76,7 +76,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_no_ds__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_no_ds__plan0.sql index 5b7887d232..2db07399cd 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_no_ds__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_no_ds__plan0.sql @@ -62,7 +62,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -73,7 +73,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_no_window__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_no_window__plan0.sql index 165461634d..883b02bd6e 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_no_window__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_no_window__plan0.sql @@ -65,7 +65,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -76,7 +76,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_no_window_with_time_constraint__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_no_window_with_time_constraint__plan0.sql index 7157a555a0..672f04d4d2 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_no_window_with_time_constraint__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_no_window_with_time_constraint__plan0.sql @@ -104,7 +104,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -115,7 +115,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_with_time_constraint__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_with_time_constraint__plan0.sql index a7ada383e1..b00b09b575 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_with_time_constraint__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_cumulative_metric_with_time_constraint__plan0.sql @@ -104,7 +104,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -115,7 +115,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(isodow FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric__plan0.sql index 6d26c880d1..127ebba768 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -368,7 +368,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -379,7 +379,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -390,7 +390,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -402,7 +402,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -413,7 +413,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -424,7 +424,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_to_grain__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_to_grain__plan0.sql index b6c51504b0..9ee6e81037 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_to_grain__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_to_grain__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_to_grain_and_granularity__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_to_grain_and_granularity__plan0.sql index 57d2f00513..b526384e42 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_to_grain_and_granularity__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_to_grain_and_granularity__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_window__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_window__plan0.sql index b5ccba1ef7..b256be0127 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_window__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_window__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_window_and_granularity__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_window_and_granularity__plan0.sql index 21d42074b8..c646f155e6 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_window_and_granularity__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_window_and_granularity__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.sql index 49c09d41d1..854407ab73 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.sql @@ -249,7 +249,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -260,7 +260,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -271,7 +271,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -283,7 +283,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -294,7 +294,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -305,7 +305,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -565,7 +565,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -576,7 +576,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -587,7 +587,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -599,7 +599,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -610,7 +610,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -621,7 +621,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.sql index 437c7850f2..479ca37998 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.sql @@ -249,7 +249,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -260,7 +260,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -271,7 +271,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -283,7 +283,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -294,7 +294,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -305,7 +305,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -566,7 +566,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -577,7 +577,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -588,7 +588,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -600,7 +600,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -611,7 +611,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -622,7 +622,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_offset_cumulative_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_offset_cumulative_metric__plan0.sql index c0464fb9b0..02f6092d6b 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_offset_cumulative_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_offset_cumulative_metric__plan0.sql @@ -350,7 +350,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -361,7 +361,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -372,7 +372,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -384,7 +384,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -395,7 +395,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -406,7 +406,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_offset_metric_with_one_input_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_offset_metric_with_one_input_metric__plan0.sql index ad1eac9880..dbbd0379ee 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_offset_metric_with_one_input_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_derived_offset_metric_with_one_input_metric__plan0.sql @@ -243,7 +243,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -254,7 +254,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -265,7 +265,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -277,7 +277,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -288,7 +288,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -299,7 +299,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_distinct_values__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_distinct_values__plan0.sql index 635a5427b7..7a6a9e1f3d 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_distinct_values__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_distinct_values__plan0.sql @@ -80,7 +80,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -91,7 +91,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -105,7 +105,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -116,7 +116,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_filter_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_filter_node__plan0.sql index 1244d9945d..3a790854dd 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_filter_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_filter_node__plan0.sql @@ -29,7 +29,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -40,7 +40,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -51,7 +51,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -63,7 +63,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -74,7 +74,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -85,7 +85,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_filter_with_where_constraint_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_filter_with_where_constraint_node__plan0.sql index 80aa98ee5f..e959b55f6b 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_filter_with_where_constraint_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_filter_with_where_constraint_node__plan0.sql @@ -35,7 +35,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -46,7 +46,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -57,7 +57,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -69,7 +69,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -80,7 +80,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -91,7 +91,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_filter_with_where_constraint_on_join_dim__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_filter_with_where_constraint_on_join_dim__plan0.sql index 9071b78119..e95c1119b3 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_filter_with_where_constraint_on_join_dim__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_filter_with_where_constraint_on_join_dim__plan0.sql @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -179,7 +179,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -190,7 +190,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -213,7 +213,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -224,7 +224,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -327,7 +327,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -338,7 +338,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -352,7 +352,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -363,7 +363,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_join_to_scd_dimension__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_join_to_scd_dimension__plan0.sql index 21832677e6..d6f3055b49 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_join_to_scd_dimension__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_join_to_scd_dimension__plan0.sql @@ -156,7 +156,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__week @@ -167,7 +167,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS paid_at__week @@ -178,7 +178,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS paid_at__extract_doy , bookings_source_src_10015.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10015.ds) AS booking__ds__day @@ -190,7 +190,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__week @@ -201,7 +201,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS booking__paid_at__week @@ -212,7 +212,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10015.listing_id AS listing , bookings_source_src_10015.guest_id AS guest @@ -246,7 +246,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_from) AS window_start__extract_quarter , EXTRACT(month FROM listings_src_10017.active_from) AS window_start__extract_month , EXTRACT(day FROM listings_src_10017.active_from) AS window_start__extract_day - , EXTRACT(dow FROM listings_src_10017.active_from) AS window_start__extract_dow + , EXTRACT(isodow FROM listings_src_10017.active_from) AS window_start__extract_dow , EXTRACT(doy FROM listings_src_10017.active_from) AS window_start__extract_doy , listings_src_10017.active_to AS window_end__day , DATE_TRUNC('week', listings_src_10017.active_to) AS window_end__week @@ -257,7 +257,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_to) AS window_end__extract_quarter , EXTRACT(month FROM listings_src_10017.active_to) AS window_end__extract_month , EXTRACT(day FROM listings_src_10017.active_to) AS window_end__extract_day - , EXTRACT(dow FROM listings_src_10017.active_to) AS window_end__extract_dow + , EXTRACT(isodow FROM listings_src_10017.active_to) AS window_end__extract_dow , EXTRACT(doy FROM listings_src_10017.active_to) AS window_end__extract_doy , listings_src_10017.country , listings_src_10017.is_lux @@ -271,7 +271,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_from) AS listing__window_start__extract_quarter , EXTRACT(month FROM listings_src_10017.active_from) AS listing__window_start__extract_month , EXTRACT(day FROM listings_src_10017.active_from) AS listing__window_start__extract_day - , EXTRACT(dow FROM listings_src_10017.active_from) AS listing__window_start__extract_dow + , EXTRACT(isodow FROM listings_src_10017.active_from) AS listing__window_start__extract_dow , EXTRACT(doy FROM listings_src_10017.active_from) AS listing__window_start__extract_doy , listings_src_10017.active_to AS listing__window_end__day , DATE_TRUNC('week', listings_src_10017.active_to) AS listing__window_end__week @@ -282,7 +282,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_to) AS listing__window_end__extract_quarter , EXTRACT(month FROM listings_src_10017.active_to) AS listing__window_end__extract_month , EXTRACT(day FROM listings_src_10017.active_to) AS listing__window_end__extract_day - , EXTRACT(dow FROM listings_src_10017.active_to) AS listing__window_end__extract_dow + , EXTRACT(isodow FROM listings_src_10017.active_to) AS listing__window_end__extract_dow , EXTRACT(doy FROM listings_src_10017.active_to) AS listing__window_end__extract_doy , listings_src_10017.country AS listing__country , listings_src_10017.is_lux AS listing__is_lux diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_join_to_time_spine_node_with_offset_to_grain__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_join_to_time_spine_node_with_offset_to_grain__plan0.sql index 60be6502e7..b1a59fc9d2 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_join_to_time_spine_node_with_offset_to_grain__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_join_to_time_spine_node_with_offset_to_grain__plan0.sql @@ -157,7 +157,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -168,7 +168,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -179,7 +179,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -191,7 +191,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -202,7 +202,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -213,7 +213,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_join_to_time_spine_node_with_offset_window__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_join_to_time_spine_node_with_offset_window__plan0.sql index dba2fb0103..00b4f648de 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_join_to_time_spine_node_with_offset_window__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_join_to_time_spine_node_with_offset_window__plan0.sql @@ -157,7 +157,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -168,7 +168,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -179,7 +179,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -191,7 +191,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -202,7 +202,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -213,7 +213,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_join_to_time_spine_node_without_offset__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_join_to_time_spine_node_without_offset__plan0.sql index dc3ea8edb4..99221f6773 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_join_to_time_spine_node_without_offset__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_join_to_time_spine_node_without_offset__plan0.sql @@ -157,7 +157,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -168,7 +168,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -179,7 +179,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -191,7 +191,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -202,7 +202,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -213,7 +213,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_limit_rows__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_limit_rows__plan0.sql index be82e3aa20..32f84a64a1 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_limit_rows__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_limit_rows__plan0.sql @@ -146,7 +146,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -157,7 +157,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -180,7 +180,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -191,7 +191,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_local_dimension_using_local_entity__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_local_dimension_using_local_entity__plan0.sql index a9df0cddc0..d3d98e92e5 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_local_dimension_using_local_entity__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_local_dimension_using_local_entity__plan0.sql @@ -98,7 +98,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -109,7 +109,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -123,7 +123,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -134,7 +134,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_measure_aggregation_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_measure_aggregation_node__plan0.sql index 1c26e58a38..db5e83a62c 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_measure_aggregation_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_measure_aggregation_node__plan0.sql @@ -39,7 +39,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -50,7 +50,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -61,7 +61,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -73,7 +73,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -84,7 +84,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -95,7 +95,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_measure_constraint__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_measure_constraint__plan0.sql index 62f1ddc0c6..dbb29c4d73 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_measure_constraint__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_measure_constraint__plan0.sql @@ -180,7 +180,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -191,7 +191,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -214,7 +214,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -225,7 +225,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -236,7 +236,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -339,7 +339,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -350,7 +350,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -364,7 +364,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -375,7 +375,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest @@ -569,7 +569,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -580,7 +580,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -591,7 +591,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -603,7 +603,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -614,7 +614,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -625,7 +625,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -728,7 +728,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -739,7 +739,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -753,7 +753,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -764,7 +764,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest @@ -941,7 +941,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -952,7 +952,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -963,7 +963,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -975,7 +975,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -986,7 +986,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -997,7 +997,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_measure_constraint_with_reused_measure__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_measure_constraint_with_reused_measure__plan0.sql index 583d2c8ceb..5493cc3251 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_measure_constraint_with_reused_measure__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_measure_constraint_with_reused_measure__plan0.sql @@ -165,7 +165,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -176,7 +176,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -187,7 +187,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -199,7 +199,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -210,7 +210,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -221,7 +221,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -384,7 +384,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -395,7 +395,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -406,7 +406,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -418,7 +418,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -429,7 +429,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -440,7 +440,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_measure_constraint_with_single_expr_and_alias__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_measure_constraint_with_single_expr_and_alias__plan0.sql index e8ab341b30..0a51195dec 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_measure_constraint_with_single_expr_and_alias__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_measure_constraint_with_single_expr_and_alias__plan0.sql @@ -159,7 +159,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -170,7 +170,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -193,7 +193,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -204,7 +204,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -215,7 +215,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.sql index b416d9f6cd..1c31c9b36b 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.sql @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -158,7 +158,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -169,7 +169,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -192,7 +192,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -203,7 +203,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -315,7 +315,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -326,7 +326,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -340,7 +340,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -351,7 +351,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multi_hop_through_scd_dimension__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multi_hop_through_scd_dimension__plan0.sql index c7bf69480d..dcc369e93e 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multi_hop_through_scd_dimension__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multi_hop_through_scd_dimension__plan0.sql @@ -146,7 +146,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__week @@ -157,7 +157,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS paid_at__week @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS paid_at__extract_doy , bookings_source_src_10015.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10015.ds) AS booking__ds__day @@ -180,7 +180,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__week @@ -191,7 +191,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS booking__paid_at__week @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10015.listing_id AS listing , bookings_source_src_10015.guest_id AS guest @@ -304,7 +304,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_from) AS window_start__extract_quarter , EXTRACT(month FROM listings_src_10017.active_from) AS window_start__extract_month , EXTRACT(day FROM listings_src_10017.active_from) AS window_start__extract_day - , EXTRACT(dow FROM listings_src_10017.active_from) AS window_start__extract_dow + , EXTRACT(isodow FROM listings_src_10017.active_from) AS window_start__extract_dow , EXTRACT(doy FROM listings_src_10017.active_from) AS window_start__extract_doy , listings_src_10017.active_to AS window_end__day , DATE_TRUNC('week', listings_src_10017.active_to) AS window_end__week @@ -315,7 +315,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_to) AS window_end__extract_quarter , EXTRACT(month FROM listings_src_10017.active_to) AS window_end__extract_month , EXTRACT(day FROM listings_src_10017.active_to) AS window_end__extract_day - , EXTRACT(dow FROM listings_src_10017.active_to) AS window_end__extract_dow + , EXTRACT(isodow FROM listings_src_10017.active_to) AS window_end__extract_dow , EXTRACT(doy FROM listings_src_10017.active_to) AS window_end__extract_doy , listings_src_10017.country , listings_src_10017.is_lux @@ -329,7 +329,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_from) AS listing__window_start__extract_quarter , EXTRACT(month FROM listings_src_10017.active_from) AS listing__window_start__extract_month , EXTRACT(day FROM listings_src_10017.active_from) AS listing__window_start__extract_day - , EXTRACT(dow FROM listings_src_10017.active_from) AS listing__window_start__extract_dow + , EXTRACT(isodow FROM listings_src_10017.active_from) AS listing__window_start__extract_dow , EXTRACT(doy FROM listings_src_10017.active_from) AS listing__window_start__extract_doy , listings_src_10017.active_to AS listing__window_end__day , DATE_TRUNC('week', listings_src_10017.active_to) AS listing__window_end__week @@ -340,7 +340,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_to) AS listing__window_end__extract_quarter , EXTRACT(month FROM listings_src_10017.active_to) AS listing__window_end__extract_month , EXTRACT(day FROM listings_src_10017.active_to) AS listing__window_end__extract_day - , EXTRACT(dow FROM listings_src_10017.active_to) AS listing__window_end__extract_dow + , EXTRACT(isodow FROM listings_src_10017.active_to) AS listing__window_end__extract_dow , EXTRACT(doy FROM listings_src_10017.active_to) AS listing__window_end__extract_doy , listings_src_10017.country AS listing__country , listings_src_10017.is_lux AS listing__is_lux @@ -415,7 +415,7 @@ FROM ( , EXTRACT(quarter FROM users_latest_src_10021.ds) AS ds__extract_quarter , EXTRACT(month FROM users_latest_src_10021.ds) AS ds__extract_month , EXTRACT(day FROM users_latest_src_10021.ds) AS ds__extract_day - , EXTRACT(dow FROM users_latest_src_10021.ds) AS ds__extract_dow + , EXTRACT(isodow FROM users_latest_src_10021.ds) AS ds__extract_dow , EXTRACT(doy FROM users_latest_src_10021.ds) AS ds__extract_doy , users_latest_src_10021.home_state_latest , DATE_TRUNC('day', users_latest_src_10021.ds) AS user__ds__day @@ -427,7 +427,7 @@ FROM ( , EXTRACT(quarter FROM users_latest_src_10021.ds) AS user__ds__extract_quarter , EXTRACT(month FROM users_latest_src_10021.ds) AS user__ds__extract_month , EXTRACT(day FROM users_latest_src_10021.ds) AS user__ds__extract_day - , EXTRACT(dow FROM users_latest_src_10021.ds) AS user__ds__extract_dow + , EXTRACT(isodow FROM users_latest_src_10021.ds) AS user__ds__extract_dow , EXTRACT(doy FROM users_latest_src_10021.ds) AS user__ds__extract_doy , users_latest_src_10021.home_state_latest AS user__home_state_latest , users_latest_src_10021.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multi_hop_to_scd_dimension__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multi_hop_to_scd_dimension__plan0.sql index 5b3ca3f0a8..34675e44cc 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multi_hop_to_scd_dimension__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multi_hop_to_scd_dimension__plan0.sql @@ -146,7 +146,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__week @@ -157,7 +157,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS paid_at__week @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS paid_at__extract_doy , bookings_source_src_10015.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10015.ds) AS booking__ds__day @@ -180,7 +180,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__week @@ -191,7 +191,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS booking__paid_at__week @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10015.listing_id AS listing , bookings_source_src_10015.guest_id AS guest @@ -373,7 +373,7 @@ FROM ( , EXTRACT(quarter FROM lux_listings_src_10019.valid_from) AS window_start__extract_quarter , EXTRACT(month FROM lux_listings_src_10019.valid_from) AS window_start__extract_month , EXTRACT(day FROM lux_listings_src_10019.valid_from) AS window_start__extract_day - , EXTRACT(dow FROM lux_listings_src_10019.valid_from) AS window_start__extract_dow + , EXTRACT(isodow FROM lux_listings_src_10019.valid_from) AS window_start__extract_dow , EXTRACT(doy FROM lux_listings_src_10019.valid_from) AS window_start__extract_doy , lux_listings_src_10019.valid_to AS window_end__day , DATE_TRUNC('week', lux_listings_src_10019.valid_to) AS window_end__week @@ -384,7 +384,7 @@ FROM ( , EXTRACT(quarter FROM lux_listings_src_10019.valid_to) AS window_end__extract_quarter , EXTRACT(month FROM lux_listings_src_10019.valid_to) AS window_end__extract_month , EXTRACT(day FROM lux_listings_src_10019.valid_to) AS window_end__extract_day - , EXTRACT(dow FROM lux_listings_src_10019.valid_to) AS window_end__extract_dow + , EXTRACT(isodow FROM lux_listings_src_10019.valid_to) AS window_end__extract_dow , EXTRACT(doy FROM lux_listings_src_10019.valid_to) AS window_end__extract_doy , lux_listings_src_10019.is_confirmed_lux , lux_listings_src_10019.valid_from AS lux_listing__window_start__day @@ -396,7 +396,7 @@ FROM ( , EXTRACT(quarter FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_quarter , EXTRACT(month FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_month , EXTRACT(day FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_day - , EXTRACT(dow FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_dow + , EXTRACT(isodow FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_dow , EXTRACT(doy FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_doy , lux_listings_src_10019.valid_to AS lux_listing__window_end__day , DATE_TRUNC('week', lux_listings_src_10019.valid_to) AS lux_listing__window_end__week @@ -407,7 +407,7 @@ FROM ( , EXTRACT(quarter FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_quarter , EXTRACT(month FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_month , EXTRACT(day FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_day - , EXTRACT(dow FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_dow + , EXTRACT(isodow FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_dow , EXTRACT(doy FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_doy , lux_listings_src_10019.is_confirmed_lux AS lux_listing__is_confirmed_lux , lux_listings_src_10019.lux_listing_id AS lux_listing diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multi_join_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multi_join_node__plan0.sql index 0c665ca416..5c1795fec6 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multi_join_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multi_join_node__plan0.sql @@ -37,7 +37,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -48,7 +48,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -59,7 +59,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -71,7 +71,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -82,7 +82,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -93,7 +93,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -125,7 +125,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -136,7 +136,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -150,7 +150,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -161,7 +161,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest @@ -195,7 +195,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -206,7 +206,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -220,7 +220,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -231,7 +231,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multihop_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multihop_node__plan0.sql index 6f3ba6132d..66555fd231 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multihop_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multihop_node__plan0.sql @@ -103,7 +103,7 @@ FROM ( , EXTRACT(quarter FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', account_month_txns_src_10010.ds) AS ds__day , DATE_TRUNC('week', account_month_txns_src_10010.ds) AS ds__week @@ -114,7 +114,7 @@ FROM ( , EXTRACT(quarter FROM account_month_txns_src_10010.ds) AS ds__extract_quarter , EXTRACT(month FROM account_month_txns_src_10010.ds) AS ds__extract_month , EXTRACT(day FROM account_month_txns_src_10010.ds) AS ds__extract_day - , EXTRACT(dow FROM account_month_txns_src_10010.ds) AS ds__extract_dow + , EXTRACT(isodow FROM account_month_txns_src_10010.ds) AS ds__extract_dow , EXTRACT(doy FROM account_month_txns_src_10010.ds) AS ds__extract_doy , account_month_txns_src_10010.account_month , DATE_TRUNC('day', account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__day @@ -126,7 +126,7 @@ FROM ( , EXTRACT(quarter FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_quarter , EXTRACT(month FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_month , EXTRACT(day FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_day - , EXTRACT(dow FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_dow + , EXTRACT(isodow FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_dow , EXTRACT(doy FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_doy , DATE_TRUNC('day', account_month_txns_src_10010.ds) AS account_id__ds__day , DATE_TRUNC('week', account_month_txns_src_10010.ds) AS account_id__ds__week @@ -137,7 +137,7 @@ FROM ( , EXTRACT(quarter FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_quarter , EXTRACT(month FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_month , EXTRACT(day FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_day - , EXTRACT(dow FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_dow + , EXTRACT(isodow FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_dow , EXTRACT(doy FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_doy , account_month_txns_src_10010.account_month AS account_id__account_month , account_month_txns_src_10010.account_id @@ -222,7 +222,7 @@ FROM ( , EXTRACT(quarter FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_doy , bridge_table_src_10011.extra_dim AS account_id__extra_dim , DATE_TRUNC('day', bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__day @@ -234,7 +234,7 @@ FROM ( , EXTRACT(quarter FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_quarter , EXTRACT(month FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_month , EXTRACT(day FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_day - , EXTRACT(dow FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_dow , EXTRACT(doy FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_doy , bridge_table_src_10011.extra_dim AS bridge_account__extra_dim , DATE_TRUNC('day', bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__day @@ -246,7 +246,7 @@ FROM ( , EXTRACT(quarter FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_quarter , EXTRACT(month FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_month , EXTRACT(day FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_day - , EXTRACT(dow FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_dow , EXTRACT(doy FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_doy , bridge_table_src_10011.account_id , bridge_table_src_10011.customer_id @@ -326,7 +326,7 @@ FROM ( , EXTRACT(quarter FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_doy , customer_table_src_10013.customer_name AS customer_id__customer_name , customer_table_src_10013.customer_atomic_weight AS customer_id__customer_atomic_weight @@ -339,7 +339,7 @@ FROM ( , EXTRACT(quarter FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_quarter , EXTRACT(month FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_month , EXTRACT(day FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_day - , EXTRACT(dow FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_dow + , EXTRACT(isodow FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_dow , EXTRACT(doy FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_doy , customer_table_src_10013.customer_id FROM ***************************.customer_table customer_table_src_10013 diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multiple_metrics_no_dimensions__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multiple_metrics_no_dimensions__plan0.sql index db8d6d4dc6..a9ee829c3e 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multiple_metrics_no_dimensions__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_multiple_metrics_no_dimensions__plan0.sql @@ -244,7 +244,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -255,7 +255,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -266,7 +266,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -278,7 +278,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -289,7 +289,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -300,7 +300,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -484,7 +484,7 @@ CROSS JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -495,7 +495,7 @@ CROSS JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -509,7 +509,7 @@ CROSS JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -520,7 +520,7 @@ CROSS JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_nested_derived_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_nested_derived_metric__plan0.sql index e184c40d9e..d7ab098327 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_nested_derived_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_nested_derived_metric__plan0.sql @@ -164,7 +164,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -175,7 +175,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -198,7 +198,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -209,7 +209,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -220,7 +220,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -380,7 +380,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -391,7 +391,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -402,7 +402,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -414,7 +414,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -425,7 +425,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -436,7 +436,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -608,7 +608,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -619,7 +619,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -630,7 +630,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -642,7 +642,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -653,7 +653,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -664,7 +664,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -834,7 +834,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -845,7 +845,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -856,7 +856,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -868,7 +868,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -879,7 +879,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -890,7 +890,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_offset_window_with_date_part__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_offset_window_with_date_part__plan0.sql index a1269abe56..aaa751eac2 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_offset_window_with_date_part__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_offset_window_with_date_part__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -243,7 +243,7 @@ FROM ( FROM ( -- Join to Time Spine Dataset SELECT - EXTRACT(dow FROM subq_7.metric_time__day) AS metric_time__extract_dow + EXTRACT(isodow FROM subq_7.metric_time__day) AS metric_time__extract_dow , subq_6.ds__day AS ds__day , subq_6.ds__week AS ds__week , subq_6.ds__month AS ds__month @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_offset_window_with_date_part__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_offset_window_with_date_part__plan0_optimized.sql index 6879bfae56..5bded3a842 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_offset_window_with_date_part__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_offset_window_with_date_part__plan0_optimized.sql @@ -20,7 +20,7 @@ FROM ( -- Pass Only Elements: -- ['bookings', 'metric_time__extract_dow'] SELECT - EXTRACT(dow FROM ds) AS metric_time__extract_dow + EXTRACT(isodow FROM ds) AS metric_time__extract_dow , 1 AS bookings FROM ***************************.fct_bookings bookings_source_src_10001 ) subq_16 @@ -34,7 +34,7 @@ FROM ( -- Aggregate Measures -- Compute Metrics via Expressions SELECT - EXTRACT(dow FROM subq_22.ds) AS metric_time__extract_dow + EXTRACT(isodow FROM subq_22.ds) AS metric_time__extract_dow , SUM(subq_20.bookings) AS bookings_2_weeks_ago FROM ***************************.mf_time_spine subq_22 INNER JOIN ( @@ -48,7 +48,7 @@ FROM ( ON subq_22.ds - MAKE_INTERVAL(days => 14) = subq_20.metric_time__day GROUP BY - EXTRACT(dow FROM subq_22.ds) + EXTRACT(isodow FROM subq_22.ds) ) subq_26 ON ( diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_order_by_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_order_by_node__plan0.sql index c0f439ce6d..610ed023ee 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_order_by_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_order_by_node__plan0.sql @@ -49,7 +49,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -60,7 +60,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -71,7 +71,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -83,7 +83,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -94,7 +94,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -105,7 +105,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_partitioned_join__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_partitioned_join__plan0.sql index 1cba2c2615..1673729a9a 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_partitioned_join__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_partitioned_join__plan0.sql @@ -105,7 +105,7 @@ FROM ( , EXTRACT(quarter FROM id_verifications_src_10003.ds) AS ds__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds) AS ds__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds) AS ds__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds) AS ds__extract_dow + , EXTRACT(isodow FROM id_verifications_src_10003.ds) AS ds__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds) AS ds__extract_doy , DATE_TRUNC('day', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__week @@ -116,7 +116,7 @@ FROM ( , EXTRACT(quarter FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_doy , id_verifications_src_10003.verification_type , DATE_TRUNC('day', id_verifications_src_10003.ds) AS verification__ds__day @@ -128,7 +128,7 @@ FROM ( , EXTRACT(quarter FROM id_verifications_src_10003.ds) AS verification__ds__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds) AS verification__ds__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds) AS verification__ds__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow + , EXTRACT(isodow FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds) AS verification__ds__extract_doy , DATE_TRUNC('day', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__day , DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__week @@ -139,7 +139,7 @@ FROM ( , EXTRACT(quarter FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow + , EXTRACT(isodow FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_doy , id_verifications_src_10003.verification_type AS verification__verification_type , id_verifications_src_10003.verification_id AS verification @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.ds) AS ds__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.ds) AS ds__extract_month , EXTRACT(day FROM users_ds_source_src_10007.ds) AS ds__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.ds) AS ds__extract_dow + , EXTRACT(isodow FROM users_ds_source_src_10007.ds) AS ds__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.ds) AS ds__extract_doy , DATE_TRUNC('day', users_ds_source_src_10007.created_at) AS created_at__day , DATE_TRUNC('week', users_ds_source_src_10007.created_at) AS created_at__week @@ -179,7 +179,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.created_at) AS created_at__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.created_at) AS created_at__extract_month , EXTRACT(day FROM users_ds_source_src_10007.created_at) AS created_at__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM users_ds_source_src_10007.created_at) AS created_at__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.created_at) AS created_at__extract_doy , DATE_TRUNC('day', users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__week @@ -190,7 +190,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_doy , users_ds_source_src_10007.home_state , DATE_TRUNC('day', users_ds_source_src_10007.ds) AS user__ds__day @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.ds) AS user__ds__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.ds) AS user__ds__extract_month , EXTRACT(day FROM users_ds_source_src_10007.ds) AS user__ds__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.ds) AS user__ds__extract_dow + , EXTRACT(isodow FROM users_ds_source_src_10007.ds) AS user__ds__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.ds) AS user__ds__extract_doy , DATE_TRUNC('day', users_ds_source_src_10007.created_at) AS user__created_at__day , DATE_TRUNC('week', users_ds_source_src_10007.created_at) AS user__created_at__week @@ -213,7 +213,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_month , EXTRACT(day FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_dow + , EXTRACT(isodow FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_doy , DATE_TRUNC('day', users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__day , DATE_TRUNC('week', users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__week @@ -224,7 +224,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_month , EXTRACT(day FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_dow + , EXTRACT(isodow FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_doy , users_ds_source_src_10007.home_state AS user__home_state , users_ds_source_src_10007.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node__plan0.sql index 2659cbd52f..1cc34ed0f7 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node__plan0.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user @@ -82,7 +82,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -94,7 +94,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node__plan0_optimized.sql index a19cbd2307..856e79ec2a 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node__plan0_optimized.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(isodow FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , account_type , DATE_TRUNC('day', ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS account__ds__extract_quarter , EXTRACT(month FROM ds) AS account__ds__extract_month , EXTRACT(day FROM ds) AS account__ds__extract_day - , EXTRACT(dow FROM ds) AS account__ds__extract_dow + , EXTRACT(isodow FROM ds) AS account__ds__extract_dow , EXTRACT(doy FROM ds) AS account__ds__extract_doy , account_type AS account__account_type , user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node_with_grouping__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node_with_grouping__plan0.sql index 7fb7f7cd5d..f3c7431c9b 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node_with_grouping__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node_with_grouping__plan0.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user @@ -83,7 +83,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -95,7 +95,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node_with_grouping__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node_with_grouping__plan0_optimized.sql index 1b0a5993d5..0c9362b7f9 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node_with_grouping__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node_with_grouping__plan0_optimized.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(isodow FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , account_type , DATE_TRUNC('day', ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS account__ds__extract_quarter , EXTRACT(month FROM ds) AS account__ds__extract_month , EXTRACT(day FROM ds) AS account__ds__extract_day - , EXTRACT(dow FROM ds) AS account__ds__extract_dow + , EXTRACT(isodow FROM ds) AS account__ds__extract_dow , EXTRACT(doy FROM ds) AS account__ds__extract_doy , account_type AS account__account_type , user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node_with_queried_group_by__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node_with_queried_group_by__plan0.sql index d47c00c2ff..02c7dfa09a 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node_with_queried_group_by__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node_with_queried_group_by__plan0.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user @@ -83,7 +83,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -95,7 +95,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(isodow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node_with_queried_group_by__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node_with_queried_group_by__plan0_optimized.sql index ec857a8a3c..e01155ac27 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node_with_queried_group_by__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_semi_additive_join_node_with_queried_group_by__plan0_optimized.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(isodow FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , account_type , DATE_TRUNC('day', ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS account__ds__extract_quarter , EXTRACT(month FROM ds) AS account__ds__extract_month , EXTRACT(day FROM ds) AS account__ds__extract_day - , EXTRACT(dow FROM ds) AS account__ds__extract_dow + , EXTRACT(isodow FROM ds) AS account__ds__extract_dow , EXTRACT(doy FROM ds) AS account__ds__extract_doy , account_type AS account__account_type , user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_simple_query_with_date_part__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_simple_query_with_date_part__plan0.sql index 555f66e073..b1faa6666a 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_simple_query_with_date_part__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_simple_query_with_date_part__plan0.sql @@ -141,7 +141,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -175,7 +175,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_simple_query_with_date_part__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_simple_query_with_date_part__plan0_optimized.sql index 33b25a725c..eeac94b961 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_simple_query_with_date_part__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_simple_query_with_date_part__plan0_optimized.sql @@ -9,7 +9,7 @@ FROM ( -- Pass Only Elements: -- ['bookings', 'metric_time__extract_dow'] SELECT - EXTRACT(dow FROM ds) AS metric_time__extract_dow + EXTRACT(isodow FROM ds) AS metric_time__extract_dow , 1 AS bookings FROM ***************************.fct_bookings bookings_source_src_10001 ) subq_6 diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_simple_query_with_multiple_date_parts__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_simple_query_with_multiple_date_parts__plan0.sql index 547e875dc1..449bc3d5b1 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_simple_query_with_multiple_date_parts__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_simple_query_with_multiple_date_parts__plan0.sql @@ -162,7 +162,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -173,7 +173,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -184,7 +184,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -196,7 +196,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -207,7 +207,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -218,7 +218,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_simple_query_with_multiple_date_parts__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_simple_query_with_multiple_date_parts__plan0_optimized.sql index bbc70c4ec8..99cdea3f8f 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_simple_query_with_multiple_date_parts__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_simple_query_with_multiple_date_parts__plan0_optimized.sql @@ -24,7 +24,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS metric_time__extract_quarter , EXTRACT(month FROM ds) AS metric_time__extract_month , EXTRACT(day FROM ds) AS metric_time__extract_day - , EXTRACT(dow FROM ds) AS metric_time__extract_dow + , EXTRACT(isodow FROM ds) AS metric_time__extract_dow , EXTRACT(doy FROM ds) AS metric_time__extract_doy , 1 AS bookings FROM ***************************.fct_bookings bookings_source_src_10001 diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_single_join_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_single_join_node__plan0.sql index 39ea31a652..749b06ce93 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_single_join_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_single_join_node__plan0.sql @@ -35,7 +35,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -46,7 +46,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -57,7 +57,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -69,7 +69,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -80,7 +80,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -91,7 +91,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -123,7 +123,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -134,7 +134,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -148,7 +148,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -159,7 +159,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(isodow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_source_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_source_node__plan0.sql index b25bba3bb9..6bfcae0c06 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_source_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_source_node__plan0.sql @@ -24,7 +24,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -35,7 +35,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -46,7 +46,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -58,7 +58,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -69,7 +69,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -80,7 +80,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_source_node__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_source_node__plan0_optimized.sql index b570c8f026..9c8bd00c68 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_source_node__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Postgres/test_source_node__plan0_optimized.sql @@ -24,7 +24,7 @@ SELECT , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(isodow FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS ds_partitioned__week @@ -35,7 +35,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS paid_at__day , DATE_TRUNC('week', paid_at) AS paid_at__week @@ -46,7 +46,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS paid_at__extract_month , EXTRACT(day FROM paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS paid_at__extract_doy , is_instant AS booking__is_instant , DATE_TRUNC('day', ds) AS booking__ds__day @@ -58,7 +58,7 @@ SELECT , EXTRACT(quarter FROM ds) AS booking__ds__extract_quarter , EXTRACT(month FROM ds) AS booking__ds__extract_month , EXTRACT(day FROM ds) AS booking__ds__extract_day - , EXTRACT(dow FROM ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM ds) AS booking__ds__extract_dow , EXTRACT(doy FROM ds) AS booking__ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS booking__ds_partitioned__week @@ -69,7 +69,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS booking__paid_at__day , DATE_TRUNC('week', paid_at) AS booking__paid_at__week @@ -80,7 +80,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS booking__paid_at__extract_doy , listing_id AS listing , guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_common_semantic_model__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_common_semantic_model__plan0.sql index 02c67b1f1d..d67f49d085 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_common_semantic_model__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_common_semantic_model__plan0.sql @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -158,7 +158,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -169,7 +169,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -192,7 +192,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -203,7 +203,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -363,7 +363,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -374,7 +374,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -385,7 +385,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -397,7 +397,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -408,7 +408,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -419,7 +419,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_compute_metrics_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_compute_metrics_node__plan0.sql index e538be4e44..dad6172504 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_compute_metrics_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_compute_metrics_node__plan0.sql @@ -48,7 +48,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -59,7 +59,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -70,7 +70,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -82,7 +82,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -93,7 +93,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -104,7 +104,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -136,7 +136,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -161,7 +161,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -172,7 +172,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.sql index e7ff8d05e2..e581853f54 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.sql @@ -171,7 +171,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -182,7 +182,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -193,7 +193,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -205,7 +205,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -216,7 +216,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -227,7 +227,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -330,7 +330,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -341,7 +341,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -355,7 +355,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -366,7 +366,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest @@ -496,7 +496,7 @@ FROM ( , EXTRACT(quarter FROM views_source_src_10009.ds) AS ds__extract_quarter , EXTRACT(month FROM views_source_src_10009.ds) AS ds__extract_month , EXTRACT(day FROM views_source_src_10009.ds) AS ds__extract_day - , EXTRACT(dow FROM views_source_src_10009.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM views_source_src_10009.ds) AS ds__extract_dow , EXTRACT(doy FROM views_source_src_10009.ds) AS ds__extract_doy , DATE_TRUNC('day', views_source_src_10009.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', views_source_src_10009.ds_partitioned) AS ds_partitioned__week @@ -507,7 +507,7 @@ FROM ( , EXTRACT(quarter FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', views_source_src_10009.ds) AS view__ds__day , DATE_TRUNC('week', views_source_src_10009.ds) AS view__ds__week @@ -518,7 +518,7 @@ FROM ( , EXTRACT(quarter FROM views_source_src_10009.ds) AS view__ds__extract_quarter , EXTRACT(month FROM views_source_src_10009.ds) AS view__ds__extract_month , EXTRACT(day FROM views_source_src_10009.ds) AS view__ds__extract_day - , EXTRACT(dow FROM views_source_src_10009.ds) AS view__ds__extract_dow + , EXTRACT(dayofweekiso FROM views_source_src_10009.ds) AS view__ds__extract_dow , EXTRACT(doy FROM views_source_src_10009.ds) AS view__ds__extract_doy , DATE_TRUNC('day', views_source_src_10009.ds_partitioned) AS view__ds_partitioned__day , DATE_TRUNC('week', views_source_src_10009.ds_partitioned) AS view__ds_partitioned__week @@ -529,7 +529,7 @@ FROM ( , EXTRACT(quarter FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_quarter , EXTRACT(month FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_month , EXTRACT(day FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_day - , EXTRACT(dow FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_dow , EXTRACT(doy FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_doy , views_source_src_10009.listing_id AS listing , views_source_src_10009.user_id AS user @@ -630,7 +630,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -641,7 +641,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -655,7 +655,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -666,7 +666,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.sql index 557c8fa827..3d535c3a3c 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.sql @@ -51,7 +51,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -62,7 +62,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -73,7 +73,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -85,7 +85,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -96,7 +96,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -107,7 +107,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -139,7 +139,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -150,7 +150,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -164,7 +164,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -175,7 +175,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_compute_metrics_node_simple_expr__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_compute_metrics_node_simple_expr__plan0.sql index b605ddaab8..faeef9d5ef 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_compute_metrics_node_simple_expr__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_compute_metrics_node_simple_expr__plan0.sql @@ -48,7 +48,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -59,7 +59,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -70,7 +70,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -82,7 +82,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -93,7 +93,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -104,7 +104,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -136,7 +136,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -161,7 +161,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -172,7 +172,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_constrain_time_range_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_constrain_time_range_node__plan0.sql index 3cb28606de..ecd1054238 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_constrain_time_range_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_constrain_time_range_node__plan0.sql @@ -42,7 +42,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -53,7 +53,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -64,7 +64,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -76,7 +76,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -87,7 +87,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -98,7 +98,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric__plan0.sql index 88a6d4fd8a..59e98524b7 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric__plan0.sql @@ -65,7 +65,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -76,7 +76,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(dayofweekiso FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_grain_to_date__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_grain_to_date__plan0.sql index 42156f7eee..ad25f27c56 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_grain_to_date__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_grain_to_date__plan0.sql @@ -65,7 +65,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -76,7 +76,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(dayofweekiso FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_no_ds__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_no_ds__plan0.sql index 5b7887d232..9633c0a6ea 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_no_ds__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_no_ds__plan0.sql @@ -62,7 +62,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -73,7 +73,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(dayofweekiso FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_no_window__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_no_window__plan0.sql index 165461634d..722eaf2886 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_no_window__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_no_window__plan0.sql @@ -65,7 +65,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -76,7 +76,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(dayofweekiso FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_no_window_with_time_constraint__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_no_window_with_time_constraint__plan0.sql index 7157a555a0..2f993be406 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_no_window_with_time_constraint__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_no_window_with_time_constraint__plan0.sql @@ -104,7 +104,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -115,7 +115,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(dayofweekiso FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_with_time_constraint__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_with_time_constraint__plan0.sql index a7ada383e1..0f3f260e8b 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_with_time_constraint__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_cumulative_metric_with_time_constraint__plan0.sql @@ -104,7 +104,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM revenue_src_10006.created_at) AS ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS ds__extract_doy , DATE_TRUNC('day', revenue_src_10006.created_at) AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week @@ -115,7 +115,7 @@ FROM ( , EXTRACT(quarter FROM revenue_src_10006.created_at) AS company__ds__extract_quarter , EXTRACT(month FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(day FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(dow FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(dayofweekiso FROM revenue_src_10006.created_at) AS company__ds__extract_dow , EXTRACT(doy FROM revenue_src_10006.created_at) AS company__ds__extract_doy , revenue_src_10006.user_id AS user , revenue_src_10006.user_id AS company__user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric__plan0.sql index 6d26c880d1..cb3a0a1cb5 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -368,7 +368,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -379,7 +379,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -390,7 +390,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -402,7 +402,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -413,7 +413,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -424,7 +424,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_to_grain__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_to_grain__plan0.sql index b6c51504b0..cc265b93d5 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_to_grain__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_to_grain__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_to_grain_and_granularity__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_to_grain_and_granularity__plan0.sql index 57d2f00513..58273e79e0 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_to_grain_and_granularity__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_to_grain_and_granularity__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_window__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_window__plan0.sql index b16bac877b..9bb8261142 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_window__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_window__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_window_and_granularity__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_window_and_granularity__plan0.sql index 7ec2828600..383d66efb3 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_window_and_granularity__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_window_and_granularity__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.sql index 2bb12399b8..35afabacce 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.sql @@ -249,7 +249,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -260,7 +260,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -271,7 +271,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -283,7 +283,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -294,7 +294,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -305,7 +305,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -565,7 +565,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -576,7 +576,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -587,7 +587,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -599,7 +599,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -610,7 +610,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -621,7 +621,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.sql index 179f1aa3b2..2b4a562439 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.sql @@ -249,7 +249,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -260,7 +260,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -271,7 +271,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -283,7 +283,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -294,7 +294,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -305,7 +305,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -566,7 +566,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -577,7 +577,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -588,7 +588,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -600,7 +600,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -611,7 +611,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -622,7 +622,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_offset_cumulative_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_offset_cumulative_metric__plan0.sql index 71991cf8dc..2eefe54e09 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_offset_cumulative_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_offset_cumulative_metric__plan0.sql @@ -350,7 +350,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -361,7 +361,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -372,7 +372,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -384,7 +384,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -395,7 +395,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -406,7 +406,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_offset_metric_with_one_input_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_offset_metric_with_one_input_metric__plan0.sql index 4d5dd790f3..22d932a6e4 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_offset_metric_with_one_input_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_derived_offset_metric_with_one_input_metric__plan0.sql @@ -243,7 +243,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -254,7 +254,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -265,7 +265,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -277,7 +277,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -288,7 +288,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -299,7 +299,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_distinct_values__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_distinct_values__plan0.sql index 635a5427b7..6df070d71c 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_distinct_values__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_distinct_values__plan0.sql @@ -80,7 +80,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -91,7 +91,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -105,7 +105,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -116,7 +116,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_filter_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_filter_node__plan0.sql index 1244d9945d..300526c0a3 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_filter_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_filter_node__plan0.sql @@ -29,7 +29,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -40,7 +40,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -51,7 +51,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -63,7 +63,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -74,7 +74,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -85,7 +85,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_filter_with_where_constraint_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_filter_with_where_constraint_node__plan0.sql index 80aa98ee5f..6b45fbb923 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_filter_with_where_constraint_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_filter_with_where_constraint_node__plan0.sql @@ -35,7 +35,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -46,7 +46,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -57,7 +57,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -69,7 +69,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -80,7 +80,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -91,7 +91,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_filter_with_where_constraint_on_join_dim__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_filter_with_where_constraint_on_join_dim__plan0.sql index 9071b78119..9c76dabead 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_filter_with_where_constraint_on_join_dim__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_filter_with_where_constraint_on_join_dim__plan0.sql @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -179,7 +179,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -190,7 +190,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -213,7 +213,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -224,7 +224,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -327,7 +327,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -338,7 +338,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -352,7 +352,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -363,7 +363,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_join_to_scd_dimension__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_join_to_scd_dimension__plan0.sql index 21832677e6..06b2beab7f 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_join_to_scd_dimension__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_join_to_scd_dimension__plan0.sql @@ -156,7 +156,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10015.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__week @@ -167,7 +167,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS paid_at__week @@ -178,7 +178,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS paid_at__extract_doy , bookings_source_src_10015.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10015.ds) AS booking__ds__day @@ -190,7 +190,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__week @@ -201,7 +201,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS booking__paid_at__week @@ -212,7 +212,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10015.listing_id AS listing , bookings_source_src_10015.guest_id AS guest @@ -246,7 +246,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_from) AS window_start__extract_quarter , EXTRACT(month FROM listings_src_10017.active_from) AS window_start__extract_month , EXTRACT(day FROM listings_src_10017.active_from) AS window_start__extract_day - , EXTRACT(dow FROM listings_src_10017.active_from) AS window_start__extract_dow + , EXTRACT(dayofweekiso FROM listings_src_10017.active_from) AS window_start__extract_dow , EXTRACT(doy FROM listings_src_10017.active_from) AS window_start__extract_doy , listings_src_10017.active_to AS window_end__day , DATE_TRUNC('week', listings_src_10017.active_to) AS window_end__week @@ -257,7 +257,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_to) AS window_end__extract_quarter , EXTRACT(month FROM listings_src_10017.active_to) AS window_end__extract_month , EXTRACT(day FROM listings_src_10017.active_to) AS window_end__extract_day - , EXTRACT(dow FROM listings_src_10017.active_to) AS window_end__extract_dow + , EXTRACT(dayofweekiso FROM listings_src_10017.active_to) AS window_end__extract_dow , EXTRACT(doy FROM listings_src_10017.active_to) AS window_end__extract_doy , listings_src_10017.country , listings_src_10017.is_lux @@ -271,7 +271,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_from) AS listing__window_start__extract_quarter , EXTRACT(month FROM listings_src_10017.active_from) AS listing__window_start__extract_month , EXTRACT(day FROM listings_src_10017.active_from) AS listing__window_start__extract_day - , EXTRACT(dow FROM listings_src_10017.active_from) AS listing__window_start__extract_dow + , EXTRACT(dayofweekiso FROM listings_src_10017.active_from) AS listing__window_start__extract_dow , EXTRACT(doy FROM listings_src_10017.active_from) AS listing__window_start__extract_doy , listings_src_10017.active_to AS listing__window_end__day , DATE_TRUNC('week', listings_src_10017.active_to) AS listing__window_end__week @@ -282,7 +282,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_to) AS listing__window_end__extract_quarter , EXTRACT(month FROM listings_src_10017.active_to) AS listing__window_end__extract_month , EXTRACT(day FROM listings_src_10017.active_to) AS listing__window_end__extract_day - , EXTRACT(dow FROM listings_src_10017.active_to) AS listing__window_end__extract_dow + , EXTRACT(dayofweekiso FROM listings_src_10017.active_to) AS listing__window_end__extract_dow , EXTRACT(doy FROM listings_src_10017.active_to) AS listing__window_end__extract_doy , listings_src_10017.country AS listing__country , listings_src_10017.is_lux AS listing__is_lux diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_node_with_offset_to_grain__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_node_with_offset_to_grain__plan0.sql index 60be6502e7..4c846769ba 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_node_with_offset_to_grain__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_node_with_offset_to_grain__plan0.sql @@ -157,7 +157,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -168,7 +168,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -179,7 +179,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -191,7 +191,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -202,7 +202,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -213,7 +213,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_node_with_offset_window__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_node_with_offset_window__plan0.sql index bcdfa096e7..04288f58d7 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_node_with_offset_window__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_node_with_offset_window__plan0.sql @@ -157,7 +157,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -168,7 +168,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -179,7 +179,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -191,7 +191,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -202,7 +202,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -213,7 +213,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_node_without_offset__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_node_without_offset__plan0.sql index dc3ea8edb4..df97b8fead 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_node_without_offset__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_join_to_time_spine_node_without_offset__plan0.sql @@ -157,7 +157,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -168,7 +168,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -179,7 +179,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -191,7 +191,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -202,7 +202,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -213,7 +213,7 @@ INNER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_limit_rows__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_limit_rows__plan0.sql index be82e3aa20..b2c7ca39d6 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_limit_rows__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_limit_rows__plan0.sql @@ -146,7 +146,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -157,7 +157,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -180,7 +180,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -191,7 +191,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_local_dimension_using_local_entity__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_local_dimension_using_local_entity__plan0.sql index a9df0cddc0..58fecf6116 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_local_dimension_using_local_entity__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_local_dimension_using_local_entity__plan0.sql @@ -98,7 +98,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -109,7 +109,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -123,7 +123,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -134,7 +134,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_measure_aggregation_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_measure_aggregation_node__plan0.sql index 1c26e58a38..beb50b7165 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_measure_aggregation_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_measure_aggregation_node__plan0.sql @@ -39,7 +39,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -50,7 +50,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -61,7 +61,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -73,7 +73,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -84,7 +84,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -95,7 +95,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_measure_constraint__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_measure_constraint__plan0.sql index 62f1ddc0c6..37506b49a2 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_measure_constraint__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_measure_constraint__plan0.sql @@ -180,7 +180,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -191,7 +191,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -214,7 +214,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -225,7 +225,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -236,7 +236,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -339,7 +339,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -350,7 +350,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -364,7 +364,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -375,7 +375,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest @@ -569,7 +569,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -580,7 +580,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -591,7 +591,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -603,7 +603,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -614,7 +614,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -625,7 +625,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -728,7 +728,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -739,7 +739,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -753,7 +753,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -764,7 +764,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest @@ -941,7 +941,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -952,7 +952,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -963,7 +963,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -975,7 +975,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -986,7 +986,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -997,7 +997,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_measure_constraint_with_reused_measure__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_measure_constraint_with_reused_measure__plan0.sql index 9ddf530c04..fcef034238 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_measure_constraint_with_reused_measure__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_measure_constraint_with_reused_measure__plan0.sql @@ -165,7 +165,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -176,7 +176,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -187,7 +187,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -199,7 +199,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -210,7 +210,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -221,7 +221,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -384,7 +384,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -395,7 +395,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -406,7 +406,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -418,7 +418,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -429,7 +429,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -440,7 +440,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_measure_constraint_with_single_expr_and_alias__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_measure_constraint_with_single_expr_and_alias__plan0.sql index e8ab341b30..f1b8a85280 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_measure_constraint_with_single_expr_and_alias__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_measure_constraint_with_single_expr_and_alias__plan0.sql @@ -159,7 +159,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -170,7 +170,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -193,7 +193,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -204,7 +204,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -215,7 +215,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.sql index cd94832c72..92e274b621 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.sql @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -158,7 +158,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -169,7 +169,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -192,7 +192,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -203,7 +203,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -315,7 +315,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -326,7 +326,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -340,7 +340,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -351,7 +351,7 @@ FROM ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multi_hop_through_scd_dimension__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multi_hop_through_scd_dimension__plan0.sql index c7bf69480d..f781a35ee5 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multi_hop_through_scd_dimension__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multi_hop_through_scd_dimension__plan0.sql @@ -146,7 +146,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10015.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__week @@ -157,7 +157,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS paid_at__week @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS paid_at__extract_doy , bookings_source_src_10015.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10015.ds) AS booking__ds__day @@ -180,7 +180,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__week @@ -191,7 +191,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS booking__paid_at__week @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10015.listing_id AS listing , bookings_source_src_10015.guest_id AS guest @@ -304,7 +304,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_from) AS window_start__extract_quarter , EXTRACT(month FROM listings_src_10017.active_from) AS window_start__extract_month , EXTRACT(day FROM listings_src_10017.active_from) AS window_start__extract_day - , EXTRACT(dow FROM listings_src_10017.active_from) AS window_start__extract_dow + , EXTRACT(dayofweekiso FROM listings_src_10017.active_from) AS window_start__extract_dow , EXTRACT(doy FROM listings_src_10017.active_from) AS window_start__extract_doy , listings_src_10017.active_to AS window_end__day , DATE_TRUNC('week', listings_src_10017.active_to) AS window_end__week @@ -315,7 +315,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_to) AS window_end__extract_quarter , EXTRACT(month FROM listings_src_10017.active_to) AS window_end__extract_month , EXTRACT(day FROM listings_src_10017.active_to) AS window_end__extract_day - , EXTRACT(dow FROM listings_src_10017.active_to) AS window_end__extract_dow + , EXTRACT(dayofweekiso FROM listings_src_10017.active_to) AS window_end__extract_dow , EXTRACT(doy FROM listings_src_10017.active_to) AS window_end__extract_doy , listings_src_10017.country , listings_src_10017.is_lux @@ -329,7 +329,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_from) AS listing__window_start__extract_quarter , EXTRACT(month FROM listings_src_10017.active_from) AS listing__window_start__extract_month , EXTRACT(day FROM listings_src_10017.active_from) AS listing__window_start__extract_day - , EXTRACT(dow FROM listings_src_10017.active_from) AS listing__window_start__extract_dow + , EXTRACT(dayofweekiso FROM listings_src_10017.active_from) AS listing__window_start__extract_dow , EXTRACT(doy FROM listings_src_10017.active_from) AS listing__window_start__extract_doy , listings_src_10017.active_to AS listing__window_end__day , DATE_TRUNC('week', listings_src_10017.active_to) AS listing__window_end__week @@ -340,7 +340,7 @@ FROM ( , EXTRACT(quarter FROM listings_src_10017.active_to) AS listing__window_end__extract_quarter , EXTRACT(month FROM listings_src_10017.active_to) AS listing__window_end__extract_month , EXTRACT(day FROM listings_src_10017.active_to) AS listing__window_end__extract_day - , EXTRACT(dow FROM listings_src_10017.active_to) AS listing__window_end__extract_dow + , EXTRACT(dayofweekiso FROM listings_src_10017.active_to) AS listing__window_end__extract_dow , EXTRACT(doy FROM listings_src_10017.active_to) AS listing__window_end__extract_doy , listings_src_10017.country AS listing__country , listings_src_10017.is_lux AS listing__is_lux @@ -415,7 +415,7 @@ FROM ( , EXTRACT(quarter FROM users_latest_src_10021.ds) AS ds__extract_quarter , EXTRACT(month FROM users_latest_src_10021.ds) AS ds__extract_month , EXTRACT(day FROM users_latest_src_10021.ds) AS ds__extract_day - , EXTRACT(dow FROM users_latest_src_10021.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM users_latest_src_10021.ds) AS ds__extract_dow , EXTRACT(doy FROM users_latest_src_10021.ds) AS ds__extract_doy , users_latest_src_10021.home_state_latest , DATE_TRUNC('day', users_latest_src_10021.ds) AS user__ds__day @@ -427,7 +427,7 @@ FROM ( , EXTRACT(quarter FROM users_latest_src_10021.ds) AS user__ds__extract_quarter , EXTRACT(month FROM users_latest_src_10021.ds) AS user__ds__extract_month , EXTRACT(day FROM users_latest_src_10021.ds) AS user__ds__extract_day - , EXTRACT(dow FROM users_latest_src_10021.ds) AS user__ds__extract_dow + , EXTRACT(dayofweekiso FROM users_latest_src_10021.ds) AS user__ds__extract_dow , EXTRACT(doy FROM users_latest_src_10021.ds) AS user__ds__extract_doy , users_latest_src_10021.home_state_latest AS user__home_state_latest , users_latest_src_10021.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multi_hop_to_scd_dimension__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multi_hop_to_scd_dimension__plan0.sql index 5b3ca3f0a8..c3313c8a1a 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multi_hop_to_scd_dimension__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multi_hop_to_scd_dimension__plan0.sql @@ -146,7 +146,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10015.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__week @@ -157,7 +157,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS paid_at__week @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS paid_at__extract_doy , bookings_source_src_10015.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10015.ds) AS booking__ds__day @@ -180,7 +180,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__week @@ -191,7 +191,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10015.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS booking__paid_at__week @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10015.listing_id AS listing , bookings_source_src_10015.guest_id AS guest @@ -373,7 +373,7 @@ FROM ( , EXTRACT(quarter FROM lux_listings_src_10019.valid_from) AS window_start__extract_quarter , EXTRACT(month FROM lux_listings_src_10019.valid_from) AS window_start__extract_month , EXTRACT(day FROM lux_listings_src_10019.valid_from) AS window_start__extract_day - , EXTRACT(dow FROM lux_listings_src_10019.valid_from) AS window_start__extract_dow + , EXTRACT(dayofweekiso FROM lux_listings_src_10019.valid_from) AS window_start__extract_dow , EXTRACT(doy FROM lux_listings_src_10019.valid_from) AS window_start__extract_doy , lux_listings_src_10019.valid_to AS window_end__day , DATE_TRUNC('week', lux_listings_src_10019.valid_to) AS window_end__week @@ -384,7 +384,7 @@ FROM ( , EXTRACT(quarter FROM lux_listings_src_10019.valid_to) AS window_end__extract_quarter , EXTRACT(month FROM lux_listings_src_10019.valid_to) AS window_end__extract_month , EXTRACT(day FROM lux_listings_src_10019.valid_to) AS window_end__extract_day - , EXTRACT(dow FROM lux_listings_src_10019.valid_to) AS window_end__extract_dow + , EXTRACT(dayofweekiso FROM lux_listings_src_10019.valid_to) AS window_end__extract_dow , EXTRACT(doy FROM lux_listings_src_10019.valid_to) AS window_end__extract_doy , lux_listings_src_10019.is_confirmed_lux , lux_listings_src_10019.valid_from AS lux_listing__window_start__day @@ -396,7 +396,7 @@ FROM ( , EXTRACT(quarter FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_quarter , EXTRACT(month FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_month , EXTRACT(day FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_day - , EXTRACT(dow FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_dow + , EXTRACT(dayofweekiso FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_dow , EXTRACT(doy FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_doy , lux_listings_src_10019.valid_to AS lux_listing__window_end__day , DATE_TRUNC('week', lux_listings_src_10019.valid_to) AS lux_listing__window_end__week @@ -407,7 +407,7 @@ FROM ( , EXTRACT(quarter FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_quarter , EXTRACT(month FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_month , EXTRACT(day FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_day - , EXTRACT(dow FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_dow + , EXTRACT(dayofweekiso FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_dow , EXTRACT(doy FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_doy , lux_listings_src_10019.is_confirmed_lux AS lux_listing__is_confirmed_lux , lux_listings_src_10019.lux_listing_id AS lux_listing diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multi_join_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multi_join_node__plan0.sql index 0c665ca416..96067fbe9c 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multi_join_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multi_join_node__plan0.sql @@ -37,7 +37,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -48,7 +48,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -59,7 +59,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -71,7 +71,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -82,7 +82,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -93,7 +93,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -125,7 +125,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -136,7 +136,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -150,7 +150,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -161,7 +161,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest @@ -195,7 +195,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -206,7 +206,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -220,7 +220,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -231,7 +231,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multihop_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multihop_node__plan0.sql index 6f3ba6132d..39e32ead71 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multihop_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multihop_node__plan0.sql @@ -103,7 +103,7 @@ FROM ( , EXTRACT(quarter FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', account_month_txns_src_10010.ds) AS ds__day , DATE_TRUNC('week', account_month_txns_src_10010.ds) AS ds__week @@ -114,7 +114,7 @@ FROM ( , EXTRACT(quarter FROM account_month_txns_src_10010.ds) AS ds__extract_quarter , EXTRACT(month FROM account_month_txns_src_10010.ds) AS ds__extract_month , EXTRACT(day FROM account_month_txns_src_10010.ds) AS ds__extract_day - , EXTRACT(dow FROM account_month_txns_src_10010.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM account_month_txns_src_10010.ds) AS ds__extract_dow , EXTRACT(doy FROM account_month_txns_src_10010.ds) AS ds__extract_doy , account_month_txns_src_10010.account_month , DATE_TRUNC('day', account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__day @@ -126,7 +126,7 @@ FROM ( , EXTRACT(quarter FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_quarter , EXTRACT(month FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_month , EXTRACT(day FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_day - , EXTRACT(dow FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_dow , EXTRACT(doy FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_doy , DATE_TRUNC('day', account_month_txns_src_10010.ds) AS account_id__ds__day , DATE_TRUNC('week', account_month_txns_src_10010.ds) AS account_id__ds__week @@ -137,7 +137,7 @@ FROM ( , EXTRACT(quarter FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_quarter , EXTRACT(month FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_month , EXTRACT(day FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_day - , EXTRACT(dow FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_dow + , EXTRACT(dayofweekiso FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_dow , EXTRACT(doy FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_doy , account_month_txns_src_10010.account_month AS account_id__account_month , account_month_txns_src_10010.account_id @@ -222,7 +222,7 @@ FROM ( , EXTRACT(quarter FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_doy , bridge_table_src_10011.extra_dim AS account_id__extra_dim , DATE_TRUNC('day', bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__day @@ -234,7 +234,7 @@ FROM ( , EXTRACT(quarter FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_quarter , EXTRACT(month FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_month , EXTRACT(day FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_day - , EXTRACT(dow FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_dow , EXTRACT(doy FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_doy , bridge_table_src_10011.extra_dim AS bridge_account__extra_dim , DATE_TRUNC('day', bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__day @@ -246,7 +246,7 @@ FROM ( , EXTRACT(quarter FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_quarter , EXTRACT(month FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_month , EXTRACT(day FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_day - , EXTRACT(dow FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_dow , EXTRACT(doy FROM bridge_table_src_10011.ds_partitioned) AS bridge_account__ds_partitioned__extract_doy , bridge_table_src_10011.account_id , bridge_table_src_10011.customer_id @@ -326,7 +326,7 @@ FROM ( , EXTRACT(quarter FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_doy , customer_table_src_10013.customer_name AS customer_id__customer_name , customer_table_src_10013.customer_atomic_weight AS customer_id__customer_atomic_weight @@ -339,7 +339,7 @@ FROM ( , EXTRACT(quarter FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_quarter , EXTRACT(month FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_month , EXTRACT(day FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_day - , EXTRACT(dow FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_dow , EXTRACT(doy FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_doy , customer_table_src_10013.customer_id FROM ***************************.customer_table customer_table_src_10013 diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multiple_metrics_no_dimensions__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multiple_metrics_no_dimensions__plan0.sql index db8d6d4dc6..125313d7bb 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multiple_metrics_no_dimensions__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_multiple_metrics_no_dimensions__plan0.sql @@ -244,7 +244,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -255,7 +255,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -266,7 +266,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -278,7 +278,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -289,7 +289,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -300,7 +300,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -484,7 +484,7 @@ CROSS JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -495,7 +495,7 @@ CROSS JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -509,7 +509,7 @@ CROSS JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -520,7 +520,7 @@ CROSS JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_nested_derived_metric__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_nested_derived_metric__plan0.sql index e184c40d9e..f3ab290f85 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_nested_derived_metric__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_nested_derived_metric__plan0.sql @@ -164,7 +164,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -175,7 +175,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -198,7 +198,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -209,7 +209,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -220,7 +220,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -380,7 +380,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -391,7 +391,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -402,7 +402,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -414,7 +414,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -425,7 +425,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -436,7 +436,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -608,7 +608,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -619,7 +619,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -630,7 +630,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -642,7 +642,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -653,7 +653,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -664,7 +664,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -834,7 +834,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -845,7 +845,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -856,7 +856,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -868,7 +868,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -879,7 +879,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -890,7 +890,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_offset_window_with_date_part__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_offset_window_with_date_part__plan0.sql index 6a952ab9bc..6d7c068e2a 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_offset_window_with_date_part__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_offset_window_with_date_part__plan0.sql @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -174,7 +174,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -208,7 +208,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -243,7 +243,7 @@ FROM ( FROM ( -- Join to Time Spine Dataset SELECT - EXTRACT(dow FROM subq_7.metric_time__day) AS metric_time__extract_dow + EXTRACT(dayofweekiso FROM subq_7.metric_time__day) AS metric_time__extract_dow , subq_6.ds__day AS ds__day , subq_6.ds__week AS ds__week , subq_6.ds__month AS ds__month @@ -465,7 +465,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -476,7 +476,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -487,7 +487,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -499,7 +499,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -510,7 +510,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -521,7 +521,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_offset_window_with_date_part__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_offset_window_with_date_part__plan0_optimized.sql index cbb1d95f41..253be04861 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_offset_window_with_date_part__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_offset_window_with_date_part__plan0_optimized.sql @@ -20,7 +20,7 @@ FROM ( -- Pass Only Elements: -- ['bookings', 'metric_time__extract_dow'] SELECT - EXTRACT(dow FROM ds) AS metric_time__extract_dow + EXTRACT(dayofweekiso FROM ds) AS metric_time__extract_dow , 1 AS bookings FROM ***************************.fct_bookings bookings_source_src_10001 ) subq_16 @@ -34,7 +34,7 @@ FROM ( -- Aggregate Measures -- Compute Metrics via Expressions SELECT - EXTRACT(dow FROM subq_22.ds) AS metric_time__extract_dow + EXTRACT(dayofweekiso FROM subq_22.ds) AS metric_time__extract_dow , SUM(subq_20.bookings) AS bookings_2_weeks_ago FROM ***************************.mf_time_spine subq_22 INNER JOIN ( @@ -48,7 +48,7 @@ FROM ( ON DATEADD(day, -14, subq_22.ds) = subq_20.metric_time__day GROUP BY - EXTRACT(dow FROM subq_22.ds) + EXTRACT(dayofweekiso FROM subq_22.ds) ) subq_26 ON ( diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_order_by_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_order_by_node__plan0.sql index c0f439ce6d..0561f0b791 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_order_by_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_order_by_node__plan0.sql @@ -49,7 +49,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -60,7 +60,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -71,7 +71,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -83,7 +83,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -94,7 +94,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -105,7 +105,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_partitioned_join__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_partitioned_join__plan0.sql index 1cba2c2615..a2e11e9487 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_partitioned_join__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_partitioned_join__plan0.sql @@ -105,7 +105,7 @@ FROM ( , EXTRACT(quarter FROM id_verifications_src_10003.ds) AS ds__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds) AS ds__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds) AS ds__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM id_verifications_src_10003.ds) AS ds__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds) AS ds__extract_doy , DATE_TRUNC('day', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__week @@ -116,7 +116,7 @@ FROM ( , EXTRACT(quarter FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_doy , id_verifications_src_10003.verification_type , DATE_TRUNC('day', id_verifications_src_10003.ds) AS verification__ds__day @@ -128,7 +128,7 @@ FROM ( , EXTRACT(quarter FROM id_verifications_src_10003.ds) AS verification__ds__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds) AS verification__ds__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds) AS verification__ds__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow + , EXTRACT(dayofweekiso FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds) AS verification__ds__extract_doy , DATE_TRUNC('day', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__day , DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__week @@ -139,7 +139,7 @@ FROM ( , EXTRACT(quarter FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_quarter , EXTRACT(month FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_month , EXTRACT(day FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_day - , EXTRACT(dow FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow , EXTRACT(doy FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_doy , id_verifications_src_10003.verification_type AS verification__verification_type , id_verifications_src_10003.verification_id AS verification @@ -168,7 +168,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.ds) AS ds__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.ds) AS ds__extract_month , EXTRACT(day FROM users_ds_source_src_10007.ds) AS ds__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM users_ds_source_src_10007.ds) AS ds__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.ds) AS ds__extract_doy , DATE_TRUNC('day', users_ds_source_src_10007.created_at) AS created_at__day , DATE_TRUNC('week', users_ds_source_src_10007.created_at) AS created_at__week @@ -179,7 +179,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.created_at) AS created_at__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.created_at) AS created_at__extract_month , EXTRACT(day FROM users_ds_source_src_10007.created_at) AS created_at__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.created_at) AS created_at__extract_dow + , EXTRACT(dayofweekiso FROM users_ds_source_src_10007.created_at) AS created_at__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.created_at) AS created_at__extract_doy , DATE_TRUNC('day', users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__week @@ -190,7 +190,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_doy , users_ds_source_src_10007.home_state , DATE_TRUNC('day', users_ds_source_src_10007.ds) AS user__ds__day @@ -202,7 +202,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.ds) AS user__ds__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.ds) AS user__ds__extract_month , EXTRACT(day FROM users_ds_source_src_10007.ds) AS user__ds__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.ds) AS user__ds__extract_dow + , EXTRACT(dayofweekiso FROM users_ds_source_src_10007.ds) AS user__ds__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.ds) AS user__ds__extract_doy , DATE_TRUNC('day', users_ds_source_src_10007.created_at) AS user__created_at__day , DATE_TRUNC('week', users_ds_source_src_10007.created_at) AS user__created_at__week @@ -213,7 +213,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_month , EXTRACT(day FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_dow + , EXTRACT(dayofweekiso FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_doy , DATE_TRUNC('day', users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__day , DATE_TRUNC('week', users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__week @@ -224,7 +224,7 @@ FROM ( , EXTRACT(quarter FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_quarter , EXTRACT(month FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_month , EXTRACT(day FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_day - , EXTRACT(dow FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_dow , EXTRACT(doy FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_doy , users_ds_source_src_10007.home_state AS user__home_state , users_ds_source_src_10007.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node__plan0.sql index 2659cbd52f..730e82659f 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node__plan0.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(dayofweekiso FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user @@ -82,7 +82,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -94,7 +94,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(dayofweekiso FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node__plan0_optimized.sql index a19cbd2307..a15965a3f5 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node__plan0_optimized.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , account_type , DATE_TRUNC('day', ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS account__ds__extract_quarter , EXTRACT(month FROM ds) AS account__ds__extract_month , EXTRACT(day FROM ds) AS account__ds__extract_day - , EXTRACT(dow FROM ds) AS account__ds__extract_dow + , EXTRACT(dayofweekiso FROM ds) AS account__ds__extract_dow , EXTRACT(doy FROM ds) AS account__ds__extract_doy , account_type AS account__account_type , user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node_with_grouping__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node_with_grouping__plan0.sql index 7fb7f7cd5d..60fe2c6161 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node_with_grouping__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node_with_grouping__plan0.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(dayofweekiso FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user @@ -83,7 +83,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -95,7 +95,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(dayofweekiso FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node_with_grouping__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node_with_grouping__plan0_optimized.sql index 1b0a5993d5..bc6b912f02 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node_with_grouping__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node_with_grouping__plan0_optimized.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , account_type , DATE_TRUNC('day', ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS account__ds__extract_quarter , EXTRACT(month FROM ds) AS account__ds__extract_month , EXTRACT(day FROM ds) AS account__ds__extract_day - , EXTRACT(dow FROM ds) AS account__ds__extract_dow + , EXTRACT(dayofweekiso FROM ds) AS account__ds__extract_dow , EXTRACT(doy FROM ds) AS account__ds__extract_doy , account_type AS account__account_type , user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node_with_queried_group_by__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node_with_queried_group_by__plan0.sql index d47c00c2ff..c2b0458b1d 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node_with_queried_group_by__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node_with_queried_group_by__plan0.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(dayofweekiso FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user @@ -83,7 +83,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM accounts_source_src_10000.ds) AS ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , DATE_TRUNC('day', accounts_source_src_10000.ds) AS account__ds__day @@ -95,7 +95,7 @@ INNER JOIN ( , EXTRACT(quarter FROM accounts_source_src_10000.ds) AS account__ds__extract_quarter , EXTRACT(month FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(day FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(dow FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(dayofweekiso FROM accounts_source_src_10000.ds) AS account__ds__extract_dow , EXTRACT(doy FROM accounts_source_src_10000.ds) AS account__ds__extract_doy , accounts_source_src_10000.account_type AS account__account_type , accounts_source_src_10000.user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node_with_queried_group_by__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node_with_queried_group_by__plan0_optimized.sql index ec857a8a3c..6cf051c56d 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node_with_queried_group_by__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_semi_additive_join_node_with_queried_group_by__plan0_optimized.sql @@ -44,7 +44,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , account_type , DATE_TRUNC('day', ds) AS account__ds__day @@ -56,7 +56,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS account__ds__extract_quarter , EXTRACT(month FROM ds) AS account__ds__extract_month , EXTRACT(day FROM ds) AS account__ds__extract_day - , EXTRACT(dow FROM ds) AS account__ds__extract_dow + , EXTRACT(dayofweekiso FROM ds) AS account__ds__extract_dow , EXTRACT(doy FROM ds) AS account__ds__extract_doy , account_type AS account__account_type , user_id AS user diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_simple_query_with_date_part__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_simple_query_with_date_part__plan0.sql index 555f66e073..cc9c0053a7 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_simple_query_with_date_part__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_simple_query_with_date_part__plan0.sql @@ -141,7 +141,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -152,7 +152,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -163,7 +163,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -175,7 +175,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -186,7 +186,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -197,7 +197,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_simple_query_with_date_part__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_simple_query_with_date_part__plan0_optimized.sql index 33b25a725c..282a906379 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_simple_query_with_date_part__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_simple_query_with_date_part__plan0_optimized.sql @@ -9,7 +9,7 @@ FROM ( -- Pass Only Elements: -- ['bookings', 'metric_time__extract_dow'] SELECT - EXTRACT(dow FROM ds) AS metric_time__extract_dow + EXTRACT(dayofweekiso FROM ds) AS metric_time__extract_dow , 1 AS bookings FROM ***************************.fct_bookings bookings_source_src_10001 ) subq_6 diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_simple_query_with_multiple_date_parts__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_simple_query_with_multiple_date_parts__plan0.sql index 547e875dc1..1fbc2e16d5 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_simple_query_with_multiple_date_parts__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_simple_query_with_multiple_date_parts__plan0.sql @@ -162,7 +162,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -173,7 +173,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -184,7 +184,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -196,7 +196,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -207,7 +207,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -218,7 +218,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_simple_query_with_multiple_date_parts__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_simple_query_with_multiple_date_parts__plan0_optimized.sql index bbc70c4ec8..507309d8e3 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_simple_query_with_multiple_date_parts__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_simple_query_with_multiple_date_parts__plan0_optimized.sql @@ -24,7 +24,7 @@ FROM ( , EXTRACT(quarter FROM ds) AS metric_time__extract_quarter , EXTRACT(month FROM ds) AS metric_time__extract_month , EXTRACT(day FROM ds) AS metric_time__extract_day - , EXTRACT(dow FROM ds) AS metric_time__extract_dow + , EXTRACT(dayofweekiso FROM ds) AS metric_time__extract_dow , EXTRACT(doy FROM ds) AS metric_time__extract_doy , 1 AS bookings FROM ***************************.fct_bookings bookings_source_src_10001 diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_single_join_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_single_join_node__plan0.sql index 39ea31a652..af48996702 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_single_join_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_single_join_node__plan0.sql @@ -35,7 +35,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -46,7 +46,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -57,7 +57,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -69,7 +69,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -80,7 +80,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -91,7 +91,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -123,7 +123,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week @@ -134,7 +134,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS created_at__extract_doy , listings_latest_src_10004.country AS country_latest , listings_latest_src_10004.is_lux AS is_lux_latest @@ -148,7 +148,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__ds__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , DATE_TRUNC('day', listings_latest_src_10004.created_at) AS listing__created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS listing__created_at__week @@ -159,7 +159,7 @@ LEFT OUTER JOIN ( , EXTRACT(quarter FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_quarter , EXTRACT(month FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(day FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(dow FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(dayofweekiso FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow , EXTRACT(doy FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_doy , listings_latest_src_10004.country AS listing__country_latest , listings_latest_src_10004.is_lux AS listing__is_lux_latest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_source_node__plan0.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_source_node__plan0.sql index b25bba3bb9..5faa3271b8 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_source_node__plan0.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_source_node__plan0.sql @@ -24,7 +24,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -35,7 +35,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -46,7 +46,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -58,7 +58,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -69,7 +69,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -80,7 +80,7 @@ SELECT , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_source_node__plan0_optimized.sql b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_source_node__plan0_optimized.sql index b570c8f026..a71958b980 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_source_node__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/Snowflake/test_source_node__plan0_optimized.sql @@ -24,7 +24,7 @@ SELECT , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS ds_partitioned__week @@ -35,7 +35,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS paid_at__day , DATE_TRUNC('week', paid_at) AS paid_at__week @@ -46,7 +46,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS paid_at__extract_month , EXTRACT(day FROM paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS paid_at__extract_doy , is_instant AS booking__is_instant , DATE_TRUNC('day', ds) AS booking__ds__day @@ -58,7 +58,7 @@ SELECT , EXTRACT(quarter FROM ds) AS booking__ds__extract_quarter , EXTRACT(month FROM ds) AS booking__ds__extract_month , EXTRACT(day FROM ds) AS booking__ds__extract_day - , EXTRACT(dow FROM ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM ds) AS booking__ds__extract_dow , EXTRACT(doy FROM ds) AS booking__ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS booking__ds_partitioned__week @@ -69,7 +69,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS booking__paid_at__day , DATE_TRUNC('week', paid_at) AS booking__paid_at__week @@ -80,7 +80,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS booking__paid_at__extract_doy , listing_id AS listing , guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.sql index ed3e7a8ac9..ae35c7bd29 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.sql @@ -113,7 +113,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -124,7 +124,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -135,7 +135,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -158,7 +158,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -169,7 +169,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_metric_time_dimension_transform_node_using_non_primary_time__plan0_optimized.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_metric_time_dimension_transform_node_using_non_primary_time__plan0_optimized.sql index 591ecf1813..49a20ecb3e 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_metric_time_dimension_transform_node_using_non_primary_time__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_metric_time_dimension_transform_node_using_non_primary_time__plan0_optimized.sql @@ -10,7 +10,7 @@ SELECT , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS ds_partitioned__week @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS paid_at__day , DATE_TRUNC('week', paid_at) AS paid_at__week @@ -32,7 +32,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS paid_at__extract_month , EXTRACT(day FROM paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS paid_at__extract_doy , DATE_TRUNC('day', ds) AS booking__ds__day , DATE_TRUNC('week', ds) AS booking__ds__week @@ -43,7 +43,7 @@ SELECT , EXTRACT(quarter FROM ds) AS booking__ds__extract_quarter , EXTRACT(month FROM ds) AS booking__ds__extract_month , EXTRACT(day FROM ds) AS booking__ds__extract_day - , EXTRACT(dow FROM ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds) AS booking__ds__extract_dow , EXTRACT(doy FROM ds) AS booking__ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS booking__ds_partitioned__week @@ -54,7 +54,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS booking__paid_at__day , DATE_TRUNC('week', paid_at) AS booking__paid_at__week @@ -65,7 +65,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS booking__paid_at__extract_doy , DATE_TRUNC('day', paid_at) AS metric_time__day , DATE_TRUNC('week', paid_at) AS metric_time__week @@ -76,7 +76,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS metric_time__extract_quarter , EXTRACT(month FROM paid_at) AS metric_time__extract_month , EXTRACT(day FROM paid_at) AS metric_time__extract_day - , EXTRACT(dow FROM paid_at) AS metric_time__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM paid_at) AS metric_time__extract_dow , EXTRACT(doy FROM paid_at) AS metric_time__extract_doy , listing_id AS listing , guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_metric_time_dimension_transform_node_using_primary_time__plan0.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_metric_time_dimension_transform_node_using_primary_time__plan0.sql index 1d401a64ce..b778ae6357 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_metric_time_dimension_transform_node_using_primary_time__plan0.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_metric_time_dimension_transform_node_using_primary_time__plan0.sql @@ -125,7 +125,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -136,7 +136,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -159,7 +159,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -170,7 +170,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_metric_time_dimension_transform_node_using_primary_time__plan0_optimized.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_metric_time_dimension_transform_node_using_primary_time__plan0_optimized.sql index 9bd99c959b..d94ca14dbe 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_metric_time_dimension_transform_node_using_primary_time__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_metric_time_dimension_transform_node_using_primary_time__plan0_optimized.sql @@ -10,7 +10,7 @@ SELECT , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS ds_partitioned__week @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS paid_at__day , DATE_TRUNC('week', paid_at) AS paid_at__week @@ -32,7 +32,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS paid_at__extract_month , EXTRACT(day FROM paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS paid_at__extract_doy , DATE_TRUNC('day', ds) AS booking__ds__day , DATE_TRUNC('week', ds) AS booking__ds__week @@ -43,7 +43,7 @@ SELECT , EXTRACT(quarter FROM ds) AS booking__ds__extract_quarter , EXTRACT(month FROM ds) AS booking__ds__extract_month , EXTRACT(day FROM ds) AS booking__ds__extract_day - , EXTRACT(dow FROM ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds) AS booking__ds__extract_dow , EXTRACT(doy FROM ds) AS booking__ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS booking__ds_partitioned__week @@ -54,7 +54,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS booking__paid_at__day , DATE_TRUNC('week', paid_at) AS booking__paid_at__week @@ -65,7 +65,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS booking__paid_at__extract_doy , DATE_TRUNC('day', ds) AS metric_time__day , DATE_TRUNC('week', ds) AS metric_time__week @@ -76,7 +76,7 @@ SELECT , EXTRACT(quarter FROM ds) AS metric_time__extract_quarter , EXTRACT(month FROM ds) AS metric_time__extract_month , EXTRACT(day FROM ds) AS metric_time__extract_day - , EXTRACT(dow FROM ds) AS metric_time__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM ds) AS metric_time__extract_dow , EXTRACT(doy FROM ds) AS metric_time__extract_doy , listing_id AS listing , guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_simple_query_with_metric_time_dimension__plan0.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_simple_query_with_metric_time_dimension__plan0.sql index 1e01acc6dd..328d7a0e4e 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_simple_query_with_metric_time_dimension__plan0.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Databricks/test_simple_query_with_metric_time_dimension__plan0.sql @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -158,7 +158,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -169,7 +169,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -192,7 +192,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -203,7 +203,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -351,7 +351,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -362,7 +362,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -373,7 +373,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -385,7 +385,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -396,7 +396,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -407,7 +407,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFWEEK_ISO FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.sql index ed3e7a8ac9..f452f0c6f1 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.sql @@ -113,7 +113,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -124,7 +124,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -135,7 +135,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -158,7 +158,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -169,7 +169,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_metric_time_dimension_transform_node_using_non_primary_time__plan0_optimized.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_metric_time_dimension_transform_node_using_non_primary_time__plan0_optimized.sql index 591ecf1813..663ecb72c6 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_metric_time_dimension_transform_node_using_non_primary_time__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_metric_time_dimension_transform_node_using_non_primary_time__plan0_optimized.sql @@ -10,7 +10,7 @@ SELECT , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(isodow FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS ds_partitioned__week @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS paid_at__day , DATE_TRUNC('week', paid_at) AS paid_at__week @@ -32,7 +32,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS paid_at__extract_month , EXTRACT(day FROM paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS paid_at__extract_doy , DATE_TRUNC('day', ds) AS booking__ds__day , DATE_TRUNC('week', ds) AS booking__ds__week @@ -43,7 +43,7 @@ SELECT , EXTRACT(quarter FROM ds) AS booking__ds__extract_quarter , EXTRACT(month FROM ds) AS booking__ds__extract_month , EXTRACT(day FROM ds) AS booking__ds__extract_day - , EXTRACT(dow FROM ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM ds) AS booking__ds__extract_dow , EXTRACT(doy FROM ds) AS booking__ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS booking__ds_partitioned__week @@ -54,7 +54,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS booking__paid_at__day , DATE_TRUNC('week', paid_at) AS booking__paid_at__week @@ -65,7 +65,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS booking__paid_at__extract_doy , DATE_TRUNC('day', paid_at) AS metric_time__day , DATE_TRUNC('week', paid_at) AS metric_time__week @@ -76,7 +76,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS metric_time__extract_quarter , EXTRACT(month FROM paid_at) AS metric_time__extract_month , EXTRACT(day FROM paid_at) AS metric_time__extract_day - , EXTRACT(dow FROM paid_at) AS metric_time__extract_dow + , EXTRACT(isodow FROM paid_at) AS metric_time__extract_dow , EXTRACT(doy FROM paid_at) AS metric_time__extract_doy , listing_id AS listing , guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_metric_time_dimension_transform_node_using_primary_time__plan0.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_metric_time_dimension_transform_node_using_primary_time__plan0.sql index 1d401a64ce..94f4dec0cd 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_metric_time_dimension_transform_node_using_primary_time__plan0.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_metric_time_dimension_transform_node_using_primary_time__plan0.sql @@ -125,7 +125,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -136,7 +136,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -159,7 +159,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -170,7 +170,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_metric_time_dimension_transform_node_using_primary_time__plan0_optimized.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_metric_time_dimension_transform_node_using_primary_time__plan0_optimized.sql index 9bd99c959b..8b0c7ac030 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_metric_time_dimension_transform_node_using_primary_time__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_metric_time_dimension_transform_node_using_primary_time__plan0_optimized.sql @@ -10,7 +10,7 @@ SELECT , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(isodow FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS ds_partitioned__week @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS paid_at__day , DATE_TRUNC('week', paid_at) AS paid_at__week @@ -32,7 +32,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS paid_at__extract_month , EXTRACT(day FROM paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS paid_at__extract_doy , DATE_TRUNC('day', ds) AS booking__ds__day , DATE_TRUNC('week', ds) AS booking__ds__week @@ -43,7 +43,7 @@ SELECT , EXTRACT(quarter FROM ds) AS booking__ds__extract_quarter , EXTRACT(month FROM ds) AS booking__ds__extract_month , EXTRACT(day FROM ds) AS booking__ds__extract_day - , EXTRACT(dow FROM ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM ds) AS booking__ds__extract_dow , EXTRACT(doy FROM ds) AS booking__ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS booking__ds_partitioned__week @@ -54,7 +54,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS booking__paid_at__day , DATE_TRUNC('week', paid_at) AS booking__paid_at__week @@ -65,7 +65,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS booking__paid_at__extract_doy , DATE_TRUNC('day', ds) AS metric_time__day , DATE_TRUNC('week', ds) AS metric_time__week @@ -76,7 +76,7 @@ SELECT , EXTRACT(quarter FROM ds) AS metric_time__extract_quarter , EXTRACT(month FROM ds) AS metric_time__extract_month , EXTRACT(day FROM ds) AS metric_time__extract_day - , EXTRACT(dow FROM ds) AS metric_time__extract_dow + , EXTRACT(isodow FROM ds) AS metric_time__extract_dow , EXTRACT(doy FROM ds) AS metric_time__extract_doy , listing_id AS listing , guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_simple_query_with_metric_time_dimension__plan0.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_simple_query_with_metric_time_dimension__plan0.sql index 1e01acc6dd..41bb520478 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_simple_query_with_metric_time_dimension__plan0.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/DuckDB/test_simple_query_with_metric_time_dimension__plan0.sql @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -158,7 +158,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -169,7 +169,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -192,7 +192,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -203,7 +203,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -351,7 +351,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -362,7 +362,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -373,7 +373,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -385,7 +385,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -396,7 +396,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -407,7 +407,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.sql index ed3e7a8ac9..f452f0c6f1 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.sql @@ -113,7 +113,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -124,7 +124,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -135,7 +135,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -158,7 +158,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -169,7 +169,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_metric_time_dimension_transform_node_using_non_primary_time__plan0_optimized.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_metric_time_dimension_transform_node_using_non_primary_time__plan0_optimized.sql index 591ecf1813..663ecb72c6 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_metric_time_dimension_transform_node_using_non_primary_time__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_metric_time_dimension_transform_node_using_non_primary_time__plan0_optimized.sql @@ -10,7 +10,7 @@ SELECT , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(isodow FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS ds_partitioned__week @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS paid_at__day , DATE_TRUNC('week', paid_at) AS paid_at__week @@ -32,7 +32,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS paid_at__extract_month , EXTRACT(day FROM paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS paid_at__extract_doy , DATE_TRUNC('day', ds) AS booking__ds__day , DATE_TRUNC('week', ds) AS booking__ds__week @@ -43,7 +43,7 @@ SELECT , EXTRACT(quarter FROM ds) AS booking__ds__extract_quarter , EXTRACT(month FROM ds) AS booking__ds__extract_month , EXTRACT(day FROM ds) AS booking__ds__extract_day - , EXTRACT(dow FROM ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM ds) AS booking__ds__extract_dow , EXTRACT(doy FROM ds) AS booking__ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS booking__ds_partitioned__week @@ -54,7 +54,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS booking__paid_at__day , DATE_TRUNC('week', paid_at) AS booking__paid_at__week @@ -65,7 +65,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS booking__paid_at__extract_doy , DATE_TRUNC('day', paid_at) AS metric_time__day , DATE_TRUNC('week', paid_at) AS metric_time__week @@ -76,7 +76,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS metric_time__extract_quarter , EXTRACT(month FROM paid_at) AS metric_time__extract_month , EXTRACT(day FROM paid_at) AS metric_time__extract_day - , EXTRACT(dow FROM paid_at) AS metric_time__extract_dow + , EXTRACT(isodow FROM paid_at) AS metric_time__extract_dow , EXTRACT(doy FROM paid_at) AS metric_time__extract_doy , listing_id AS listing , guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_metric_time_dimension_transform_node_using_primary_time__plan0.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_metric_time_dimension_transform_node_using_primary_time__plan0.sql index 1d401a64ce..94f4dec0cd 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_metric_time_dimension_transform_node_using_primary_time__plan0.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_metric_time_dimension_transform_node_using_primary_time__plan0.sql @@ -125,7 +125,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -136,7 +136,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -159,7 +159,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -170,7 +170,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_metric_time_dimension_transform_node_using_primary_time__plan0_optimized.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_metric_time_dimension_transform_node_using_primary_time__plan0_optimized.sql index 9bd99c959b..8b0c7ac030 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_metric_time_dimension_transform_node_using_primary_time__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_metric_time_dimension_transform_node_using_primary_time__plan0_optimized.sql @@ -10,7 +10,7 @@ SELECT , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(isodow FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS ds_partitioned__week @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS paid_at__day , DATE_TRUNC('week', paid_at) AS paid_at__week @@ -32,7 +32,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS paid_at__extract_month , EXTRACT(day FROM paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS paid_at__extract_doy , DATE_TRUNC('day', ds) AS booking__ds__day , DATE_TRUNC('week', ds) AS booking__ds__week @@ -43,7 +43,7 @@ SELECT , EXTRACT(quarter FROM ds) AS booking__ds__extract_quarter , EXTRACT(month FROM ds) AS booking__ds__extract_month , EXTRACT(day FROM ds) AS booking__ds__extract_day - , EXTRACT(dow FROM ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM ds) AS booking__ds__extract_dow , EXTRACT(doy FROM ds) AS booking__ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS booking__ds_partitioned__week @@ -54,7 +54,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS booking__paid_at__day , DATE_TRUNC('week', paid_at) AS booking__paid_at__week @@ -65,7 +65,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS booking__paid_at__extract_doy , DATE_TRUNC('day', ds) AS metric_time__day , DATE_TRUNC('week', ds) AS metric_time__week @@ -76,7 +76,7 @@ SELECT , EXTRACT(quarter FROM ds) AS metric_time__extract_quarter , EXTRACT(month FROM ds) AS metric_time__extract_month , EXTRACT(day FROM ds) AS metric_time__extract_day - , EXTRACT(dow FROM ds) AS metric_time__extract_dow + , EXTRACT(isodow FROM ds) AS metric_time__extract_dow , EXTRACT(doy FROM ds) AS metric_time__extract_doy , listing_id AS listing , guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_simple_query_with_metric_time_dimension__plan0.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_simple_query_with_metric_time_dimension__plan0.sql index 1e01acc6dd..41bb520478 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_simple_query_with_metric_time_dimension__plan0.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Postgres/test_simple_query_with_metric_time_dimension__plan0.sql @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -158,7 +158,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -169,7 +169,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -192,7 +192,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -203,7 +203,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -351,7 +351,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -362,7 +362,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -373,7 +373,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -385,7 +385,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -396,7 +396,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -407,7 +407,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(isodow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.sql index ed3e7a8ac9..bd4191ca0f 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.sql @@ -113,7 +113,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -124,7 +124,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -135,7 +135,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -158,7 +158,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -169,7 +169,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_metric_time_dimension_transform_node_using_non_primary_time__plan0_optimized.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_metric_time_dimension_transform_node_using_non_primary_time__plan0_optimized.sql index 591ecf1813..58018dc4d7 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_metric_time_dimension_transform_node_using_non_primary_time__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_metric_time_dimension_transform_node_using_non_primary_time__plan0_optimized.sql @@ -10,7 +10,7 @@ SELECT , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS ds_partitioned__week @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS paid_at__day , DATE_TRUNC('week', paid_at) AS paid_at__week @@ -32,7 +32,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS paid_at__extract_month , EXTRACT(day FROM paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS paid_at__extract_doy , DATE_TRUNC('day', ds) AS booking__ds__day , DATE_TRUNC('week', ds) AS booking__ds__week @@ -43,7 +43,7 @@ SELECT , EXTRACT(quarter FROM ds) AS booking__ds__extract_quarter , EXTRACT(month FROM ds) AS booking__ds__extract_month , EXTRACT(day FROM ds) AS booking__ds__extract_day - , EXTRACT(dow FROM ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM ds) AS booking__ds__extract_dow , EXTRACT(doy FROM ds) AS booking__ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS booking__ds_partitioned__week @@ -54,7 +54,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS booking__paid_at__day , DATE_TRUNC('week', paid_at) AS booking__paid_at__week @@ -65,7 +65,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS booking__paid_at__extract_doy , DATE_TRUNC('day', paid_at) AS metric_time__day , DATE_TRUNC('week', paid_at) AS metric_time__week @@ -76,7 +76,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS metric_time__extract_quarter , EXTRACT(month FROM paid_at) AS metric_time__extract_month , EXTRACT(day FROM paid_at) AS metric_time__extract_day - , EXTRACT(dow FROM paid_at) AS metric_time__extract_dow + , EXTRACT(dayofweekiso FROM paid_at) AS metric_time__extract_dow , EXTRACT(doy FROM paid_at) AS metric_time__extract_doy , listing_id AS listing , guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_metric_time_dimension_transform_node_using_primary_time__plan0.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_metric_time_dimension_transform_node_using_primary_time__plan0.sql index 1d401a64ce..a2429ac3c0 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_metric_time_dimension_transform_node_using_primary_time__plan0.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_metric_time_dimension_transform_node_using_primary_time__plan0.sql @@ -125,7 +125,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -136,7 +136,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -159,7 +159,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -170,7 +170,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_metric_time_dimension_transform_node_using_primary_time__plan0_optimized.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_metric_time_dimension_transform_node_using_primary_time__plan0_optimized.sql index 9bd99c959b..d973be8aa9 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_metric_time_dimension_transform_node_using_primary_time__plan0_optimized.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_metric_time_dimension_transform_node_using_primary_time__plan0_optimized.sql @@ -10,7 +10,7 @@ SELECT , EXTRACT(quarter FROM ds) AS ds__extract_quarter , EXTRACT(month FROM ds) AS ds__extract_month , EXTRACT(day FROM ds) AS ds__extract_day - , EXTRACT(dow FROM ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM ds) AS ds__extract_dow , EXTRACT(doy FROM ds) AS ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS ds_partitioned__week @@ -21,7 +21,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS paid_at__day , DATE_TRUNC('week', paid_at) AS paid_at__week @@ -32,7 +32,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS paid_at__extract_month , EXTRACT(day FROM paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS paid_at__extract_doy , DATE_TRUNC('day', ds) AS booking__ds__day , DATE_TRUNC('week', ds) AS booking__ds__week @@ -43,7 +43,7 @@ SELECT , EXTRACT(quarter FROM ds) AS booking__ds__extract_quarter , EXTRACT(month FROM ds) AS booking__ds__extract_month , EXTRACT(day FROM ds) AS booking__ds__extract_day - , EXTRACT(dow FROM ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM ds) AS booking__ds__extract_dow , EXTRACT(doy FROM ds) AS booking__ds__extract_doy , DATE_TRUNC('day', ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS booking__ds_partitioned__week @@ -54,7 +54,7 @@ SELECT , EXTRACT(quarter FROM ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', paid_at) AS booking__paid_at__day , DATE_TRUNC('week', paid_at) AS booking__paid_at__week @@ -65,7 +65,7 @@ SELECT , EXTRACT(quarter FROM paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM paid_at) AS booking__paid_at__extract_doy , DATE_TRUNC('day', ds) AS metric_time__day , DATE_TRUNC('week', ds) AS metric_time__week @@ -76,7 +76,7 @@ SELECT , EXTRACT(quarter FROM ds) AS metric_time__extract_quarter , EXTRACT(month FROM ds) AS metric_time__extract_month , EXTRACT(day FROM ds) AS metric_time__extract_day - , EXTRACT(dow FROM ds) AS metric_time__extract_dow + , EXTRACT(dayofweekiso FROM ds) AS metric_time__extract_dow , EXTRACT(doy FROM ds) AS metric_time__extract_doy , listing_id AS listing , guest_id AS guest diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_simple_query_with_metric_time_dimension__plan0.sql b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_simple_query_with_metric_time_dimension__plan0.sql index 1e01acc6dd..1dcb8db689 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_simple_query_with_metric_time_dimension__plan0.sql +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/Snowflake/test_simple_query_with_metric_time_dimension__plan0.sql @@ -147,7 +147,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -158,7 +158,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -169,7 +169,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -181,7 +181,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -192,7 +192,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -203,7 +203,7 @@ FROM ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest @@ -351,7 +351,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week @@ -362,7 +362,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week @@ -373,7 +373,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , DATE_TRUNC('day', bookings_source_src_10001.ds) AS booking__ds__day @@ -385,7 +385,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds) AS booking__ds__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__week @@ -396,7 +396,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(day FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , DATE_TRUNC('day', bookings_source_src_10001.paid_at) AS booking__paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS booking__paid_at__week @@ -407,7 +407,7 @@ FULL OUTER JOIN ( , EXTRACT(quarter FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_quarter , EXTRACT(month FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(day FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(dow FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(dayofweekiso FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow , EXTRACT(doy FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_doy , bookings_source_src_10001.listing_id AS listing , bookings_source_src_10001.guest_id AS guest diff --git a/metricflow/test/sql_clients/test_date_time_operations.py b/metricflow/test/sql_clients/test_date_time_operations.py index 1c8c1eebff..114e26f1a2 100644 --- a/metricflow/test/sql_clients/test_date_time_operations.py +++ b/metricflow/test/sql_clients/test_date_time_operations.py @@ -59,9 +59,6 @@ def test_date_trunc_to_year(sql_client: SqlClient) -> None: the first Thursday of that year, which might, in fact, be in the previous calendar year. Therefore, we coerce to the more general calendar year standard of the first of January. """ - if sql_client.sql_engine_type is SqlEngine.SNOWFLAKE: - pass - # The ISO year start for 2015 is 2014-12-29, but we should always get 2015-01-01 ISO_DATE_STRING = "2015-06-15" expected = pd.Timestamp(year=2015, month=1, day=1) @@ -193,7 +190,6 @@ def test_date_part_day_of_year(sql_client: SqlClient) -> None: assert expected == actual -@pytest.mark.skip("Date Part handling is currently inconsistent") @pytest.mark.parametrize( ("input", "expected"), ( @@ -208,6 +204,9 @@ def test_date_part_day_of_year(sql_client: SqlClient) -> None: ) def test_date_part_day_of_week(sql_client: SqlClient, input: str, expected: int) -> None: """Tests date_part or extract behavior for day of week.""" + if sql_client.sql_engine_type is SqlEngine.BIGQUERY or SqlEngine.REDSHIFT: + pytest.skip(reason="bigquery and redshift do not have native support for ISO day of week") + extract_stmt = sql_client.sql_query_plan_renderer.expr_renderer.render_sql_expr( _build_extract_expression(date_string=input, date_part=DatePart.DOW) ).sql