From b1468953c40f973fa458d4e4f752f8fb607e15da Mon Sep 17 00:00:00 2001 From: Courtney Holcomb Date: Mon, 11 Sep 2023 20:32:06 -0700 Subject: [PATCH] Rename to dow and doy --- .../integration/test_cases/itest_metrics.yaml | 6 +- ...st_convert_query_semantic_model__plan0.sql | 8 +- ...le_semantic_model_with_measures__plan0.sql | 16 +- ...semantic_model_without_measures__plan0.sql | 8 +- .../test_multihop_join_plan__dfp_0.xml | 32 +- .../test_common_semantic_model__plan0.sql | 104 ++-- .../test_compute_metrics_node__plan0.sql | 40 +- ...o_from_multiple_semantic_models__plan0.sql | 160 +++--- ...atio_from_single_semantic_model__plan0.sql | 40 +- ...ompute_metrics_node_simple_expr__plan0.sql | 40 +- .../test_constrain_time_range_node__plan0.sql | 24 +- .../DuckDB/test_cumulative_metric__plan0.sql | 20 +- ...cumulative_metric_grain_to_date__plan0.sql | 20 +- .../test_cumulative_metric_no_ds__plan0.sql | 20 +- ...est_cumulative_metric_no_window__plan0.sql | 20 +- ..._no_window_with_time_constraint__plan0.sql | 32 +- ...ive_metric_with_time_constraint__plan0.sql | 32 +- .../DuckDB/test_derived_metric__plan0.sql | 104 ++-- ...ved_metric_with_offset_to_grain__plan0.sql | 128 ++--- ...offset_to_grain_and_granularity__plan0.sql | 128 ++--- ...rived_metric_with_offset_window__plan0.sql | 128 ++--- ...h_offset_window_and_granularity__plan0.sql | 128 ++--- ...fset_window_and_offset_to_grain__plan0.sql | 152 ++--- ...offset_to_grain_and_granularity__plan0.sql | 152 ++--- ...erived_offset_cumulative_metric__plan0.sql | 104 ++-- ...et_metric_with_one_input_metric__plan0.sql | 76 +-- .../DuckDB/test_distinct_values__plan0.sql | 88 +-- .../DuckDB/test_filter_node__plan0.sql | 24 +- ...lter_with_where_constraint_node__plan0.sql | 24 +- ...th_where_constraint_on_join_dim__plan0.sql | 88 +-- .../test_join_to_scd_dimension__plan0.sql | 68 +-- ...spine_node_with_offset_to_grain__plan0.sql | 52 +- ...e_spine_node_with_offset_window__plan0.sql | 52 +- ..._time_spine_node_without_offset__plan0.sql | 52 +- .../DuckDB/test_limit_rows__plan0.sql | 52 +- ...al_dimension_using_local_entity__plan0.sql | 36 +- .../test_measure_aggregation_node__plan0.sql | 24 +- .../DuckDB/test_measure_constraint__plan0.sql | 228 ++++---- ..._constraint_with_reused_measure__plan0.sql | 104 ++-- ...aint_with_single_expr_and_alias__plan0.sql | 52 +- ..._multiple_sources_no_dimensions__plan0.sql | 88 +-- ...multi_hop_through_scd_dimension__plan0.sql | 104 ++-- ...test_multi_hop_to_scd_dimension__plan0.sql | 92 +-- .../DuckDB/test_multi_join_node__plan0.sql | 56 +- .../DuckDB/test_multihop_node__plan0.sql | 72 +-- ..._multiple_metrics_no_dimensions__plan0.sql | 136 ++--- .../test_nested_derived_metric__plan0.sql | 208 +++---- .../DuckDB/test_order_by_node__plan0.sql | 24 +- .../DuckDB/test_partitioned_join__plan0.sql | 60 +- .../test_semi_additive_join_node__plan0.sql | 24 +- ...mi_additive_join_node__plan0_optimized.sql | 16 +- ...dditive_join_node_with_grouping__plan0.sql | 24 +- ...in_node_with_grouping__plan0_optimized.sql | 16 +- ...join_node_with_queried_group_by__plan0.sql | 24 +- ...with_queried_group_by__plan0_optimized.sql | 16 +- .../DuckDB/test_single_join_node__plan0.sql | 40 +- .../DuckDB/test_source_node__plan0.sql | 24 +- .../test_source_node__plan0_optimized.sql | 24 +- .../test_common_semantic_model__plan0.xml | 248 ++++---- .../test_compute_metrics_node__plan0.xml | 124 ++-- ...o_from_multiple_semantic_models__plan0.xml | 364 ++++++------ ...atio_from_single_semantic_model__plan0.xml | 124 ++-- ...ompute_metrics_node_simple_expr__plan0.xml | 124 ++-- .../test_constrain_time_range_node__plan0.xml | 72 +-- .../test_cumulative_metric__plan0.xml | 32 +- ...cumulative_metric_grain_to_date__plan0.xml | 32 +- .../test_cumulative_metric_no_ds__plan0.xml | 32 +- ...est_cumulative_metric_no_window__plan0.xml | 32 +- ..._no_window_with_time_constraint__plan0.xml | 44 +- ...ive_metric_with_time_constraint__plan0.xml | 44 +- .../test_derived_metric__plan0.xml | 248 ++++---- ...ved_metric_with_offset_to_grain__plan0.xml | 296 +++++----- ...offset_to_grain_and_granularity__plan0.xml | 296 +++++----- ...rived_metric_with_offset_window__plan0.xml | 296 +++++----- ...h_offset_window_and_granularity__plan0.xml | 296 +++++----- ...fset_window_and_offset_to_grain__plan0.xml | 344 +++++------ ...offset_to_grain_and_granularity__plan0.xml | 344 +++++------ ...erived_offset_cumulative_metric__plan0.xml | 224 ++++---- ...et_metric_with_one_input_metric__plan0.xml | 172 +++--- .../test_distinct_values__plan0.xml | 208 +++---- .../SqlQueryPlan/test_filter_node__plan0.xml | 72 +-- ...lter_with_where_constraint_node__plan0.xml | 72 +-- ...th_where_constraint_on_join_dim__plan0.xml | 208 +++---- .../test_join_to_scd_dimension__plan0.xml | 188 +++--- ...spine_node_with_offset_to_grain__plan0.xml | 124 ++-- ...e_spine_node_with_offset_window__plan0.xml | 124 ++-- ..._time_spine_node_without_offset__plan0.xml | 124 ++-- .../SqlQueryPlan/test_limit_rows__plan0.xml | 124 ++-- ...al_dimension_using_local_entity__plan0.xml | 84 +-- .../test_measure_aggregation_node__plan0.xml | 72 +-- .../test_measure_constraint__plan0.xml | 540 +++++++++--------- ..._constraint_with_reused_measure__plan0.xml | 248 ++++---- ...aint_with_single_expr_and_alias__plan0.xml | 124 ++-- ..._multiple_sources_no_dimensions__plan0.xml | 208 +++---- ...multi_hop_through_scd_dimension__plan0.xml | 248 ++++---- ...test_multi_hop_to_scd_dimension__plan0.xml | 260 ++++----- .../test_multi_join_node__plan0.xml | 176 +++--- .../test_multihop_node__plan0.xml | 204 +++---- ..._multiple_metrics_no_dimensions__plan0.xml | 280 ++++----- .../test_nested_derived_metric__plan0.xml | 496 ++++++++-------- .../test_order_by_node__plan0.xml | 72 +-- .../test_partitioned_join__plan0.xml | 168 +++--- .../test_semi_additive_join_node__plan0.xml | 48 +- ...dditive_join_node_with_grouping__plan0.xml | 48 +- ...join_node_with_queried_group_by__plan0.xml | 48 +- .../test_single_join_node__plan0.xml | 124 ++-- .../SqlQueryPlan/test_source_node__plan0.xml | 72 +-- ...orm_node_using_non_primary_time__plan0.sql | 52 +- ...sing_non_primary_time__plan0_optimized.sql | 28 +- ...ansform_node_using_primary_time__plan0.sql | 52 +- ...de_using_primary_time__plan0_optimized.sql | 28 +- ...uery_with_metric_time_dimension__plan0.sql | 104 ++-- ...orm_node_using_non_primary_time__plan0.xml | 124 ++-- ...ansform_node_using_primary_time__plan0.xml | 124 ++-- ...uery_with_metric_time_dimension__plan0.xml | 248 ++++---- metricflow/time/date_part.py | 4 +- 116 files changed, 6515 insertions(+), 6515 deletions(-) diff --git a/metricflow/test/integration/test_cases/itest_metrics.yaml b/metricflow/test/integration/test_cases/itest_metrics.yaml index b2cd3a914a..aa184a67e1 100644 --- a/metricflow/test/integration/test_cases/itest_metrics.yaml +++ b/metricflow/test/integration/test_cases/itest_metrics.yaml @@ -1062,13 +1062,13 @@ integration_test: description: Test query using multiple date_parts model: SIMPLE_MODEL metrics: ["bookings"] - group_bys: ["metric_time__extract_quarter", "metric_time__extract_dayofweek", "metric_time__extract_dayofyear", "metric_time__extract_day", "metric_time__extract_week"] + group_bys: ["metric_time__extract_quarter", "metric_time__extract_dow", "metric_time__extract_doy", "metric_time__extract_day", "metric_time__extract_week"] check_query: | SELECT SUM(1) AS bookings , {{ render_extract("ds", DatePart.QUARTER) }} AS metric_time__extract_quarter - , {{ render_extract("ds", DatePart.DAYOFWEEK) }} AS metric_time__extract_dayofweek - , {{ render_extract("ds", DatePart.DAYOFYEAR) }} AS metric_time__extract_dayofyear + , {{ render_extract("ds", DatePart.DAYOFWEEK) }} AS metric_time__extract_dow + , {{ render_extract("ds", DatePart.DAYOFYEAR) }} AS metric_time__extract_doy , {{ render_extract("ds", DatePart.DAY) }} AS metric_time__extract_day , {{ render_extract("ds", DatePart.WEEK) }} AS metric_time__extract_week FROM {{ source_schema }}.fct_bookings 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 390e922160..db7d8060c4 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 @@ -11,8 +11,8 @@ SELECT , EXTRACT(MONTH FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(WEEK FROM revenue_src_10006.created_at) AS ds__extract_week , EXTRACT(DAY FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS ds__extract_doy , revenue_src_10006.created_at AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week , DATE_TRUNC('month', revenue_src_10006.created_at) AS company__ds__month @@ -23,8 +23,8 @@ SELECT , EXTRACT(MONTH FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(WEEK FROM revenue_src_10006.created_at) AS company__ds__extract_week , EXTRACT(DAY FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS company__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS company__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(DAYOFYEAR 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 FROM ***************************.fct_revenue revenue_src_10006 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 4a4b1f53f4..dd7ccdf1b3 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 @@ -11,8 +11,8 @@ SELECT , EXTRACT(MONTH FROM id_verifications_src_10003.ds) AS ds__extract_month , EXTRACT(WEEK FROM id_verifications_src_10003.ds) AS ds__extract_week , EXTRACT(DAY FROM id_verifications_src_10003.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM id_verifications_src_10003.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM id_verifications_src_10003.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM id_verifications_src_10003.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM id_verifications_src_10003.ds) AS ds__extract_doy , id_verifications_src_10003.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__month @@ -23,8 +23,8 @@ SELECT , EXTRACT(MONTH FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_doy , id_verifications_src_10003.verification_type , id_verifications_src_10003.ds AS verification__ds__day , DATE_TRUNC('week', id_verifications_src_10003.ds) AS verification__ds__week @@ -36,8 +36,8 @@ SELECT , EXTRACT(MONTH FROM id_verifications_src_10003.ds) AS verification__ds__extract_month , EXTRACT(WEEK FROM id_verifications_src_10003.ds) AS verification__ds__extract_week , EXTRACT(DAY FROM id_verifications_src_10003.ds) AS verification__ds__extract_day - , EXTRACT(DAYOFWEEK FROM id_verifications_src_10003.ds) AS verification__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM id_verifications_src_10003.ds) AS verification__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM id_verifications_src_10003.ds) AS verification__ds__extract_doy , 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 , DATE_TRUNC('month', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__month @@ -48,8 +48,8 @@ SELECT , EXTRACT(MONTH FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_month , EXTRACT(WEEK FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_week , EXTRACT(DAY FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR 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 , id_verifications_src_10003.user_id AS user 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 e3f2a1d31a..c62de83dc6 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 @@ -10,8 +10,8 @@ SELECT , EXTRACT(MONTH FROM users_latest_src_10008.ds) AS ds__extract_month , EXTRACT(WEEK FROM users_latest_src_10008.ds) AS ds__extract_week , EXTRACT(DAY FROM users_latest_src_10008.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM users_latest_src_10008.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM users_latest_src_10008.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM users_latest_src_10008.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM users_latest_src_10008.ds) AS ds__extract_doy , users_latest_src_10008.home_state_latest , users_latest_src_10008.ds AS user__ds__day , DATE_TRUNC('week', users_latest_src_10008.ds) AS user__ds__week @@ -23,8 +23,8 @@ SELECT , EXTRACT(MONTH FROM users_latest_src_10008.ds) AS user__ds__extract_month , EXTRACT(WEEK FROM users_latest_src_10008.ds) AS user__ds__extract_week , EXTRACT(DAY FROM users_latest_src_10008.ds) AS user__ds__extract_day - , EXTRACT(DAYOFWEEK FROM users_latest_src_10008.ds) AS user__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM users_latest_src_10008.ds) AS user__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM users_latest_src_10008.ds) AS user__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM users_latest_src_10008.ds) AS user__ds__extract_doy , users_latest_src_10008.home_state_latest AS user__home_state_latest , users_latest_src_10008.user_id AS user FROM ***************************.dim_users_latest users_latest_src_10008 diff --git a/metricflow/test/snapshots/test_dataflow_plan_builder.py/DataflowPlan/test_multihop_join_plan__dfp_0.xml b/metricflow/test/snapshots/test_dataflow_plan_builder.py/DataflowPlan/test_multihop_join_plan__dfp_0.xml index e29686410d..289229a67a 100644 --- a/metricflow/test/snapshots/test_dataflow_plan_builder.py/DataflowPlan/test_multihop_join_plan__dfp_0.xml +++ b/metricflow/test/snapshots/test_dataflow_plan_builder.py/DataflowPlan/test_multihop_join_plan__dfp_0.xml @@ -253,20 +253,20 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -342,14 +342,14 @@ - + - + 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 d2a3c6afd9..618f5f9d28 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 @@ -32,8 +32,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -44,8 +44,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -56,8 +56,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -68,8 +68,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -80,8 +80,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -92,8 +92,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -104,8 +104,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -155,8 +155,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -167,8 +167,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -179,8 +179,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -192,8 +192,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -204,8 +204,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -216,8 +216,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -261,8 +261,8 @@ FULL OUTER JOIN ( , subq_5.ds__extract_month , subq_5.ds__extract_week , subq_5.ds__extract_day - , subq_5.ds__extract_dayofweek - , subq_5.ds__extract_dayofyear + , subq_5.ds__extract_dow + , subq_5.ds__extract_doy , subq_5.ds_partitioned__day , subq_5.ds_partitioned__week , subq_5.ds_partitioned__month @@ -273,8 +273,8 @@ FULL OUTER JOIN ( , subq_5.ds_partitioned__extract_month , subq_5.ds_partitioned__extract_week , subq_5.ds_partitioned__extract_day - , subq_5.ds_partitioned__extract_dayofweek - , subq_5.ds_partitioned__extract_dayofyear + , subq_5.ds_partitioned__extract_dow + , subq_5.ds_partitioned__extract_doy , subq_5.paid_at__day , subq_5.paid_at__week , subq_5.paid_at__month @@ -285,8 +285,8 @@ FULL OUTER JOIN ( , subq_5.paid_at__extract_month , subq_5.paid_at__extract_week , subq_5.paid_at__extract_day - , subq_5.paid_at__extract_dayofweek - , subq_5.paid_at__extract_dayofyear + , subq_5.paid_at__extract_dow + , subq_5.paid_at__extract_doy , subq_5.booking__ds__day , subq_5.booking__ds__week , subq_5.booking__ds__month @@ -297,8 +297,8 @@ FULL OUTER JOIN ( , subq_5.booking__ds__extract_month , subq_5.booking__ds__extract_week , subq_5.booking__ds__extract_day - , subq_5.booking__ds__extract_dayofweek - , subq_5.booking__ds__extract_dayofyear + , subq_5.booking__ds__extract_dow + , subq_5.booking__ds__extract_doy , subq_5.booking__ds_partitioned__day , subq_5.booking__ds_partitioned__week , subq_5.booking__ds_partitioned__month @@ -309,8 +309,8 @@ FULL OUTER JOIN ( , subq_5.booking__ds_partitioned__extract_month , subq_5.booking__ds_partitioned__extract_week , subq_5.booking__ds_partitioned__extract_day - , subq_5.booking__ds_partitioned__extract_dayofweek - , subq_5.booking__ds_partitioned__extract_dayofyear + , subq_5.booking__ds_partitioned__extract_dow + , subq_5.booking__ds_partitioned__extract_doy , subq_5.booking__paid_at__day , subq_5.booking__paid_at__week , subq_5.booking__paid_at__month @@ -321,8 +321,8 @@ FULL OUTER JOIN ( , subq_5.booking__paid_at__extract_month , subq_5.booking__paid_at__extract_week , subq_5.booking__paid_at__extract_day - , subq_5.booking__paid_at__extract_dayofweek - , subq_5.booking__paid_at__extract_dayofyear + , subq_5.booking__paid_at__extract_dow + , subq_5.booking__paid_at__extract_doy , subq_5.ds__day AS metric_time__day , subq_5.ds__week AS metric_time__week , subq_5.ds__month AS metric_time__month @@ -333,8 +333,8 @@ FULL OUTER JOIN ( , subq_5.ds__extract_month AS metric_time__extract_month , subq_5.ds__extract_week AS metric_time__extract_week , subq_5.ds__extract_day AS metric_time__extract_day - , subq_5.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_5.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_5.ds__extract_dow AS metric_time__extract_dow + , subq_5.ds__extract_doy AS metric_time__extract_doy , subq_5.listing , subq_5.guest , subq_5.host @@ -384,8 +384,8 @@ FULL OUTER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -396,8 +396,8 @@ FULL OUTER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -408,8 +408,8 @@ FULL OUTER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -421,8 +421,8 @@ FULL OUTER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -433,8 +433,8 @@ FULL OUTER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -445,8 +445,8 @@ FULL OUTER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 c80b16baf0..70db1edf09 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 @@ -49,8 +49,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -61,8 +61,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -73,8 +73,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -86,8 +86,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -98,8 +98,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -110,8 +110,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -143,8 +143,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_doy , listings_latest_src_10004.created_at AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS created_at__month @@ -155,8 +155,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS capacity_latest @@ -170,8 +170,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , 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 , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS listing__created_at__month @@ -182,8 +182,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS listing__capacity_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 c45302afaf..350c29d01e 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 @@ -56,8 +56,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -68,8 +68,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -80,8 +80,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -92,8 +92,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -104,8 +104,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -116,8 +116,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -128,8 +128,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -179,8 +179,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -191,8 +191,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -203,8 +203,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -216,8 +216,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -228,8 +228,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -240,8 +240,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -271,8 +271,8 @@ FROM ( , subq_3.ds__extract_month , subq_3.ds__extract_week , subq_3.ds__extract_day - , subq_3.ds__extract_dayofweek - , subq_3.ds__extract_dayofyear + , subq_3.ds__extract_dow + , subq_3.ds__extract_doy , subq_3.created_at__day , subq_3.created_at__week , subq_3.created_at__month @@ -283,8 +283,8 @@ FROM ( , subq_3.created_at__extract_month , subq_3.created_at__extract_week , subq_3.created_at__extract_day - , subq_3.created_at__extract_dayofweek - , subq_3.created_at__extract_dayofyear + , subq_3.created_at__extract_dow + , subq_3.created_at__extract_doy , subq_3.listing__ds__day , subq_3.listing__ds__week , subq_3.listing__ds__month @@ -295,8 +295,8 @@ FROM ( , subq_3.listing__ds__extract_month , subq_3.listing__ds__extract_week , subq_3.listing__ds__extract_day - , subq_3.listing__ds__extract_dayofweek - , subq_3.listing__ds__extract_dayofyear + , subq_3.listing__ds__extract_dow + , subq_3.listing__ds__extract_doy , subq_3.listing__created_at__day , subq_3.listing__created_at__week , subq_3.listing__created_at__month @@ -307,8 +307,8 @@ FROM ( , subq_3.listing__created_at__extract_month , subq_3.listing__created_at__extract_week , subq_3.listing__created_at__extract_day - , subq_3.listing__created_at__extract_dayofweek - , subq_3.listing__created_at__extract_dayofyear + , subq_3.listing__created_at__extract_dow + , subq_3.listing__created_at__extract_doy , subq_3.ds__day AS metric_time__day , subq_3.ds__week AS metric_time__week , subq_3.ds__month AS metric_time__month @@ -319,8 +319,8 @@ FROM ( , subq_3.ds__extract_month AS metric_time__extract_month , subq_3.ds__extract_week AS metric_time__extract_week , subq_3.ds__extract_day AS metric_time__extract_day - , subq_3.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_3.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_3.ds__extract_dow AS metric_time__extract_dow + , subq_3.ds__extract_doy AS metric_time__extract_doy , subq_3.listing , subq_3.user , subq_3.listing__user @@ -349,8 +349,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_doy , listings_latest_src_10004.created_at AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS created_at__month @@ -361,8 +361,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS capacity_latest @@ -376,8 +376,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , 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 , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS listing__created_at__month @@ -388,8 +388,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS listing__capacity_latest @@ -455,8 +455,8 @@ FROM ( , subq_10.ds__extract_month , subq_10.ds__extract_week , subq_10.ds__extract_day - , subq_10.ds__extract_dayofweek - , subq_10.ds__extract_dayofyear + , subq_10.ds__extract_dow + , subq_10.ds__extract_doy , subq_10.ds_partitioned__day , subq_10.ds_partitioned__week , subq_10.ds_partitioned__month @@ -467,8 +467,8 @@ FROM ( , subq_10.ds_partitioned__extract_month , subq_10.ds_partitioned__extract_week , subq_10.ds_partitioned__extract_day - , subq_10.ds_partitioned__extract_dayofweek - , subq_10.ds_partitioned__extract_dayofyear + , subq_10.ds_partitioned__extract_dow + , subq_10.ds_partitioned__extract_doy , subq_10.view__ds__day , subq_10.view__ds__week , subq_10.view__ds__month @@ -479,8 +479,8 @@ FROM ( , subq_10.view__ds__extract_month , subq_10.view__ds__extract_week , subq_10.view__ds__extract_day - , subq_10.view__ds__extract_dayofweek - , subq_10.view__ds__extract_dayofyear + , subq_10.view__ds__extract_dow + , subq_10.view__ds__extract_doy , subq_10.view__ds_partitioned__day , subq_10.view__ds_partitioned__week , subq_10.view__ds_partitioned__month @@ -491,8 +491,8 @@ FROM ( , subq_10.view__ds_partitioned__extract_month , subq_10.view__ds_partitioned__extract_week , subq_10.view__ds_partitioned__extract_day - , subq_10.view__ds_partitioned__extract_dayofweek - , subq_10.view__ds_partitioned__extract_dayofyear + , subq_10.view__ds_partitioned__extract_dow + , subq_10.view__ds_partitioned__extract_doy , subq_10.ds__day AS metric_time__day , subq_10.ds__week AS metric_time__week , subq_10.ds__month AS metric_time__month @@ -503,8 +503,8 @@ FROM ( , subq_10.ds__extract_month AS metric_time__extract_month , subq_10.ds__extract_week AS metric_time__extract_week , subq_10.ds__extract_day AS metric_time__extract_day - , subq_10.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_10.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_10.ds__extract_dow AS metric_time__extract_dow + , subq_10.ds__extract_doy AS metric_time__extract_doy , subq_10.listing , subq_10.user , subq_10.view__listing @@ -524,8 +524,8 @@ FROM ( , EXTRACT(MONTH FROM views_source_src_10009.ds) AS ds__extract_month , EXTRACT(WEEK FROM views_source_src_10009.ds) AS ds__extract_week , EXTRACT(DAY FROM views_source_src_10009.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM views_source_src_10009.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM views_source_src_10009.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM views_source_src_10009.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM views_source_src_10009.ds) AS ds__extract_doy , views_source_src_10009.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', views_source_src_10009.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', views_source_src_10009.ds_partitioned) AS ds_partitioned__month @@ -536,8 +536,8 @@ FROM ( , EXTRACT(MONTH FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM views_source_src_10009.ds_partitioned) AS ds_partitioned__extract_doy , views_source_src_10009.ds AS view__ds__day , DATE_TRUNC('week', views_source_src_10009.ds) AS view__ds__week , DATE_TRUNC('month', views_source_src_10009.ds) AS view__ds__month @@ -548,8 +548,8 @@ FROM ( , EXTRACT(MONTH FROM views_source_src_10009.ds) AS view__ds__extract_month , EXTRACT(WEEK FROM views_source_src_10009.ds) AS view__ds__extract_week , EXTRACT(DAY FROM views_source_src_10009.ds) AS view__ds__extract_day - , EXTRACT(DAYOFWEEK FROM views_source_src_10009.ds) AS view__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM views_source_src_10009.ds) AS view__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM views_source_src_10009.ds) AS view__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM views_source_src_10009.ds) AS view__ds__extract_doy , 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 , DATE_TRUNC('month', views_source_src_10009.ds_partitioned) AS view__ds_partitioned__month @@ -560,8 +560,8 @@ FROM ( , EXTRACT(MONTH FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_month , EXTRACT(WEEK FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_week , EXTRACT(DAY FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM views_source_src_10009.ds_partitioned) AS view__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR 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 , views_source_src_10009.listing_id AS view__listing @@ -589,8 +589,8 @@ FROM ( , subq_13.ds__extract_month , subq_13.ds__extract_week , subq_13.ds__extract_day - , subq_13.ds__extract_dayofweek - , subq_13.ds__extract_dayofyear + , subq_13.ds__extract_dow + , subq_13.ds__extract_doy , subq_13.created_at__day , subq_13.created_at__week , subq_13.created_at__month @@ -601,8 +601,8 @@ FROM ( , subq_13.created_at__extract_month , subq_13.created_at__extract_week , subq_13.created_at__extract_day - , subq_13.created_at__extract_dayofweek - , subq_13.created_at__extract_dayofyear + , subq_13.created_at__extract_dow + , subq_13.created_at__extract_doy , subq_13.listing__ds__day , subq_13.listing__ds__week , subq_13.listing__ds__month @@ -613,8 +613,8 @@ FROM ( , subq_13.listing__ds__extract_month , subq_13.listing__ds__extract_week , subq_13.listing__ds__extract_day - , subq_13.listing__ds__extract_dayofweek - , subq_13.listing__ds__extract_dayofyear + , subq_13.listing__ds__extract_dow + , subq_13.listing__ds__extract_doy , subq_13.listing__created_at__day , subq_13.listing__created_at__week , subq_13.listing__created_at__month @@ -625,8 +625,8 @@ FROM ( , subq_13.listing__created_at__extract_month , subq_13.listing__created_at__extract_week , subq_13.listing__created_at__extract_day - , subq_13.listing__created_at__extract_dayofweek - , subq_13.listing__created_at__extract_dayofyear + , subq_13.listing__created_at__extract_dow + , subq_13.listing__created_at__extract_doy , subq_13.ds__day AS metric_time__day , subq_13.ds__week AS metric_time__week , subq_13.ds__month AS metric_time__month @@ -637,8 +637,8 @@ FROM ( , subq_13.ds__extract_month AS metric_time__extract_month , subq_13.ds__extract_week AS metric_time__extract_week , subq_13.ds__extract_day AS metric_time__extract_day - , subq_13.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_13.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_13.ds__extract_dow AS metric_time__extract_dow + , subq_13.ds__extract_doy AS metric_time__extract_doy , subq_13.listing , subq_13.user , subq_13.listing__user @@ -667,8 +667,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_doy , listings_latest_src_10004.created_at AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS created_at__month @@ -679,8 +679,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS capacity_latest @@ -694,8 +694,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , 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 , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS listing__created_at__month @@ -706,8 +706,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS listing__capacity_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 a56183e745..6cae314057 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 @@ -52,8 +52,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -64,8 +64,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -76,8 +76,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -89,8 +89,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -101,8 +101,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -113,8 +113,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -146,8 +146,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_doy , listings_latest_src_10004.created_at AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS created_at__month @@ -158,8 +158,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS capacity_latest @@ -173,8 +173,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , 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 , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS listing__created_at__month @@ -185,8 +185,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS listing__capacity_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 b6f01861d7..26ccf221dd 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 @@ -49,8 +49,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -61,8 +61,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -73,8 +73,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -86,8 +86,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -98,8 +98,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -110,8 +110,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -143,8 +143,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_doy , listings_latest_src_10004.created_at AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS created_at__month @@ -155,8 +155,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS capacity_latest @@ -170,8 +170,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , 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 , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS listing__created_at__month @@ -182,8 +182,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS listing__capacity_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 d480357663..3de0908e02 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 @@ -43,8 +43,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -55,8 +55,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -67,8 +67,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -80,8 +80,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -92,8 +92,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -104,8 +104,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 ad08f90e35..ac35263413 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 @@ -26,8 +26,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.company__ds__day , subq_0.company__ds__week , subq_0.company__ds__month @@ -38,8 +38,8 @@ FROM ( , subq_0.company__ds__extract_month , subq_0.company__ds__extract_week , subq_0.company__ds__extract_day - , subq_0.company__ds__extract_dayofweek - , subq_0.company__ds__extract_dayofyear + , subq_0.company__ds__extract_dow + , subq_0.company__ds__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -50,8 +50,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.user , subq_0.company__user , subq_0.txn_revenue @@ -69,8 +69,8 @@ FROM ( , EXTRACT(MONTH FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(WEEK FROM revenue_src_10006.created_at) AS ds__extract_week , EXTRACT(DAY FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS ds__extract_doy , revenue_src_10006.created_at AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week , DATE_TRUNC('month', revenue_src_10006.created_at) AS company__ds__month @@ -81,8 +81,8 @@ FROM ( , EXTRACT(MONTH FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(WEEK FROM revenue_src_10006.created_at) AS company__ds__extract_week , EXTRACT(DAY FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS company__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS company__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(DAYOFYEAR 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 FROM ***************************.fct_revenue revenue_src_10006 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 8c2ab1a915..abf31492df 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 @@ -26,8 +26,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.company__ds__day , subq_0.company__ds__week , subq_0.company__ds__month @@ -38,8 +38,8 @@ FROM ( , subq_0.company__ds__extract_month , subq_0.company__ds__extract_week , subq_0.company__ds__extract_day - , subq_0.company__ds__extract_dayofweek - , subq_0.company__ds__extract_dayofyear + , subq_0.company__ds__extract_dow + , subq_0.company__ds__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -50,8 +50,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.user , subq_0.company__user , subq_0.txn_revenue @@ -69,8 +69,8 @@ FROM ( , EXTRACT(MONTH FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(WEEK FROM revenue_src_10006.created_at) AS ds__extract_week , EXTRACT(DAY FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS ds__extract_doy , revenue_src_10006.created_at AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week , DATE_TRUNC('month', revenue_src_10006.created_at) AS company__ds__month @@ -81,8 +81,8 @@ FROM ( , EXTRACT(MONTH FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(WEEK FROM revenue_src_10006.created_at) AS company__ds__extract_week , EXTRACT(DAY FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS company__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS company__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(DAYOFYEAR 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 FROM ***************************.fct_revenue revenue_src_10006 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 8d5b07c69a..20b5cb5156 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 @@ -23,8 +23,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.company__ds__day , subq_0.company__ds__week , subq_0.company__ds__month @@ -35,8 +35,8 @@ FROM ( , subq_0.company__ds__extract_month , subq_0.company__ds__extract_week , subq_0.company__ds__extract_day - , subq_0.company__ds__extract_dayofweek - , subq_0.company__ds__extract_dayofyear + , subq_0.company__ds__extract_dow + , subq_0.company__ds__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -47,8 +47,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.user , subq_0.company__user , subq_0.txn_revenue @@ -66,8 +66,8 @@ FROM ( , EXTRACT(MONTH FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(WEEK FROM revenue_src_10006.created_at) AS ds__extract_week , EXTRACT(DAY FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS ds__extract_doy , revenue_src_10006.created_at AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week , DATE_TRUNC('month', revenue_src_10006.created_at) AS company__ds__month @@ -78,8 +78,8 @@ FROM ( , EXTRACT(MONTH FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(WEEK FROM revenue_src_10006.created_at) AS company__ds__extract_week , EXTRACT(DAY FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS company__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS company__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(DAYOFYEAR 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 FROM ***************************.fct_revenue revenue_src_10006 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 d98f0f554a..aee104bfff 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 @@ -26,8 +26,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.company__ds__day , subq_0.company__ds__week , subq_0.company__ds__month @@ -38,8 +38,8 @@ FROM ( , subq_0.company__ds__extract_month , subq_0.company__ds__extract_week , subq_0.company__ds__extract_day - , subq_0.company__ds__extract_dayofweek - , subq_0.company__ds__extract_dayofyear + , subq_0.company__ds__extract_dow + , subq_0.company__ds__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -50,8 +50,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.user , subq_0.company__user , subq_0.txn_revenue @@ -69,8 +69,8 @@ FROM ( , EXTRACT(MONTH FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(WEEK FROM revenue_src_10006.created_at) AS ds__extract_week , EXTRACT(DAY FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS ds__extract_doy , revenue_src_10006.created_at AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week , DATE_TRUNC('month', revenue_src_10006.created_at) AS company__ds__month @@ -81,8 +81,8 @@ FROM ( , EXTRACT(MONTH FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(WEEK FROM revenue_src_10006.created_at) AS company__ds__extract_week , EXTRACT(DAY FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS company__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS company__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(DAYOFYEAR 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 FROM ***************************.fct_revenue revenue_src_10006 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 26ab44afcc..7ba9208a6a 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 @@ -26,8 +26,8 @@ FROM ( , subq_1.ds__extract_month , subq_1.ds__extract_week , subq_1.ds__extract_day - , subq_1.ds__extract_dayofweek - , subq_1.ds__extract_dayofyear + , subq_1.ds__extract_dow + , subq_1.ds__extract_doy , subq_1.company__ds__day , subq_1.company__ds__week , subq_1.company__ds__month @@ -38,8 +38,8 @@ FROM ( , subq_1.company__ds__extract_month , subq_1.company__ds__extract_week , subq_1.company__ds__extract_day - , subq_1.company__ds__extract_dayofweek - , subq_1.company__ds__extract_dayofyear + , subq_1.company__ds__extract_dow + , subq_1.company__ds__extract_doy , subq_1.metric_time__day , subq_1.metric_time__week , subq_1.metric_time__month @@ -50,8 +50,8 @@ FROM ( , subq_1.metric_time__extract_month , subq_1.metric_time__extract_week , subq_1.metric_time__extract_day - , subq_1.metric_time__extract_dayofweek - , subq_1.metric_time__extract_dayofyear + , subq_1.metric_time__extract_dow + , subq_1.metric_time__extract_doy , subq_1.user , subq_1.company__user , subq_1.txn_revenue @@ -68,8 +68,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.company__ds__day , subq_0.company__ds__week , subq_0.company__ds__month @@ -80,8 +80,8 @@ FROM ( , subq_0.company__ds__extract_month , subq_0.company__ds__extract_week , subq_0.company__ds__extract_day - , subq_0.company__ds__extract_dayofweek - , subq_0.company__ds__extract_dayofyear + , subq_0.company__ds__extract_dow + , subq_0.company__ds__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -92,8 +92,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.user , subq_0.company__user , subq_0.txn_revenue @@ -111,8 +111,8 @@ FROM ( , EXTRACT(MONTH FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(WEEK FROM revenue_src_10006.created_at) AS ds__extract_week , EXTRACT(DAY FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS ds__extract_doy , revenue_src_10006.created_at AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week , DATE_TRUNC('month', revenue_src_10006.created_at) AS company__ds__month @@ -123,8 +123,8 @@ FROM ( , EXTRACT(MONTH FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(WEEK FROM revenue_src_10006.created_at) AS company__ds__extract_week , EXTRACT(DAY FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS company__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS company__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(DAYOFYEAR 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 FROM ***************************.fct_revenue revenue_src_10006 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 a670ac2189..788131918a 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 @@ -26,8 +26,8 @@ FROM ( , subq_1.ds__extract_month , subq_1.ds__extract_week , subq_1.ds__extract_day - , subq_1.ds__extract_dayofweek - , subq_1.ds__extract_dayofyear + , subq_1.ds__extract_dow + , subq_1.ds__extract_doy , subq_1.company__ds__day , subq_1.company__ds__week , subq_1.company__ds__month @@ -38,8 +38,8 @@ FROM ( , subq_1.company__ds__extract_month , subq_1.company__ds__extract_week , subq_1.company__ds__extract_day - , subq_1.company__ds__extract_dayofweek - , subq_1.company__ds__extract_dayofyear + , subq_1.company__ds__extract_dow + , subq_1.company__ds__extract_doy , subq_1.metric_time__day , subq_1.metric_time__week , subq_1.metric_time__month @@ -50,8 +50,8 @@ FROM ( , subq_1.metric_time__extract_month , subq_1.metric_time__extract_week , subq_1.metric_time__extract_day - , subq_1.metric_time__extract_dayofweek - , subq_1.metric_time__extract_dayofyear + , subq_1.metric_time__extract_dow + , subq_1.metric_time__extract_doy , subq_1.user , subq_1.company__user , subq_1.txn_revenue @@ -68,8 +68,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.company__ds__day , subq_0.company__ds__week , subq_0.company__ds__month @@ -80,8 +80,8 @@ FROM ( , subq_0.company__ds__extract_month , subq_0.company__ds__extract_week , subq_0.company__ds__extract_day - , subq_0.company__ds__extract_dayofweek - , subq_0.company__ds__extract_dayofyear + , subq_0.company__ds__extract_dow + , subq_0.company__ds__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -92,8 +92,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.user , subq_0.company__user , subq_0.txn_revenue @@ -111,8 +111,8 @@ FROM ( , EXTRACT(MONTH FROM revenue_src_10006.created_at) AS ds__extract_month , EXTRACT(WEEK FROM revenue_src_10006.created_at) AS ds__extract_week , EXTRACT(DAY FROM revenue_src_10006.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS ds__extract_doy , revenue_src_10006.created_at AS company__ds__day , DATE_TRUNC('week', revenue_src_10006.created_at) AS company__ds__week , DATE_TRUNC('month', revenue_src_10006.created_at) AS company__ds__month @@ -123,8 +123,8 @@ FROM ( , EXTRACT(MONTH FROM revenue_src_10006.created_at) AS company__ds__extract_month , EXTRACT(WEEK FROM revenue_src_10006.created_at) AS company__ds__extract_week , EXTRACT(DAY FROM revenue_src_10006.created_at) AS company__ds__extract_day - , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS company__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM revenue_src_10006.created_at) AS company__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM revenue_src_10006.created_at) AS company__ds__extract_dow + , EXTRACT(DAYOFYEAR 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 FROM ***************************.fct_revenue revenue_src_10006 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 3d88c96009..09e9a7df29 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 @@ -37,8 +37,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -49,8 +49,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -61,8 +61,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -73,8 +73,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -85,8 +85,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -97,8 +97,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -109,8 +109,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -160,8 +160,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -172,8 +172,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -184,8 +184,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -197,8 +197,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -209,8 +209,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -221,8 +221,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -266,8 +266,8 @@ FROM ( , subq_5.ds__extract_month , subq_5.ds__extract_week , subq_5.ds__extract_day - , subq_5.ds__extract_dayofweek - , subq_5.ds__extract_dayofyear + , subq_5.ds__extract_dow + , subq_5.ds__extract_doy , subq_5.ds_partitioned__day , subq_5.ds_partitioned__week , subq_5.ds_partitioned__month @@ -278,8 +278,8 @@ FROM ( , subq_5.ds_partitioned__extract_month , subq_5.ds_partitioned__extract_week , subq_5.ds_partitioned__extract_day - , subq_5.ds_partitioned__extract_dayofweek - , subq_5.ds_partitioned__extract_dayofyear + , subq_5.ds_partitioned__extract_dow + , subq_5.ds_partitioned__extract_doy , subq_5.paid_at__day , subq_5.paid_at__week , subq_5.paid_at__month @@ -290,8 +290,8 @@ FROM ( , subq_5.paid_at__extract_month , subq_5.paid_at__extract_week , subq_5.paid_at__extract_day - , subq_5.paid_at__extract_dayofweek - , subq_5.paid_at__extract_dayofyear + , subq_5.paid_at__extract_dow + , subq_5.paid_at__extract_doy , subq_5.booking__ds__day , subq_5.booking__ds__week , subq_5.booking__ds__month @@ -302,8 +302,8 @@ FROM ( , subq_5.booking__ds__extract_month , subq_5.booking__ds__extract_week , subq_5.booking__ds__extract_day - , subq_5.booking__ds__extract_dayofweek - , subq_5.booking__ds__extract_dayofyear + , subq_5.booking__ds__extract_dow + , subq_5.booking__ds__extract_doy , subq_5.booking__ds_partitioned__day , subq_5.booking__ds_partitioned__week , subq_5.booking__ds_partitioned__month @@ -314,8 +314,8 @@ FROM ( , subq_5.booking__ds_partitioned__extract_month , subq_5.booking__ds_partitioned__extract_week , subq_5.booking__ds_partitioned__extract_day - , subq_5.booking__ds_partitioned__extract_dayofweek - , subq_5.booking__ds_partitioned__extract_dayofyear + , subq_5.booking__ds_partitioned__extract_dow + , subq_5.booking__ds_partitioned__extract_doy , subq_5.booking__paid_at__day , subq_5.booking__paid_at__week , subq_5.booking__paid_at__month @@ -326,8 +326,8 @@ FROM ( , subq_5.booking__paid_at__extract_month , subq_5.booking__paid_at__extract_week , subq_5.booking__paid_at__extract_day - , subq_5.booking__paid_at__extract_dayofweek - , subq_5.booking__paid_at__extract_dayofyear + , subq_5.booking__paid_at__extract_dow + , subq_5.booking__paid_at__extract_doy , subq_5.ds__day AS metric_time__day , subq_5.ds__week AS metric_time__week , subq_5.ds__month AS metric_time__month @@ -338,8 +338,8 @@ FROM ( , subq_5.ds__extract_month AS metric_time__extract_month , subq_5.ds__extract_week AS metric_time__extract_week , subq_5.ds__extract_day AS metric_time__extract_day - , subq_5.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_5.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_5.ds__extract_dow AS metric_time__extract_dow + , subq_5.ds__extract_doy AS metric_time__extract_doy , subq_5.listing , subq_5.guest , subq_5.host @@ -389,8 +389,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -401,8 +401,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -413,8 +413,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -426,8 +426,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -438,8 +438,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -450,8 +450,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 e2ff275b47..2f56bdd23c 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 @@ -37,8 +37,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -49,8 +49,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -61,8 +61,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -73,8 +73,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -85,8 +85,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -97,8 +97,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -109,8 +109,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -160,8 +160,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -172,8 +172,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -184,8 +184,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -197,8 +197,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -209,8 +209,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -221,8 +221,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -267,8 +267,8 @@ FROM ( , subq_6.ds__extract_month AS ds__extract_month , subq_6.ds__extract_week AS ds__extract_week , subq_6.ds__extract_day AS ds__extract_day - , subq_6.ds__extract_dayofweek AS ds__extract_dayofweek - , subq_6.ds__extract_dayofyear AS ds__extract_dayofyear + , subq_6.ds__extract_dow AS ds__extract_dow + , subq_6.ds__extract_doy AS ds__extract_doy , subq_6.ds_partitioned__day AS ds_partitioned__day , subq_6.ds_partitioned__week AS ds_partitioned__week , subq_6.ds_partitioned__month AS ds_partitioned__month @@ -279,8 +279,8 @@ FROM ( , subq_6.ds_partitioned__extract_month AS ds_partitioned__extract_month , subq_6.ds_partitioned__extract_week AS ds_partitioned__extract_week , subq_6.ds_partitioned__extract_day AS ds_partitioned__extract_day - , subq_6.ds_partitioned__extract_dayofweek AS ds_partitioned__extract_dayofweek - , subq_6.ds_partitioned__extract_dayofyear AS ds_partitioned__extract_dayofyear + , subq_6.ds_partitioned__extract_dow AS ds_partitioned__extract_dow + , subq_6.ds_partitioned__extract_doy AS ds_partitioned__extract_doy , subq_6.paid_at__day AS paid_at__day , subq_6.paid_at__week AS paid_at__week , subq_6.paid_at__month AS paid_at__month @@ -291,8 +291,8 @@ FROM ( , subq_6.paid_at__extract_month AS paid_at__extract_month , subq_6.paid_at__extract_week AS paid_at__extract_week , subq_6.paid_at__extract_day AS paid_at__extract_day - , subq_6.paid_at__extract_dayofweek AS paid_at__extract_dayofweek - , subq_6.paid_at__extract_dayofyear AS paid_at__extract_dayofyear + , subq_6.paid_at__extract_dow AS paid_at__extract_dow + , subq_6.paid_at__extract_doy AS paid_at__extract_doy , subq_6.booking__ds__day AS booking__ds__day , subq_6.booking__ds__week AS booking__ds__week , subq_6.booking__ds__month AS booking__ds__month @@ -303,8 +303,8 @@ FROM ( , subq_6.booking__ds__extract_month AS booking__ds__extract_month , subq_6.booking__ds__extract_week AS booking__ds__extract_week , subq_6.booking__ds__extract_day AS booking__ds__extract_day - , subq_6.booking__ds__extract_dayofweek AS booking__ds__extract_dayofweek - , subq_6.booking__ds__extract_dayofyear AS booking__ds__extract_dayofyear + , subq_6.booking__ds__extract_dow AS booking__ds__extract_dow + , subq_6.booking__ds__extract_doy AS booking__ds__extract_doy , subq_6.booking__ds_partitioned__day AS booking__ds_partitioned__day , subq_6.booking__ds_partitioned__week AS booking__ds_partitioned__week , subq_6.booking__ds_partitioned__month AS booking__ds_partitioned__month @@ -315,8 +315,8 @@ FROM ( , subq_6.booking__ds_partitioned__extract_month AS booking__ds_partitioned__extract_month , subq_6.booking__ds_partitioned__extract_week AS booking__ds_partitioned__extract_week , subq_6.booking__ds_partitioned__extract_day AS booking__ds_partitioned__extract_day - , subq_6.booking__ds_partitioned__extract_dayofweek AS booking__ds_partitioned__extract_dayofweek - , subq_6.booking__ds_partitioned__extract_dayofyear AS booking__ds_partitioned__extract_dayofyear + , subq_6.booking__ds_partitioned__extract_dow AS booking__ds_partitioned__extract_dow + , subq_6.booking__ds_partitioned__extract_doy AS booking__ds_partitioned__extract_doy , subq_6.booking__paid_at__day AS booking__paid_at__day , subq_6.booking__paid_at__week AS booking__paid_at__week , subq_6.booking__paid_at__month AS booking__paid_at__month @@ -327,8 +327,8 @@ FROM ( , subq_6.booking__paid_at__extract_month AS booking__paid_at__extract_month , subq_6.booking__paid_at__extract_week AS booking__paid_at__extract_week , subq_6.booking__paid_at__extract_day AS booking__paid_at__extract_day - , subq_6.booking__paid_at__extract_dayofweek AS booking__paid_at__extract_dayofweek - , subq_6.booking__paid_at__extract_dayofyear AS booking__paid_at__extract_dayofyear + , subq_6.booking__paid_at__extract_dow AS booking__paid_at__extract_dow + , subq_6.booking__paid_at__extract_doy AS booking__paid_at__extract_doy , subq_6.listing AS listing , subq_6.guest AS guest , subq_6.host AS host @@ -369,8 +369,8 @@ FROM ( , subq_5.ds__extract_month , subq_5.ds__extract_week , subq_5.ds__extract_day - , subq_5.ds__extract_dayofweek - , subq_5.ds__extract_dayofyear + , subq_5.ds__extract_dow + , subq_5.ds__extract_doy , subq_5.ds_partitioned__day , subq_5.ds_partitioned__week , subq_5.ds_partitioned__month @@ -381,8 +381,8 @@ FROM ( , subq_5.ds_partitioned__extract_month , subq_5.ds_partitioned__extract_week , subq_5.ds_partitioned__extract_day - , subq_5.ds_partitioned__extract_dayofweek - , subq_5.ds_partitioned__extract_dayofyear + , subq_5.ds_partitioned__extract_dow + , subq_5.ds_partitioned__extract_doy , subq_5.paid_at__day , subq_5.paid_at__week , subq_5.paid_at__month @@ -393,8 +393,8 @@ FROM ( , subq_5.paid_at__extract_month , subq_5.paid_at__extract_week , subq_5.paid_at__extract_day - , subq_5.paid_at__extract_dayofweek - , subq_5.paid_at__extract_dayofyear + , subq_5.paid_at__extract_dow + , subq_5.paid_at__extract_doy , subq_5.booking__ds__day , subq_5.booking__ds__week , subq_5.booking__ds__month @@ -405,8 +405,8 @@ FROM ( , subq_5.booking__ds__extract_month , subq_5.booking__ds__extract_week , subq_5.booking__ds__extract_day - , subq_5.booking__ds__extract_dayofweek - , subq_5.booking__ds__extract_dayofyear + , subq_5.booking__ds__extract_dow + , subq_5.booking__ds__extract_doy , subq_5.booking__ds_partitioned__day , subq_5.booking__ds_partitioned__week , subq_5.booking__ds_partitioned__month @@ -417,8 +417,8 @@ FROM ( , subq_5.booking__ds_partitioned__extract_month , subq_5.booking__ds_partitioned__extract_week , subq_5.booking__ds_partitioned__extract_day - , subq_5.booking__ds_partitioned__extract_dayofweek - , subq_5.booking__ds_partitioned__extract_dayofyear + , subq_5.booking__ds_partitioned__extract_dow + , subq_5.booking__ds_partitioned__extract_doy , subq_5.booking__paid_at__day , subq_5.booking__paid_at__week , subq_5.booking__paid_at__month @@ -429,8 +429,8 @@ FROM ( , subq_5.booking__paid_at__extract_month , subq_5.booking__paid_at__extract_week , subq_5.booking__paid_at__extract_day - , subq_5.booking__paid_at__extract_dayofweek - , subq_5.booking__paid_at__extract_dayofyear + , subq_5.booking__paid_at__extract_dow + , subq_5.booking__paid_at__extract_doy , subq_5.ds__day AS metric_time__day , subq_5.ds__week AS metric_time__week , subq_5.ds__month AS metric_time__month @@ -441,8 +441,8 @@ FROM ( , subq_5.ds__extract_month AS metric_time__extract_month , subq_5.ds__extract_week AS metric_time__extract_week , subq_5.ds__extract_day AS metric_time__extract_day - , subq_5.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_5.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_5.ds__extract_dow AS metric_time__extract_dow + , subq_5.ds__extract_doy AS metric_time__extract_doy , subq_5.listing , subq_5.guest , subq_5.host @@ -492,8 +492,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -504,8 +504,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -516,8 +516,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -529,8 +529,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -541,8 +541,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -553,8 +553,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 13d462ce84..c6aea810c4 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 @@ -37,8 +37,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -49,8 +49,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -61,8 +61,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -73,8 +73,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -85,8 +85,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -97,8 +97,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -109,8 +109,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -160,8 +160,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -172,8 +172,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -184,8 +184,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -197,8 +197,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -209,8 +209,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -221,8 +221,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -267,8 +267,8 @@ FROM ( , subq_6.ds__extract_month AS ds__extract_month , subq_6.ds__extract_week AS ds__extract_week , subq_6.ds__extract_day AS ds__extract_day - , subq_6.ds__extract_dayofweek AS ds__extract_dayofweek - , subq_6.ds__extract_dayofyear AS ds__extract_dayofyear + , subq_6.ds__extract_dow AS ds__extract_dow + , subq_6.ds__extract_doy AS ds__extract_doy , subq_6.ds_partitioned__day AS ds_partitioned__day , subq_6.ds_partitioned__week AS ds_partitioned__week , subq_6.ds_partitioned__month AS ds_partitioned__month @@ -279,8 +279,8 @@ FROM ( , subq_6.ds_partitioned__extract_month AS ds_partitioned__extract_month , subq_6.ds_partitioned__extract_week AS ds_partitioned__extract_week , subq_6.ds_partitioned__extract_day AS ds_partitioned__extract_day - , subq_6.ds_partitioned__extract_dayofweek AS ds_partitioned__extract_dayofweek - , subq_6.ds_partitioned__extract_dayofyear AS ds_partitioned__extract_dayofyear + , subq_6.ds_partitioned__extract_dow AS ds_partitioned__extract_dow + , subq_6.ds_partitioned__extract_doy AS ds_partitioned__extract_doy , subq_6.paid_at__day AS paid_at__day , subq_6.paid_at__week AS paid_at__week , subq_6.paid_at__month AS paid_at__month @@ -291,8 +291,8 @@ FROM ( , subq_6.paid_at__extract_month AS paid_at__extract_month , subq_6.paid_at__extract_week AS paid_at__extract_week , subq_6.paid_at__extract_day AS paid_at__extract_day - , subq_6.paid_at__extract_dayofweek AS paid_at__extract_dayofweek - , subq_6.paid_at__extract_dayofyear AS paid_at__extract_dayofyear + , subq_6.paid_at__extract_dow AS paid_at__extract_dow + , subq_6.paid_at__extract_doy AS paid_at__extract_doy , subq_6.booking__ds__day AS booking__ds__day , subq_6.booking__ds__week AS booking__ds__week , subq_6.booking__ds__month AS booking__ds__month @@ -303,8 +303,8 @@ FROM ( , subq_6.booking__ds__extract_month AS booking__ds__extract_month , subq_6.booking__ds__extract_week AS booking__ds__extract_week , subq_6.booking__ds__extract_day AS booking__ds__extract_day - , subq_6.booking__ds__extract_dayofweek AS booking__ds__extract_dayofweek - , subq_6.booking__ds__extract_dayofyear AS booking__ds__extract_dayofyear + , subq_6.booking__ds__extract_dow AS booking__ds__extract_dow + , subq_6.booking__ds__extract_doy AS booking__ds__extract_doy , subq_6.booking__ds_partitioned__day AS booking__ds_partitioned__day , subq_6.booking__ds_partitioned__week AS booking__ds_partitioned__week , subq_6.booking__ds_partitioned__month AS booking__ds_partitioned__month @@ -315,8 +315,8 @@ FROM ( , subq_6.booking__ds_partitioned__extract_month AS booking__ds_partitioned__extract_month , subq_6.booking__ds_partitioned__extract_week AS booking__ds_partitioned__extract_week , subq_6.booking__ds_partitioned__extract_day AS booking__ds_partitioned__extract_day - , subq_6.booking__ds_partitioned__extract_dayofweek AS booking__ds_partitioned__extract_dayofweek - , subq_6.booking__ds_partitioned__extract_dayofyear AS booking__ds_partitioned__extract_dayofyear + , subq_6.booking__ds_partitioned__extract_dow AS booking__ds_partitioned__extract_dow + , subq_6.booking__ds_partitioned__extract_doy AS booking__ds_partitioned__extract_doy , subq_6.booking__paid_at__day AS booking__paid_at__day , subq_6.booking__paid_at__week AS booking__paid_at__week , subq_6.booking__paid_at__month AS booking__paid_at__month @@ -327,8 +327,8 @@ FROM ( , subq_6.booking__paid_at__extract_month AS booking__paid_at__extract_month , subq_6.booking__paid_at__extract_week AS booking__paid_at__extract_week , subq_6.booking__paid_at__extract_day AS booking__paid_at__extract_day - , subq_6.booking__paid_at__extract_dayofweek AS booking__paid_at__extract_dayofweek - , subq_6.booking__paid_at__extract_dayofyear AS booking__paid_at__extract_dayofyear + , subq_6.booking__paid_at__extract_dow AS booking__paid_at__extract_dow + , subq_6.booking__paid_at__extract_doy AS booking__paid_at__extract_doy , subq_6.listing AS listing , subq_6.guest AS guest , subq_6.host AS host @@ -369,8 +369,8 @@ FROM ( , subq_5.ds__extract_month , subq_5.ds__extract_week , subq_5.ds__extract_day - , subq_5.ds__extract_dayofweek - , subq_5.ds__extract_dayofyear + , subq_5.ds__extract_dow + , subq_5.ds__extract_doy , subq_5.ds_partitioned__day , subq_5.ds_partitioned__week , subq_5.ds_partitioned__month @@ -381,8 +381,8 @@ FROM ( , subq_5.ds_partitioned__extract_month , subq_5.ds_partitioned__extract_week , subq_5.ds_partitioned__extract_day - , subq_5.ds_partitioned__extract_dayofweek - , subq_5.ds_partitioned__extract_dayofyear + , subq_5.ds_partitioned__extract_dow + , subq_5.ds_partitioned__extract_doy , subq_5.paid_at__day , subq_5.paid_at__week , subq_5.paid_at__month @@ -393,8 +393,8 @@ FROM ( , subq_5.paid_at__extract_month , subq_5.paid_at__extract_week , subq_5.paid_at__extract_day - , subq_5.paid_at__extract_dayofweek - , subq_5.paid_at__extract_dayofyear + , subq_5.paid_at__extract_dow + , subq_5.paid_at__extract_doy , subq_5.booking__ds__day , subq_5.booking__ds__week , subq_5.booking__ds__month @@ -405,8 +405,8 @@ FROM ( , subq_5.booking__ds__extract_month , subq_5.booking__ds__extract_week , subq_5.booking__ds__extract_day - , subq_5.booking__ds__extract_dayofweek - , subq_5.booking__ds__extract_dayofyear + , subq_5.booking__ds__extract_dow + , subq_5.booking__ds__extract_doy , subq_5.booking__ds_partitioned__day , subq_5.booking__ds_partitioned__week , subq_5.booking__ds_partitioned__month @@ -417,8 +417,8 @@ FROM ( , subq_5.booking__ds_partitioned__extract_month , subq_5.booking__ds_partitioned__extract_week , subq_5.booking__ds_partitioned__extract_day - , subq_5.booking__ds_partitioned__extract_dayofweek - , subq_5.booking__ds_partitioned__extract_dayofyear + , subq_5.booking__ds_partitioned__extract_dow + , subq_5.booking__ds_partitioned__extract_doy , subq_5.booking__paid_at__day , subq_5.booking__paid_at__week , subq_5.booking__paid_at__month @@ -429,8 +429,8 @@ FROM ( , subq_5.booking__paid_at__extract_month , subq_5.booking__paid_at__extract_week , subq_5.booking__paid_at__extract_day - , subq_5.booking__paid_at__extract_dayofweek - , subq_5.booking__paid_at__extract_dayofyear + , subq_5.booking__paid_at__extract_dow + , subq_5.booking__paid_at__extract_doy , subq_5.ds__day AS metric_time__day , subq_5.ds__week AS metric_time__week , subq_5.ds__month AS metric_time__month @@ -441,8 +441,8 @@ FROM ( , subq_5.ds__extract_month AS metric_time__extract_month , subq_5.ds__extract_week AS metric_time__extract_week , subq_5.ds__extract_day AS metric_time__extract_day - , subq_5.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_5.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_5.ds__extract_dow AS metric_time__extract_dow + , subq_5.ds__extract_doy AS metric_time__extract_doy , subq_5.listing , subq_5.guest , subq_5.host @@ -492,8 +492,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -504,8 +504,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -516,8 +516,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -529,8 +529,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -541,8 +541,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -553,8 +553,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 7763daf079..0596eaabd8 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 @@ -37,8 +37,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -49,8 +49,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -61,8 +61,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -73,8 +73,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -85,8 +85,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -97,8 +97,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -109,8 +109,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -160,8 +160,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -172,8 +172,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -184,8 +184,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -197,8 +197,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -209,8 +209,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -221,8 +221,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -267,8 +267,8 @@ FROM ( , subq_6.ds__extract_month AS ds__extract_month , subq_6.ds__extract_week AS ds__extract_week , subq_6.ds__extract_day AS ds__extract_day - , subq_6.ds__extract_dayofweek AS ds__extract_dayofweek - , subq_6.ds__extract_dayofyear AS ds__extract_dayofyear + , subq_6.ds__extract_dow AS ds__extract_dow + , subq_6.ds__extract_doy AS ds__extract_doy , subq_6.ds_partitioned__day AS ds_partitioned__day , subq_6.ds_partitioned__week AS ds_partitioned__week , subq_6.ds_partitioned__month AS ds_partitioned__month @@ -279,8 +279,8 @@ FROM ( , subq_6.ds_partitioned__extract_month AS ds_partitioned__extract_month , subq_6.ds_partitioned__extract_week AS ds_partitioned__extract_week , subq_6.ds_partitioned__extract_day AS ds_partitioned__extract_day - , subq_6.ds_partitioned__extract_dayofweek AS ds_partitioned__extract_dayofweek - , subq_6.ds_partitioned__extract_dayofyear AS ds_partitioned__extract_dayofyear + , subq_6.ds_partitioned__extract_dow AS ds_partitioned__extract_dow + , subq_6.ds_partitioned__extract_doy AS ds_partitioned__extract_doy , subq_6.paid_at__day AS paid_at__day , subq_6.paid_at__week AS paid_at__week , subq_6.paid_at__month AS paid_at__month @@ -291,8 +291,8 @@ FROM ( , subq_6.paid_at__extract_month AS paid_at__extract_month , subq_6.paid_at__extract_week AS paid_at__extract_week , subq_6.paid_at__extract_day AS paid_at__extract_day - , subq_6.paid_at__extract_dayofweek AS paid_at__extract_dayofweek - , subq_6.paid_at__extract_dayofyear AS paid_at__extract_dayofyear + , subq_6.paid_at__extract_dow AS paid_at__extract_dow + , subq_6.paid_at__extract_doy AS paid_at__extract_doy , subq_6.booking__ds__day AS booking__ds__day , subq_6.booking__ds__week AS booking__ds__week , subq_6.booking__ds__month AS booking__ds__month @@ -303,8 +303,8 @@ FROM ( , subq_6.booking__ds__extract_month AS booking__ds__extract_month , subq_6.booking__ds__extract_week AS booking__ds__extract_week , subq_6.booking__ds__extract_day AS booking__ds__extract_day - , subq_6.booking__ds__extract_dayofweek AS booking__ds__extract_dayofweek - , subq_6.booking__ds__extract_dayofyear AS booking__ds__extract_dayofyear + , subq_6.booking__ds__extract_dow AS booking__ds__extract_dow + , subq_6.booking__ds__extract_doy AS booking__ds__extract_doy , subq_6.booking__ds_partitioned__day AS booking__ds_partitioned__day , subq_6.booking__ds_partitioned__week AS booking__ds_partitioned__week , subq_6.booking__ds_partitioned__month AS booking__ds_partitioned__month @@ -315,8 +315,8 @@ FROM ( , subq_6.booking__ds_partitioned__extract_month AS booking__ds_partitioned__extract_month , subq_6.booking__ds_partitioned__extract_week AS booking__ds_partitioned__extract_week , subq_6.booking__ds_partitioned__extract_day AS booking__ds_partitioned__extract_day - , subq_6.booking__ds_partitioned__extract_dayofweek AS booking__ds_partitioned__extract_dayofweek - , subq_6.booking__ds_partitioned__extract_dayofyear AS booking__ds_partitioned__extract_dayofyear + , subq_6.booking__ds_partitioned__extract_dow AS booking__ds_partitioned__extract_dow + , subq_6.booking__ds_partitioned__extract_doy AS booking__ds_partitioned__extract_doy , subq_6.booking__paid_at__day AS booking__paid_at__day , subq_6.booking__paid_at__week AS booking__paid_at__week , subq_6.booking__paid_at__month AS booking__paid_at__month @@ -327,8 +327,8 @@ FROM ( , subq_6.booking__paid_at__extract_month AS booking__paid_at__extract_month , subq_6.booking__paid_at__extract_week AS booking__paid_at__extract_week , subq_6.booking__paid_at__extract_day AS booking__paid_at__extract_day - , subq_6.booking__paid_at__extract_dayofweek AS booking__paid_at__extract_dayofweek - , subq_6.booking__paid_at__extract_dayofyear AS booking__paid_at__extract_dayofyear + , subq_6.booking__paid_at__extract_dow AS booking__paid_at__extract_dow + , subq_6.booking__paid_at__extract_doy AS booking__paid_at__extract_doy , subq_6.listing AS listing , subq_6.guest AS guest , subq_6.host AS host @@ -369,8 +369,8 @@ FROM ( , subq_5.ds__extract_month , subq_5.ds__extract_week , subq_5.ds__extract_day - , subq_5.ds__extract_dayofweek - , subq_5.ds__extract_dayofyear + , subq_5.ds__extract_dow + , subq_5.ds__extract_doy , subq_5.ds_partitioned__day , subq_5.ds_partitioned__week , subq_5.ds_partitioned__month @@ -381,8 +381,8 @@ FROM ( , subq_5.ds_partitioned__extract_month , subq_5.ds_partitioned__extract_week , subq_5.ds_partitioned__extract_day - , subq_5.ds_partitioned__extract_dayofweek - , subq_5.ds_partitioned__extract_dayofyear + , subq_5.ds_partitioned__extract_dow + , subq_5.ds_partitioned__extract_doy , subq_5.paid_at__day , subq_5.paid_at__week , subq_5.paid_at__month @@ -393,8 +393,8 @@ FROM ( , subq_5.paid_at__extract_month , subq_5.paid_at__extract_week , subq_5.paid_at__extract_day - , subq_5.paid_at__extract_dayofweek - , subq_5.paid_at__extract_dayofyear + , subq_5.paid_at__extract_dow + , subq_5.paid_at__extract_doy , subq_5.booking__ds__day , subq_5.booking__ds__week , subq_5.booking__ds__month @@ -405,8 +405,8 @@ FROM ( , subq_5.booking__ds__extract_month , subq_5.booking__ds__extract_week , subq_5.booking__ds__extract_day - , subq_5.booking__ds__extract_dayofweek - , subq_5.booking__ds__extract_dayofyear + , subq_5.booking__ds__extract_dow + , subq_5.booking__ds__extract_doy , subq_5.booking__ds_partitioned__day , subq_5.booking__ds_partitioned__week , subq_5.booking__ds_partitioned__month @@ -417,8 +417,8 @@ FROM ( , subq_5.booking__ds_partitioned__extract_month , subq_5.booking__ds_partitioned__extract_week , subq_5.booking__ds_partitioned__extract_day - , subq_5.booking__ds_partitioned__extract_dayofweek - , subq_5.booking__ds_partitioned__extract_dayofyear + , subq_5.booking__ds_partitioned__extract_dow + , subq_5.booking__ds_partitioned__extract_doy , subq_5.booking__paid_at__day , subq_5.booking__paid_at__week , subq_5.booking__paid_at__month @@ -429,8 +429,8 @@ FROM ( , subq_5.booking__paid_at__extract_month , subq_5.booking__paid_at__extract_week , subq_5.booking__paid_at__extract_day - , subq_5.booking__paid_at__extract_dayofweek - , subq_5.booking__paid_at__extract_dayofyear + , subq_5.booking__paid_at__extract_dow + , subq_5.booking__paid_at__extract_doy , subq_5.ds__day AS metric_time__day , subq_5.ds__week AS metric_time__week , subq_5.ds__month AS metric_time__month @@ -441,8 +441,8 @@ FROM ( , subq_5.ds__extract_month AS metric_time__extract_month , subq_5.ds__extract_week AS metric_time__extract_week , subq_5.ds__extract_day AS metric_time__extract_day - , subq_5.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_5.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_5.ds__extract_dow AS metric_time__extract_dow + , subq_5.ds__extract_doy AS metric_time__extract_doy , subq_5.listing , subq_5.guest , subq_5.host @@ -492,8 +492,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -504,8 +504,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -516,8 +516,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -529,8 +529,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -541,8 +541,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -553,8 +553,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 8a1592b8e5..27218c34d0 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 @@ -37,8 +37,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -49,8 +49,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -61,8 +61,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -73,8 +73,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -85,8 +85,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -97,8 +97,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -109,8 +109,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -160,8 +160,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -172,8 +172,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -184,8 +184,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -197,8 +197,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -209,8 +209,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -221,8 +221,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -267,8 +267,8 @@ FROM ( , subq_6.ds__extract_month AS ds__extract_month , subq_6.ds__extract_week AS ds__extract_week , subq_6.ds__extract_day AS ds__extract_day - , subq_6.ds__extract_dayofweek AS ds__extract_dayofweek - , subq_6.ds__extract_dayofyear AS ds__extract_dayofyear + , subq_6.ds__extract_dow AS ds__extract_dow + , subq_6.ds__extract_doy AS ds__extract_doy , subq_6.ds_partitioned__day AS ds_partitioned__day , subq_6.ds_partitioned__week AS ds_partitioned__week , subq_6.ds_partitioned__month AS ds_partitioned__month @@ -279,8 +279,8 @@ FROM ( , subq_6.ds_partitioned__extract_month AS ds_partitioned__extract_month , subq_6.ds_partitioned__extract_week AS ds_partitioned__extract_week , subq_6.ds_partitioned__extract_day AS ds_partitioned__extract_day - , subq_6.ds_partitioned__extract_dayofweek AS ds_partitioned__extract_dayofweek - , subq_6.ds_partitioned__extract_dayofyear AS ds_partitioned__extract_dayofyear + , subq_6.ds_partitioned__extract_dow AS ds_partitioned__extract_dow + , subq_6.ds_partitioned__extract_doy AS ds_partitioned__extract_doy , subq_6.paid_at__day AS paid_at__day , subq_6.paid_at__week AS paid_at__week , subq_6.paid_at__month AS paid_at__month @@ -291,8 +291,8 @@ FROM ( , subq_6.paid_at__extract_month AS paid_at__extract_month , subq_6.paid_at__extract_week AS paid_at__extract_week , subq_6.paid_at__extract_day AS paid_at__extract_day - , subq_6.paid_at__extract_dayofweek AS paid_at__extract_dayofweek - , subq_6.paid_at__extract_dayofyear AS paid_at__extract_dayofyear + , subq_6.paid_at__extract_dow AS paid_at__extract_dow + , subq_6.paid_at__extract_doy AS paid_at__extract_doy , subq_6.booking__ds__day AS booking__ds__day , subq_6.booking__ds__week AS booking__ds__week , subq_6.booking__ds__month AS booking__ds__month @@ -303,8 +303,8 @@ FROM ( , subq_6.booking__ds__extract_month AS booking__ds__extract_month , subq_6.booking__ds__extract_week AS booking__ds__extract_week , subq_6.booking__ds__extract_day AS booking__ds__extract_day - , subq_6.booking__ds__extract_dayofweek AS booking__ds__extract_dayofweek - , subq_6.booking__ds__extract_dayofyear AS booking__ds__extract_dayofyear + , subq_6.booking__ds__extract_dow AS booking__ds__extract_dow + , subq_6.booking__ds__extract_doy AS booking__ds__extract_doy , subq_6.booking__ds_partitioned__day AS booking__ds_partitioned__day , subq_6.booking__ds_partitioned__week AS booking__ds_partitioned__week , subq_6.booking__ds_partitioned__month AS booking__ds_partitioned__month @@ -315,8 +315,8 @@ FROM ( , subq_6.booking__ds_partitioned__extract_month AS booking__ds_partitioned__extract_month , subq_6.booking__ds_partitioned__extract_week AS booking__ds_partitioned__extract_week , subq_6.booking__ds_partitioned__extract_day AS booking__ds_partitioned__extract_day - , subq_6.booking__ds_partitioned__extract_dayofweek AS booking__ds_partitioned__extract_dayofweek - , subq_6.booking__ds_partitioned__extract_dayofyear AS booking__ds_partitioned__extract_dayofyear + , subq_6.booking__ds_partitioned__extract_dow AS booking__ds_partitioned__extract_dow + , subq_6.booking__ds_partitioned__extract_doy AS booking__ds_partitioned__extract_doy , subq_6.booking__paid_at__day AS booking__paid_at__day , subq_6.booking__paid_at__week AS booking__paid_at__week , subq_6.booking__paid_at__month AS booking__paid_at__month @@ -327,8 +327,8 @@ FROM ( , subq_6.booking__paid_at__extract_month AS booking__paid_at__extract_month , subq_6.booking__paid_at__extract_week AS booking__paid_at__extract_week , subq_6.booking__paid_at__extract_day AS booking__paid_at__extract_day - , subq_6.booking__paid_at__extract_dayofweek AS booking__paid_at__extract_dayofweek - , subq_6.booking__paid_at__extract_dayofyear AS booking__paid_at__extract_dayofyear + , subq_6.booking__paid_at__extract_dow AS booking__paid_at__extract_dow + , subq_6.booking__paid_at__extract_doy AS booking__paid_at__extract_doy , subq_6.listing AS listing , subq_6.guest AS guest , subq_6.host AS host @@ -369,8 +369,8 @@ FROM ( , subq_5.ds__extract_month , subq_5.ds__extract_week , subq_5.ds__extract_day - , subq_5.ds__extract_dayofweek - , subq_5.ds__extract_dayofyear + , subq_5.ds__extract_dow + , subq_5.ds__extract_doy , subq_5.ds_partitioned__day , subq_5.ds_partitioned__week , subq_5.ds_partitioned__month @@ -381,8 +381,8 @@ FROM ( , subq_5.ds_partitioned__extract_month , subq_5.ds_partitioned__extract_week , subq_5.ds_partitioned__extract_day - , subq_5.ds_partitioned__extract_dayofweek - , subq_5.ds_partitioned__extract_dayofyear + , subq_5.ds_partitioned__extract_dow + , subq_5.ds_partitioned__extract_doy , subq_5.paid_at__day , subq_5.paid_at__week , subq_5.paid_at__month @@ -393,8 +393,8 @@ FROM ( , subq_5.paid_at__extract_month , subq_5.paid_at__extract_week , subq_5.paid_at__extract_day - , subq_5.paid_at__extract_dayofweek - , subq_5.paid_at__extract_dayofyear + , subq_5.paid_at__extract_dow + , subq_5.paid_at__extract_doy , subq_5.booking__ds__day , subq_5.booking__ds__week , subq_5.booking__ds__month @@ -405,8 +405,8 @@ FROM ( , subq_5.booking__ds__extract_month , subq_5.booking__ds__extract_week , subq_5.booking__ds__extract_day - , subq_5.booking__ds__extract_dayofweek - , subq_5.booking__ds__extract_dayofyear + , subq_5.booking__ds__extract_dow + , subq_5.booking__ds__extract_doy , subq_5.booking__ds_partitioned__day , subq_5.booking__ds_partitioned__week , subq_5.booking__ds_partitioned__month @@ -417,8 +417,8 @@ FROM ( , subq_5.booking__ds_partitioned__extract_month , subq_5.booking__ds_partitioned__extract_week , subq_5.booking__ds_partitioned__extract_day - , subq_5.booking__ds_partitioned__extract_dayofweek - , subq_5.booking__ds_partitioned__extract_dayofyear + , subq_5.booking__ds_partitioned__extract_dow + , subq_5.booking__ds_partitioned__extract_doy , subq_5.booking__paid_at__day , subq_5.booking__paid_at__week , subq_5.booking__paid_at__month @@ -429,8 +429,8 @@ FROM ( , subq_5.booking__paid_at__extract_month , subq_5.booking__paid_at__extract_week , subq_5.booking__paid_at__extract_day - , subq_5.booking__paid_at__extract_dayofweek - , subq_5.booking__paid_at__extract_dayofyear + , subq_5.booking__paid_at__extract_dow + , subq_5.booking__paid_at__extract_doy , subq_5.ds__day AS metric_time__day , subq_5.ds__week AS metric_time__week , subq_5.ds__month AS metric_time__month @@ -441,8 +441,8 @@ FROM ( , subq_5.ds__extract_month AS metric_time__extract_month , subq_5.ds__extract_week AS metric_time__extract_week , subq_5.ds__extract_day AS metric_time__extract_day - , subq_5.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_5.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_5.ds__extract_dow AS metric_time__extract_dow + , subq_5.ds__extract_doy AS metric_time__extract_doy , subq_5.listing , subq_5.guest , subq_5.host @@ -492,8 +492,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -504,8 +504,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -516,8 +516,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -529,8 +529,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -541,8 +541,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -553,8 +553,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 793e7f674c..539423b5b3 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 @@ -38,8 +38,8 @@ FROM ( , subq_1.ds__extract_month AS ds__extract_month , subq_1.ds__extract_week AS ds__extract_week , subq_1.ds__extract_day AS ds__extract_day - , subq_1.ds__extract_dayofweek AS ds__extract_dayofweek - , subq_1.ds__extract_dayofyear AS ds__extract_dayofyear + , subq_1.ds__extract_dow AS ds__extract_dow + , subq_1.ds__extract_doy AS ds__extract_doy , subq_1.ds_partitioned__day AS ds_partitioned__day , subq_1.ds_partitioned__week AS ds_partitioned__week , subq_1.ds_partitioned__month AS ds_partitioned__month @@ -50,8 +50,8 @@ FROM ( , subq_1.ds_partitioned__extract_month AS ds_partitioned__extract_month , subq_1.ds_partitioned__extract_week AS ds_partitioned__extract_week , subq_1.ds_partitioned__extract_day AS ds_partitioned__extract_day - , subq_1.ds_partitioned__extract_dayofweek AS ds_partitioned__extract_dayofweek - , subq_1.ds_partitioned__extract_dayofyear AS ds_partitioned__extract_dayofyear + , subq_1.ds_partitioned__extract_dow AS ds_partitioned__extract_dow + , subq_1.ds_partitioned__extract_doy AS ds_partitioned__extract_doy , subq_1.paid_at__day AS paid_at__day , subq_1.paid_at__week AS paid_at__week , subq_1.paid_at__month AS paid_at__month @@ -62,8 +62,8 @@ FROM ( , subq_1.paid_at__extract_month AS paid_at__extract_month , subq_1.paid_at__extract_week AS paid_at__extract_week , subq_1.paid_at__extract_day AS paid_at__extract_day - , subq_1.paid_at__extract_dayofweek AS paid_at__extract_dayofweek - , subq_1.paid_at__extract_dayofyear AS paid_at__extract_dayofyear + , subq_1.paid_at__extract_dow AS paid_at__extract_dow + , subq_1.paid_at__extract_doy AS paid_at__extract_doy , subq_1.booking__ds__day AS booking__ds__day , subq_1.booking__ds__week AS booking__ds__week , subq_1.booking__ds__month AS booking__ds__month @@ -74,8 +74,8 @@ FROM ( , subq_1.booking__ds__extract_month AS booking__ds__extract_month , subq_1.booking__ds__extract_week AS booking__ds__extract_week , subq_1.booking__ds__extract_day AS booking__ds__extract_day - , subq_1.booking__ds__extract_dayofweek AS booking__ds__extract_dayofweek - , subq_1.booking__ds__extract_dayofyear AS booking__ds__extract_dayofyear + , subq_1.booking__ds__extract_dow AS booking__ds__extract_dow + , subq_1.booking__ds__extract_doy AS booking__ds__extract_doy , subq_1.booking__ds_partitioned__day AS booking__ds_partitioned__day , subq_1.booking__ds_partitioned__week AS booking__ds_partitioned__week , subq_1.booking__ds_partitioned__month AS booking__ds_partitioned__month @@ -86,8 +86,8 @@ FROM ( , subq_1.booking__ds_partitioned__extract_month AS booking__ds_partitioned__extract_month , subq_1.booking__ds_partitioned__extract_week AS booking__ds_partitioned__extract_week , subq_1.booking__ds_partitioned__extract_day AS booking__ds_partitioned__extract_day - , subq_1.booking__ds_partitioned__extract_dayofweek AS booking__ds_partitioned__extract_dayofweek - , subq_1.booking__ds_partitioned__extract_dayofyear AS booking__ds_partitioned__extract_dayofyear + , subq_1.booking__ds_partitioned__extract_dow AS booking__ds_partitioned__extract_dow + , subq_1.booking__ds_partitioned__extract_doy AS booking__ds_partitioned__extract_doy , subq_1.booking__paid_at__day AS booking__paid_at__day , subq_1.booking__paid_at__week AS booking__paid_at__week , subq_1.booking__paid_at__month AS booking__paid_at__month @@ -98,8 +98,8 @@ FROM ( , subq_1.booking__paid_at__extract_month AS booking__paid_at__extract_month , subq_1.booking__paid_at__extract_week AS booking__paid_at__extract_week , subq_1.booking__paid_at__extract_day AS booking__paid_at__extract_day - , subq_1.booking__paid_at__extract_dayofweek AS booking__paid_at__extract_dayofweek - , subq_1.booking__paid_at__extract_dayofyear AS booking__paid_at__extract_dayofyear + , subq_1.booking__paid_at__extract_dow AS booking__paid_at__extract_dow + , subq_1.booking__paid_at__extract_doy AS booking__paid_at__extract_doy , subq_1.listing AS listing , subq_1.guest AS guest , subq_1.host AS host @@ -140,8 +140,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -152,8 +152,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -164,8 +164,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -176,8 +176,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -188,8 +188,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -200,8 +200,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -212,8 +212,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -263,8 +263,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -275,8 +275,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -287,8 +287,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -300,8 +300,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -312,8 +312,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -324,8 +324,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -373,8 +373,8 @@ FROM ( , subq_9.ds__extract_month AS ds__extract_month , subq_9.ds__extract_week AS ds__extract_week , subq_9.ds__extract_day AS ds__extract_day - , subq_9.ds__extract_dayofweek AS ds__extract_dayofweek - , subq_9.ds__extract_dayofyear AS ds__extract_dayofyear + , subq_9.ds__extract_dow AS ds__extract_dow + , subq_9.ds__extract_doy AS ds__extract_doy , subq_9.ds_partitioned__day AS ds_partitioned__day , subq_9.ds_partitioned__week AS ds_partitioned__week , subq_9.ds_partitioned__month AS ds_partitioned__month @@ -385,8 +385,8 @@ FROM ( , subq_9.ds_partitioned__extract_month AS ds_partitioned__extract_month , subq_9.ds_partitioned__extract_week AS ds_partitioned__extract_week , subq_9.ds_partitioned__extract_day AS ds_partitioned__extract_day - , subq_9.ds_partitioned__extract_dayofweek AS ds_partitioned__extract_dayofweek - , subq_9.ds_partitioned__extract_dayofyear AS ds_partitioned__extract_dayofyear + , subq_9.ds_partitioned__extract_dow AS ds_partitioned__extract_dow + , subq_9.ds_partitioned__extract_doy AS ds_partitioned__extract_doy , subq_9.paid_at__day AS paid_at__day , subq_9.paid_at__week AS paid_at__week , subq_9.paid_at__month AS paid_at__month @@ -397,8 +397,8 @@ FROM ( , subq_9.paid_at__extract_month AS paid_at__extract_month , subq_9.paid_at__extract_week AS paid_at__extract_week , subq_9.paid_at__extract_day AS paid_at__extract_day - , subq_9.paid_at__extract_dayofweek AS paid_at__extract_dayofweek - , subq_9.paid_at__extract_dayofyear AS paid_at__extract_dayofyear + , subq_9.paid_at__extract_dow AS paid_at__extract_dow + , subq_9.paid_at__extract_doy AS paid_at__extract_doy , subq_9.booking__ds__day AS booking__ds__day , subq_9.booking__ds__week AS booking__ds__week , subq_9.booking__ds__month AS booking__ds__month @@ -409,8 +409,8 @@ FROM ( , subq_9.booking__ds__extract_month AS booking__ds__extract_month , subq_9.booking__ds__extract_week AS booking__ds__extract_week , subq_9.booking__ds__extract_day AS booking__ds__extract_day - , subq_9.booking__ds__extract_dayofweek AS booking__ds__extract_dayofweek - , subq_9.booking__ds__extract_dayofyear AS booking__ds__extract_dayofyear + , subq_9.booking__ds__extract_dow AS booking__ds__extract_dow + , subq_9.booking__ds__extract_doy AS booking__ds__extract_doy , subq_9.booking__ds_partitioned__day AS booking__ds_partitioned__day , subq_9.booking__ds_partitioned__week AS booking__ds_partitioned__week , subq_9.booking__ds_partitioned__month AS booking__ds_partitioned__month @@ -421,8 +421,8 @@ FROM ( , subq_9.booking__ds_partitioned__extract_month AS booking__ds_partitioned__extract_month , subq_9.booking__ds_partitioned__extract_week AS booking__ds_partitioned__extract_week , subq_9.booking__ds_partitioned__extract_day AS booking__ds_partitioned__extract_day - , subq_9.booking__ds_partitioned__extract_dayofweek AS booking__ds_partitioned__extract_dayofweek - , subq_9.booking__ds_partitioned__extract_dayofyear AS booking__ds_partitioned__extract_dayofyear + , subq_9.booking__ds_partitioned__extract_dow AS booking__ds_partitioned__extract_dow + , subq_9.booking__ds_partitioned__extract_doy AS booking__ds_partitioned__extract_doy , subq_9.booking__paid_at__day AS booking__paid_at__day , subq_9.booking__paid_at__week AS booking__paid_at__week , subq_9.booking__paid_at__month AS booking__paid_at__month @@ -433,8 +433,8 @@ FROM ( , subq_9.booking__paid_at__extract_month AS booking__paid_at__extract_month , subq_9.booking__paid_at__extract_week AS booking__paid_at__extract_week , subq_9.booking__paid_at__extract_day AS booking__paid_at__extract_day - , subq_9.booking__paid_at__extract_dayofweek AS booking__paid_at__extract_dayofweek - , subq_9.booking__paid_at__extract_dayofyear AS booking__paid_at__extract_dayofyear + , subq_9.booking__paid_at__extract_dow AS booking__paid_at__extract_dow + , subq_9.booking__paid_at__extract_doy AS booking__paid_at__extract_doy , subq_9.listing AS listing , subq_9.guest AS guest , subq_9.host AS host @@ -475,8 +475,8 @@ FROM ( , subq_8.ds__extract_month , subq_8.ds__extract_week , subq_8.ds__extract_day - , subq_8.ds__extract_dayofweek - , subq_8.ds__extract_dayofyear + , subq_8.ds__extract_dow + , subq_8.ds__extract_doy , subq_8.ds_partitioned__day , subq_8.ds_partitioned__week , subq_8.ds_partitioned__month @@ -487,8 +487,8 @@ FROM ( , subq_8.ds_partitioned__extract_month , subq_8.ds_partitioned__extract_week , subq_8.ds_partitioned__extract_day - , subq_8.ds_partitioned__extract_dayofweek - , subq_8.ds_partitioned__extract_dayofyear + , subq_8.ds_partitioned__extract_dow + , subq_8.ds_partitioned__extract_doy , subq_8.paid_at__day , subq_8.paid_at__week , subq_8.paid_at__month @@ -499,8 +499,8 @@ FROM ( , subq_8.paid_at__extract_month , subq_8.paid_at__extract_week , subq_8.paid_at__extract_day - , subq_8.paid_at__extract_dayofweek - , subq_8.paid_at__extract_dayofyear + , subq_8.paid_at__extract_dow + , subq_8.paid_at__extract_doy , subq_8.booking__ds__day , subq_8.booking__ds__week , subq_8.booking__ds__month @@ -511,8 +511,8 @@ FROM ( , subq_8.booking__ds__extract_month , subq_8.booking__ds__extract_week , subq_8.booking__ds__extract_day - , subq_8.booking__ds__extract_dayofweek - , subq_8.booking__ds__extract_dayofyear + , subq_8.booking__ds__extract_dow + , subq_8.booking__ds__extract_doy , subq_8.booking__ds_partitioned__day , subq_8.booking__ds_partitioned__week , subq_8.booking__ds_partitioned__month @@ -523,8 +523,8 @@ FROM ( , subq_8.booking__ds_partitioned__extract_month , subq_8.booking__ds_partitioned__extract_week , subq_8.booking__ds_partitioned__extract_day - , subq_8.booking__ds_partitioned__extract_dayofweek - , subq_8.booking__ds_partitioned__extract_dayofyear + , subq_8.booking__ds_partitioned__extract_dow + , subq_8.booking__ds_partitioned__extract_doy , subq_8.booking__paid_at__day , subq_8.booking__paid_at__week , subq_8.booking__paid_at__month @@ -535,8 +535,8 @@ FROM ( , subq_8.booking__paid_at__extract_month , subq_8.booking__paid_at__extract_week , subq_8.booking__paid_at__extract_day - , subq_8.booking__paid_at__extract_dayofweek - , subq_8.booking__paid_at__extract_dayofyear + , subq_8.booking__paid_at__extract_dow + , subq_8.booking__paid_at__extract_doy , subq_8.ds__day AS metric_time__day , subq_8.ds__week AS metric_time__week , subq_8.ds__month AS metric_time__month @@ -547,8 +547,8 @@ FROM ( , subq_8.ds__extract_month AS metric_time__extract_month , subq_8.ds__extract_week AS metric_time__extract_week , subq_8.ds__extract_day AS metric_time__extract_day - , subq_8.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_8.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_8.ds__extract_dow AS metric_time__extract_dow + , subq_8.ds__extract_doy AS metric_time__extract_doy , subq_8.listing , subq_8.guest , subq_8.host @@ -598,8 +598,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -610,8 +610,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -622,8 +622,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -635,8 +635,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -647,8 +647,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -659,8 +659,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 fd2a08f4dc..62ac8e39b4 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 @@ -38,8 +38,8 @@ FROM ( , subq_1.ds__extract_month AS ds__extract_month , subq_1.ds__extract_week AS ds__extract_week , subq_1.ds__extract_day AS ds__extract_day - , subq_1.ds__extract_dayofweek AS ds__extract_dayofweek - , subq_1.ds__extract_dayofyear AS ds__extract_dayofyear + , subq_1.ds__extract_dow AS ds__extract_dow + , subq_1.ds__extract_doy AS ds__extract_doy , subq_1.ds_partitioned__day AS ds_partitioned__day , subq_1.ds_partitioned__week AS ds_partitioned__week , subq_1.ds_partitioned__month AS ds_partitioned__month @@ -50,8 +50,8 @@ FROM ( , subq_1.ds_partitioned__extract_month AS ds_partitioned__extract_month , subq_1.ds_partitioned__extract_week AS ds_partitioned__extract_week , subq_1.ds_partitioned__extract_day AS ds_partitioned__extract_day - , subq_1.ds_partitioned__extract_dayofweek AS ds_partitioned__extract_dayofweek - , subq_1.ds_partitioned__extract_dayofyear AS ds_partitioned__extract_dayofyear + , subq_1.ds_partitioned__extract_dow AS ds_partitioned__extract_dow + , subq_1.ds_partitioned__extract_doy AS ds_partitioned__extract_doy , subq_1.paid_at__day AS paid_at__day , subq_1.paid_at__week AS paid_at__week , subq_1.paid_at__month AS paid_at__month @@ -62,8 +62,8 @@ FROM ( , subq_1.paid_at__extract_month AS paid_at__extract_month , subq_1.paid_at__extract_week AS paid_at__extract_week , subq_1.paid_at__extract_day AS paid_at__extract_day - , subq_1.paid_at__extract_dayofweek AS paid_at__extract_dayofweek - , subq_1.paid_at__extract_dayofyear AS paid_at__extract_dayofyear + , subq_1.paid_at__extract_dow AS paid_at__extract_dow + , subq_1.paid_at__extract_doy AS paid_at__extract_doy , subq_1.booking__ds__day AS booking__ds__day , subq_1.booking__ds__week AS booking__ds__week , subq_1.booking__ds__month AS booking__ds__month @@ -74,8 +74,8 @@ FROM ( , subq_1.booking__ds__extract_month AS booking__ds__extract_month , subq_1.booking__ds__extract_week AS booking__ds__extract_week , subq_1.booking__ds__extract_day AS booking__ds__extract_day - , subq_1.booking__ds__extract_dayofweek AS booking__ds__extract_dayofweek - , subq_1.booking__ds__extract_dayofyear AS booking__ds__extract_dayofyear + , subq_1.booking__ds__extract_dow AS booking__ds__extract_dow + , subq_1.booking__ds__extract_doy AS booking__ds__extract_doy , subq_1.booking__ds_partitioned__day AS booking__ds_partitioned__day , subq_1.booking__ds_partitioned__week AS booking__ds_partitioned__week , subq_1.booking__ds_partitioned__month AS booking__ds_partitioned__month @@ -86,8 +86,8 @@ FROM ( , subq_1.booking__ds_partitioned__extract_month AS booking__ds_partitioned__extract_month , subq_1.booking__ds_partitioned__extract_week AS booking__ds_partitioned__extract_week , subq_1.booking__ds_partitioned__extract_day AS booking__ds_partitioned__extract_day - , subq_1.booking__ds_partitioned__extract_dayofweek AS booking__ds_partitioned__extract_dayofweek - , subq_1.booking__ds_partitioned__extract_dayofyear AS booking__ds_partitioned__extract_dayofyear + , subq_1.booking__ds_partitioned__extract_dow AS booking__ds_partitioned__extract_dow + , subq_1.booking__ds_partitioned__extract_doy AS booking__ds_partitioned__extract_doy , subq_1.booking__paid_at__day AS booking__paid_at__day , subq_1.booking__paid_at__week AS booking__paid_at__week , subq_1.booking__paid_at__month AS booking__paid_at__month @@ -98,8 +98,8 @@ FROM ( , subq_1.booking__paid_at__extract_month AS booking__paid_at__extract_month , subq_1.booking__paid_at__extract_week AS booking__paid_at__extract_week , subq_1.booking__paid_at__extract_day AS booking__paid_at__extract_day - , subq_1.booking__paid_at__extract_dayofweek AS booking__paid_at__extract_dayofweek - , subq_1.booking__paid_at__extract_dayofyear AS booking__paid_at__extract_dayofyear + , subq_1.booking__paid_at__extract_dow AS booking__paid_at__extract_dow + , subq_1.booking__paid_at__extract_doy AS booking__paid_at__extract_doy , subq_1.listing AS listing , subq_1.guest AS guest , subq_1.host AS host @@ -140,8 +140,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -152,8 +152,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -164,8 +164,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -176,8 +176,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -188,8 +188,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -200,8 +200,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -212,8 +212,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -263,8 +263,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -275,8 +275,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -287,8 +287,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -300,8 +300,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -312,8 +312,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -324,8 +324,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -374,8 +374,8 @@ FROM ( , subq_9.ds__extract_month AS ds__extract_month , subq_9.ds__extract_week AS ds__extract_week , subq_9.ds__extract_day AS ds__extract_day - , subq_9.ds__extract_dayofweek AS ds__extract_dayofweek - , subq_9.ds__extract_dayofyear AS ds__extract_dayofyear + , subq_9.ds__extract_dow AS ds__extract_dow + , subq_9.ds__extract_doy AS ds__extract_doy , subq_9.ds_partitioned__day AS ds_partitioned__day , subq_9.ds_partitioned__week AS ds_partitioned__week , subq_9.ds_partitioned__month AS ds_partitioned__month @@ -386,8 +386,8 @@ FROM ( , subq_9.ds_partitioned__extract_month AS ds_partitioned__extract_month , subq_9.ds_partitioned__extract_week AS ds_partitioned__extract_week , subq_9.ds_partitioned__extract_day AS ds_partitioned__extract_day - , subq_9.ds_partitioned__extract_dayofweek AS ds_partitioned__extract_dayofweek - , subq_9.ds_partitioned__extract_dayofyear AS ds_partitioned__extract_dayofyear + , subq_9.ds_partitioned__extract_dow AS ds_partitioned__extract_dow + , subq_9.ds_partitioned__extract_doy AS ds_partitioned__extract_doy , subq_9.paid_at__day AS paid_at__day , subq_9.paid_at__week AS paid_at__week , subq_9.paid_at__month AS paid_at__month @@ -398,8 +398,8 @@ FROM ( , subq_9.paid_at__extract_month AS paid_at__extract_month , subq_9.paid_at__extract_week AS paid_at__extract_week , subq_9.paid_at__extract_day AS paid_at__extract_day - , subq_9.paid_at__extract_dayofweek AS paid_at__extract_dayofweek - , subq_9.paid_at__extract_dayofyear AS paid_at__extract_dayofyear + , subq_9.paid_at__extract_dow AS paid_at__extract_dow + , subq_9.paid_at__extract_doy AS paid_at__extract_doy , subq_9.booking__ds__day AS booking__ds__day , subq_9.booking__ds__week AS booking__ds__week , subq_9.booking__ds__month AS booking__ds__month @@ -410,8 +410,8 @@ FROM ( , subq_9.booking__ds__extract_month AS booking__ds__extract_month , subq_9.booking__ds__extract_week AS booking__ds__extract_week , subq_9.booking__ds__extract_day AS booking__ds__extract_day - , subq_9.booking__ds__extract_dayofweek AS booking__ds__extract_dayofweek - , subq_9.booking__ds__extract_dayofyear AS booking__ds__extract_dayofyear + , subq_9.booking__ds__extract_dow AS booking__ds__extract_dow + , subq_9.booking__ds__extract_doy AS booking__ds__extract_doy , subq_9.booking__ds_partitioned__day AS booking__ds_partitioned__day , subq_9.booking__ds_partitioned__week AS booking__ds_partitioned__week , subq_9.booking__ds_partitioned__month AS booking__ds_partitioned__month @@ -422,8 +422,8 @@ FROM ( , subq_9.booking__ds_partitioned__extract_month AS booking__ds_partitioned__extract_month , subq_9.booking__ds_partitioned__extract_week AS booking__ds_partitioned__extract_week , subq_9.booking__ds_partitioned__extract_day AS booking__ds_partitioned__extract_day - , subq_9.booking__ds_partitioned__extract_dayofweek AS booking__ds_partitioned__extract_dayofweek - , subq_9.booking__ds_partitioned__extract_dayofyear AS booking__ds_partitioned__extract_dayofyear + , subq_9.booking__ds_partitioned__extract_dow AS booking__ds_partitioned__extract_dow + , subq_9.booking__ds_partitioned__extract_doy AS booking__ds_partitioned__extract_doy , subq_9.booking__paid_at__day AS booking__paid_at__day , subq_9.booking__paid_at__week AS booking__paid_at__week , subq_9.booking__paid_at__month AS booking__paid_at__month @@ -434,8 +434,8 @@ FROM ( , subq_9.booking__paid_at__extract_month AS booking__paid_at__extract_month , subq_9.booking__paid_at__extract_week AS booking__paid_at__extract_week , subq_9.booking__paid_at__extract_day AS booking__paid_at__extract_day - , subq_9.booking__paid_at__extract_dayofweek AS booking__paid_at__extract_dayofweek - , subq_9.booking__paid_at__extract_dayofyear AS booking__paid_at__extract_dayofyear + , subq_9.booking__paid_at__extract_dow AS booking__paid_at__extract_dow + , subq_9.booking__paid_at__extract_doy AS booking__paid_at__extract_doy , subq_9.listing AS listing , subq_9.guest AS guest , subq_9.host AS host @@ -476,8 +476,8 @@ FROM ( , subq_8.ds__extract_month , subq_8.ds__extract_week , subq_8.ds__extract_day - , subq_8.ds__extract_dayofweek - , subq_8.ds__extract_dayofyear + , subq_8.ds__extract_dow + , subq_8.ds__extract_doy , subq_8.ds_partitioned__day , subq_8.ds_partitioned__week , subq_8.ds_partitioned__month @@ -488,8 +488,8 @@ FROM ( , subq_8.ds_partitioned__extract_month , subq_8.ds_partitioned__extract_week , subq_8.ds_partitioned__extract_day - , subq_8.ds_partitioned__extract_dayofweek - , subq_8.ds_partitioned__extract_dayofyear + , subq_8.ds_partitioned__extract_dow + , subq_8.ds_partitioned__extract_doy , subq_8.paid_at__day , subq_8.paid_at__week , subq_8.paid_at__month @@ -500,8 +500,8 @@ FROM ( , subq_8.paid_at__extract_month , subq_8.paid_at__extract_week , subq_8.paid_at__extract_day - , subq_8.paid_at__extract_dayofweek - , subq_8.paid_at__extract_dayofyear + , subq_8.paid_at__extract_dow + , subq_8.paid_at__extract_doy , subq_8.booking__ds__day , subq_8.booking__ds__week , subq_8.booking__ds__month @@ -512,8 +512,8 @@ FROM ( , subq_8.booking__ds__extract_month , subq_8.booking__ds__extract_week , subq_8.booking__ds__extract_day - , subq_8.booking__ds__extract_dayofweek - , subq_8.booking__ds__extract_dayofyear + , subq_8.booking__ds__extract_dow + , subq_8.booking__ds__extract_doy , subq_8.booking__ds_partitioned__day , subq_8.booking__ds_partitioned__week , subq_8.booking__ds_partitioned__month @@ -524,8 +524,8 @@ FROM ( , subq_8.booking__ds_partitioned__extract_month , subq_8.booking__ds_partitioned__extract_week , subq_8.booking__ds_partitioned__extract_day - , subq_8.booking__ds_partitioned__extract_dayofweek - , subq_8.booking__ds_partitioned__extract_dayofyear + , subq_8.booking__ds_partitioned__extract_dow + , subq_8.booking__ds_partitioned__extract_doy , subq_8.booking__paid_at__day , subq_8.booking__paid_at__week , subq_8.booking__paid_at__month @@ -536,8 +536,8 @@ FROM ( , subq_8.booking__paid_at__extract_month , subq_8.booking__paid_at__extract_week , subq_8.booking__paid_at__extract_day - , subq_8.booking__paid_at__extract_dayofweek - , subq_8.booking__paid_at__extract_dayofyear + , subq_8.booking__paid_at__extract_dow + , subq_8.booking__paid_at__extract_doy , subq_8.ds__day AS metric_time__day , subq_8.ds__week AS metric_time__week , subq_8.ds__month AS metric_time__month @@ -548,8 +548,8 @@ FROM ( , subq_8.ds__extract_month AS metric_time__extract_month , subq_8.ds__extract_week AS metric_time__extract_week , subq_8.ds__extract_day AS metric_time__extract_day - , subq_8.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_8.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_8.ds__extract_dow AS metric_time__extract_dow + , subq_8.ds__extract_doy AS metric_time__extract_doy , subq_8.listing , subq_8.guest , subq_8.host @@ -599,8 +599,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -611,8 +611,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -623,8 +623,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -636,8 +636,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -648,8 +648,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -660,8 +660,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 9ff5c7ed82..23ad4fab94 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 @@ -32,8 +32,8 @@ FROM ( , subq_4.ds__extract_month AS ds__extract_month , subq_4.ds__extract_week AS ds__extract_week , subq_4.ds__extract_day AS ds__extract_day - , subq_4.ds__extract_dayofweek AS ds__extract_dayofweek - , subq_4.ds__extract_dayofyear AS ds__extract_dayofyear + , subq_4.ds__extract_dow AS ds__extract_dow + , subq_4.ds__extract_doy AS ds__extract_doy , subq_4.ds_partitioned__day AS ds_partitioned__day , subq_4.ds_partitioned__week AS ds_partitioned__week , subq_4.ds_partitioned__month AS ds_partitioned__month @@ -44,8 +44,8 @@ FROM ( , subq_4.ds_partitioned__extract_month AS ds_partitioned__extract_month , subq_4.ds_partitioned__extract_week AS ds_partitioned__extract_week , subq_4.ds_partitioned__extract_day AS ds_partitioned__extract_day - , subq_4.ds_partitioned__extract_dayofweek AS ds_partitioned__extract_dayofweek - , subq_4.ds_partitioned__extract_dayofyear AS ds_partitioned__extract_dayofyear + , subq_4.ds_partitioned__extract_dow AS ds_partitioned__extract_dow + , subq_4.ds_partitioned__extract_doy AS ds_partitioned__extract_doy , subq_4.paid_at__day AS paid_at__day , subq_4.paid_at__week AS paid_at__week , subq_4.paid_at__month AS paid_at__month @@ -56,8 +56,8 @@ FROM ( , subq_4.paid_at__extract_month AS paid_at__extract_month , subq_4.paid_at__extract_week AS paid_at__extract_week , subq_4.paid_at__extract_day AS paid_at__extract_day - , subq_4.paid_at__extract_dayofweek AS paid_at__extract_dayofweek - , subq_4.paid_at__extract_dayofyear AS paid_at__extract_dayofyear + , subq_4.paid_at__extract_dow AS paid_at__extract_dow + , subq_4.paid_at__extract_doy AS paid_at__extract_doy , subq_4.booking__ds__day AS booking__ds__day , subq_4.booking__ds__week AS booking__ds__week , subq_4.booking__ds__month AS booking__ds__month @@ -68,8 +68,8 @@ FROM ( , subq_4.booking__ds__extract_month AS booking__ds__extract_month , subq_4.booking__ds__extract_week AS booking__ds__extract_week , subq_4.booking__ds__extract_day AS booking__ds__extract_day - , subq_4.booking__ds__extract_dayofweek AS booking__ds__extract_dayofweek - , subq_4.booking__ds__extract_dayofyear AS booking__ds__extract_dayofyear + , subq_4.booking__ds__extract_dow AS booking__ds__extract_dow + , subq_4.booking__ds__extract_doy AS booking__ds__extract_doy , subq_4.booking__ds_partitioned__day AS booking__ds_partitioned__day , subq_4.booking__ds_partitioned__week AS booking__ds_partitioned__week , subq_4.booking__ds_partitioned__month AS booking__ds_partitioned__month @@ -80,8 +80,8 @@ FROM ( , subq_4.booking__ds_partitioned__extract_month AS booking__ds_partitioned__extract_month , subq_4.booking__ds_partitioned__extract_week AS booking__ds_partitioned__extract_week , subq_4.booking__ds_partitioned__extract_day AS booking__ds_partitioned__extract_day - , subq_4.booking__ds_partitioned__extract_dayofweek AS booking__ds_partitioned__extract_dayofweek - , subq_4.booking__ds_partitioned__extract_dayofyear AS booking__ds_partitioned__extract_dayofyear + , subq_4.booking__ds_partitioned__extract_dow AS booking__ds_partitioned__extract_dow + , subq_4.booking__ds_partitioned__extract_doy AS booking__ds_partitioned__extract_doy , subq_4.booking__paid_at__day AS booking__paid_at__day , subq_4.booking__paid_at__week AS booking__paid_at__week , subq_4.booking__paid_at__month AS booking__paid_at__month @@ -92,8 +92,8 @@ FROM ( , subq_4.booking__paid_at__extract_month AS booking__paid_at__extract_month , subq_4.booking__paid_at__extract_week AS booking__paid_at__extract_week , subq_4.booking__paid_at__extract_day AS booking__paid_at__extract_day - , subq_4.booking__paid_at__extract_dayofweek AS booking__paid_at__extract_dayofweek - , subq_4.booking__paid_at__extract_dayofyear AS booking__paid_at__extract_dayofyear + , subq_4.booking__paid_at__extract_dow AS booking__paid_at__extract_dow + , subq_4.booking__paid_at__extract_doy AS booking__paid_at__extract_doy , subq_4.listing AS listing , subq_4.guest AS guest , subq_4.host AS host @@ -135,8 +135,8 @@ FROM ( , subq_1.ds__extract_month AS ds__extract_month , subq_1.ds__extract_week AS ds__extract_week , subq_1.ds__extract_day AS ds__extract_day - , subq_1.ds__extract_dayofweek AS ds__extract_dayofweek - , subq_1.ds__extract_dayofyear AS ds__extract_dayofyear + , subq_1.ds__extract_dow AS ds__extract_dow + , subq_1.ds__extract_doy AS ds__extract_doy , subq_1.ds_partitioned__day AS ds_partitioned__day , subq_1.ds_partitioned__week AS ds_partitioned__week , subq_1.ds_partitioned__month AS ds_partitioned__month @@ -147,8 +147,8 @@ FROM ( , subq_1.ds_partitioned__extract_month AS ds_partitioned__extract_month , subq_1.ds_partitioned__extract_week AS ds_partitioned__extract_week , subq_1.ds_partitioned__extract_day AS ds_partitioned__extract_day - , subq_1.ds_partitioned__extract_dayofweek AS ds_partitioned__extract_dayofweek - , subq_1.ds_partitioned__extract_dayofyear AS ds_partitioned__extract_dayofyear + , subq_1.ds_partitioned__extract_dow AS ds_partitioned__extract_dow + , subq_1.ds_partitioned__extract_doy AS ds_partitioned__extract_doy , subq_1.paid_at__day AS paid_at__day , subq_1.paid_at__week AS paid_at__week , subq_1.paid_at__month AS paid_at__month @@ -159,8 +159,8 @@ FROM ( , subq_1.paid_at__extract_month AS paid_at__extract_month , subq_1.paid_at__extract_week AS paid_at__extract_week , subq_1.paid_at__extract_day AS paid_at__extract_day - , subq_1.paid_at__extract_dayofweek AS paid_at__extract_dayofweek - , subq_1.paid_at__extract_dayofyear AS paid_at__extract_dayofyear + , subq_1.paid_at__extract_dow AS paid_at__extract_dow + , subq_1.paid_at__extract_doy AS paid_at__extract_doy , subq_1.booking__ds__day AS booking__ds__day , subq_1.booking__ds__week AS booking__ds__week , subq_1.booking__ds__month AS booking__ds__month @@ -171,8 +171,8 @@ FROM ( , subq_1.booking__ds__extract_month AS booking__ds__extract_month , subq_1.booking__ds__extract_week AS booking__ds__extract_week , subq_1.booking__ds__extract_day AS booking__ds__extract_day - , subq_1.booking__ds__extract_dayofweek AS booking__ds__extract_dayofweek - , subq_1.booking__ds__extract_dayofyear AS booking__ds__extract_dayofyear + , subq_1.booking__ds__extract_dow AS booking__ds__extract_dow + , subq_1.booking__ds__extract_doy AS booking__ds__extract_doy , subq_1.booking__ds_partitioned__day AS booking__ds_partitioned__day , subq_1.booking__ds_partitioned__week AS booking__ds_partitioned__week , subq_1.booking__ds_partitioned__month AS booking__ds_partitioned__month @@ -183,8 +183,8 @@ FROM ( , subq_1.booking__ds_partitioned__extract_month AS booking__ds_partitioned__extract_month , subq_1.booking__ds_partitioned__extract_week AS booking__ds_partitioned__extract_week , subq_1.booking__ds_partitioned__extract_day AS booking__ds_partitioned__extract_day - , subq_1.booking__ds_partitioned__extract_dayofweek AS booking__ds_partitioned__extract_dayofweek - , subq_1.booking__ds_partitioned__extract_dayofyear AS booking__ds_partitioned__extract_dayofyear + , subq_1.booking__ds_partitioned__extract_dow AS booking__ds_partitioned__extract_dow + , subq_1.booking__ds_partitioned__extract_doy AS booking__ds_partitioned__extract_doy , subq_1.booking__paid_at__day AS booking__paid_at__day , subq_1.booking__paid_at__week AS booking__paid_at__week , subq_1.booking__paid_at__month AS booking__paid_at__month @@ -195,8 +195,8 @@ FROM ( , subq_1.booking__paid_at__extract_month AS booking__paid_at__extract_month , subq_1.booking__paid_at__extract_week AS booking__paid_at__extract_week , subq_1.booking__paid_at__extract_day AS booking__paid_at__extract_day - , subq_1.booking__paid_at__extract_dayofweek AS booking__paid_at__extract_dayofweek - , subq_1.booking__paid_at__extract_dayofyear AS booking__paid_at__extract_dayofyear + , subq_1.booking__paid_at__extract_dow AS booking__paid_at__extract_dow + , subq_1.booking__paid_at__extract_doy AS booking__paid_at__extract_doy , subq_1.metric_time__week AS metric_time__week , subq_1.metric_time__month AS metric_time__month , subq_1.metric_time__quarter AS metric_time__quarter @@ -206,8 +206,8 @@ FROM ( , subq_1.metric_time__extract_month AS metric_time__extract_month , subq_1.metric_time__extract_week AS metric_time__extract_week , subq_1.metric_time__extract_day AS metric_time__extract_day - , subq_1.metric_time__extract_dayofweek AS metric_time__extract_dayofweek - , subq_1.metric_time__extract_dayofyear AS metric_time__extract_dayofyear + , subq_1.metric_time__extract_dow AS metric_time__extract_dow + , subq_1.metric_time__extract_doy AS metric_time__extract_doy , subq_1.listing AS listing , subq_1.guest AS guest , subq_1.host AS host @@ -248,8 +248,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -260,8 +260,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -272,8 +272,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -284,8 +284,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -296,8 +296,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -308,8 +308,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -320,8 +320,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -371,8 +371,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -383,8 +383,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -395,8 +395,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -408,8 +408,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -420,8 +420,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -432,8 +432,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 781610f066..6c3c772ab7 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 @@ -32,8 +32,8 @@ FROM ( , subq_1.ds__extract_month AS ds__extract_month , subq_1.ds__extract_week AS ds__extract_week , subq_1.ds__extract_day AS ds__extract_day - , subq_1.ds__extract_dayofweek AS ds__extract_dayofweek - , subq_1.ds__extract_dayofyear AS ds__extract_dayofyear + , subq_1.ds__extract_dow AS ds__extract_dow + , subq_1.ds__extract_doy AS ds__extract_doy , subq_1.ds_partitioned__day AS ds_partitioned__day , subq_1.ds_partitioned__week AS ds_partitioned__week , subq_1.ds_partitioned__month AS ds_partitioned__month @@ -44,8 +44,8 @@ FROM ( , subq_1.ds_partitioned__extract_month AS ds_partitioned__extract_month , subq_1.ds_partitioned__extract_week AS ds_partitioned__extract_week , subq_1.ds_partitioned__extract_day AS ds_partitioned__extract_day - , subq_1.ds_partitioned__extract_dayofweek AS ds_partitioned__extract_dayofweek - , subq_1.ds_partitioned__extract_dayofyear AS ds_partitioned__extract_dayofyear + , subq_1.ds_partitioned__extract_dow AS ds_partitioned__extract_dow + , subq_1.ds_partitioned__extract_doy AS ds_partitioned__extract_doy , subq_1.paid_at__day AS paid_at__day , subq_1.paid_at__week AS paid_at__week , subq_1.paid_at__month AS paid_at__month @@ -56,8 +56,8 @@ FROM ( , subq_1.paid_at__extract_month AS paid_at__extract_month , subq_1.paid_at__extract_week AS paid_at__extract_week , subq_1.paid_at__extract_day AS paid_at__extract_day - , subq_1.paid_at__extract_dayofweek AS paid_at__extract_dayofweek - , subq_1.paid_at__extract_dayofyear AS paid_at__extract_dayofyear + , subq_1.paid_at__extract_dow AS paid_at__extract_dow + , subq_1.paid_at__extract_doy AS paid_at__extract_doy , subq_1.booking__ds__day AS booking__ds__day , subq_1.booking__ds__week AS booking__ds__week , subq_1.booking__ds__month AS booking__ds__month @@ -68,8 +68,8 @@ FROM ( , subq_1.booking__ds__extract_month AS booking__ds__extract_month , subq_1.booking__ds__extract_week AS booking__ds__extract_week , subq_1.booking__ds__extract_day AS booking__ds__extract_day - , subq_1.booking__ds__extract_dayofweek AS booking__ds__extract_dayofweek - , subq_1.booking__ds__extract_dayofyear AS booking__ds__extract_dayofyear + , subq_1.booking__ds__extract_dow AS booking__ds__extract_dow + , subq_1.booking__ds__extract_doy AS booking__ds__extract_doy , subq_1.booking__ds_partitioned__day AS booking__ds_partitioned__day , subq_1.booking__ds_partitioned__week AS booking__ds_partitioned__week , subq_1.booking__ds_partitioned__month AS booking__ds_partitioned__month @@ -80,8 +80,8 @@ FROM ( , subq_1.booking__ds_partitioned__extract_month AS booking__ds_partitioned__extract_month , subq_1.booking__ds_partitioned__extract_week AS booking__ds_partitioned__extract_week , subq_1.booking__ds_partitioned__extract_day AS booking__ds_partitioned__extract_day - , subq_1.booking__ds_partitioned__extract_dayofweek AS booking__ds_partitioned__extract_dayofweek - , subq_1.booking__ds_partitioned__extract_dayofyear AS booking__ds_partitioned__extract_dayofyear + , subq_1.booking__ds_partitioned__extract_dow AS booking__ds_partitioned__extract_dow + , subq_1.booking__ds_partitioned__extract_doy AS booking__ds_partitioned__extract_doy , subq_1.booking__paid_at__day AS booking__paid_at__day , subq_1.booking__paid_at__week AS booking__paid_at__week , subq_1.booking__paid_at__month AS booking__paid_at__month @@ -92,8 +92,8 @@ FROM ( , subq_1.booking__paid_at__extract_month AS booking__paid_at__extract_month , subq_1.booking__paid_at__extract_week AS booking__paid_at__extract_week , subq_1.booking__paid_at__extract_day AS booking__paid_at__extract_day - , subq_1.booking__paid_at__extract_dayofweek AS booking__paid_at__extract_dayofweek - , subq_1.booking__paid_at__extract_dayofyear AS booking__paid_at__extract_dayofyear + , subq_1.booking__paid_at__extract_dow AS booking__paid_at__extract_dow + , subq_1.booking__paid_at__extract_doy AS booking__paid_at__extract_doy , subq_1.listing AS listing , subq_1.guest AS guest , subq_1.host AS host @@ -134,8 +134,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -146,8 +146,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -158,8 +158,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -170,8 +170,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -182,8 +182,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -194,8 +194,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -206,8 +206,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -257,8 +257,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -269,8 +269,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -281,8 +281,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -294,8 +294,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -306,8 +306,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -318,8 +318,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 693e200db3..dae3f52e98 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 @@ -47,8 +47,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -59,8 +59,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -71,8 +71,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -83,8 +83,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -95,8 +95,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -107,8 +107,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -119,8 +119,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -170,8 +170,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -182,8 +182,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -194,8 +194,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -207,8 +207,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -219,8 +219,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -231,8 +231,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -262,8 +262,8 @@ FROM ( , subq_3.ds__extract_month , subq_3.ds__extract_week , subq_3.ds__extract_day - , subq_3.ds__extract_dayofweek - , subq_3.ds__extract_dayofyear + , subq_3.ds__extract_dow + , subq_3.ds__extract_doy , subq_3.created_at__day , subq_3.created_at__week , subq_3.created_at__month @@ -274,8 +274,8 @@ FROM ( , subq_3.created_at__extract_month , subq_3.created_at__extract_week , subq_3.created_at__extract_day - , subq_3.created_at__extract_dayofweek - , subq_3.created_at__extract_dayofyear + , subq_3.created_at__extract_dow + , subq_3.created_at__extract_doy , subq_3.listing__ds__day , subq_3.listing__ds__week , subq_3.listing__ds__month @@ -286,8 +286,8 @@ FROM ( , subq_3.listing__ds__extract_month , subq_3.listing__ds__extract_week , subq_3.listing__ds__extract_day - , subq_3.listing__ds__extract_dayofweek - , subq_3.listing__ds__extract_dayofyear + , subq_3.listing__ds__extract_dow + , subq_3.listing__ds__extract_doy , subq_3.listing__created_at__day , subq_3.listing__created_at__week , subq_3.listing__created_at__month @@ -298,8 +298,8 @@ FROM ( , subq_3.listing__created_at__extract_month , subq_3.listing__created_at__extract_week , subq_3.listing__created_at__extract_day - , subq_3.listing__created_at__extract_dayofweek - , subq_3.listing__created_at__extract_dayofyear + , subq_3.listing__created_at__extract_dow + , subq_3.listing__created_at__extract_doy , subq_3.ds__day AS metric_time__day , subq_3.ds__week AS metric_time__week , subq_3.ds__month AS metric_time__month @@ -310,8 +310,8 @@ FROM ( , subq_3.ds__extract_month AS metric_time__extract_month , subq_3.ds__extract_week AS metric_time__extract_week , subq_3.ds__extract_day AS metric_time__extract_day - , subq_3.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_3.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_3.ds__extract_dow AS metric_time__extract_dow + , subq_3.ds__extract_doy AS metric_time__extract_doy , subq_3.listing , subq_3.user , subq_3.listing__user @@ -340,8 +340,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_doy , listings_latest_src_10004.created_at AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS created_at__month @@ -352,8 +352,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS capacity_latest @@ -367,8 +367,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , 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 , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS listing__created_at__month @@ -379,8 +379,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS listing__capacity_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 00efad0383..395033b94a 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 @@ -30,8 +30,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -42,8 +42,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -54,8 +54,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -67,8 +67,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -79,8 +79,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -91,8 +91,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 7e0fdff19e..18c852b528 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 @@ -36,8 +36,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -48,8 +48,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -60,8 +60,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -73,8 +73,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -85,8 +85,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -97,8 +97,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 1a6844636c..028e45452a 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 @@ -53,8 +53,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -65,8 +65,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -77,8 +77,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -89,8 +89,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -101,8 +101,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -113,8 +113,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -125,8 +125,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -176,8 +176,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -188,8 +188,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -200,8 +200,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -213,8 +213,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -225,8 +225,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -237,8 +237,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -268,8 +268,8 @@ FROM ( , subq_3.ds__extract_month , subq_3.ds__extract_week , subq_3.ds__extract_day - , subq_3.ds__extract_dayofweek - , subq_3.ds__extract_dayofyear + , subq_3.ds__extract_dow + , subq_3.ds__extract_doy , subq_3.created_at__day , subq_3.created_at__week , subq_3.created_at__month @@ -280,8 +280,8 @@ FROM ( , subq_3.created_at__extract_month , subq_3.created_at__extract_week , subq_3.created_at__extract_day - , subq_3.created_at__extract_dayofweek - , subq_3.created_at__extract_dayofyear + , subq_3.created_at__extract_dow + , subq_3.created_at__extract_doy , subq_3.listing__ds__day , subq_3.listing__ds__week , subq_3.listing__ds__month @@ -292,8 +292,8 @@ FROM ( , subq_3.listing__ds__extract_month , subq_3.listing__ds__extract_week , subq_3.listing__ds__extract_day - , subq_3.listing__ds__extract_dayofweek - , subq_3.listing__ds__extract_dayofyear + , subq_3.listing__ds__extract_dow + , subq_3.listing__ds__extract_doy , subq_3.listing__created_at__day , subq_3.listing__created_at__week , subq_3.listing__created_at__month @@ -304,8 +304,8 @@ FROM ( , subq_3.listing__created_at__extract_month , subq_3.listing__created_at__extract_week , subq_3.listing__created_at__extract_day - , subq_3.listing__created_at__extract_dayofweek - , subq_3.listing__created_at__extract_dayofyear + , subq_3.listing__created_at__extract_dow + , subq_3.listing__created_at__extract_doy , subq_3.ds__day AS metric_time__day , subq_3.ds__week AS metric_time__week , subq_3.ds__month AS metric_time__month @@ -316,8 +316,8 @@ FROM ( , subq_3.ds__extract_month AS metric_time__extract_month , subq_3.ds__extract_week AS metric_time__extract_week , subq_3.ds__extract_day AS metric_time__extract_day - , subq_3.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_3.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_3.ds__extract_dow AS metric_time__extract_dow + , subq_3.ds__extract_doy AS metric_time__extract_doy , subq_3.listing , subq_3.user , subq_3.listing__user @@ -346,8 +346,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_doy , listings_latest_src_10004.created_at AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS created_at__month @@ -358,8 +358,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS capacity_latest @@ -373,8 +373,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , 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 , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS listing__created_at__month @@ -385,8 +385,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS listing__capacity_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 5712e1d25c..c2f4c8e617 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 @@ -55,8 +55,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -67,8 +67,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -79,8 +79,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -91,8 +91,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -103,8 +103,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -115,8 +115,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -127,8 +127,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -164,8 +164,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10015.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10015.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10015.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds) AS ds__extract_doy , bookings_source_src_10015.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__month @@ -176,8 +176,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10015.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10015.paid_at) AS paid_at__month @@ -188,8 +188,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10015.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10015.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10015.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.paid_at) AS paid_at__extract_doy , bookings_source_src_10015.is_instant AS booking__is_instant , bookings_source_src_10015.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10015.ds) AS booking__ds__week @@ -201,8 +201,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10015.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10015.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10015.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__month @@ -213,8 +213,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10015.paid_at) AS booking__paid_at__month @@ -225,8 +225,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10015.host_id AS host @@ -260,8 +260,8 @@ FROM ( , EXTRACT(MONTH FROM listings_src_10017.active_from) AS window_start__extract_month , EXTRACT(WEEK FROM listings_src_10017.active_from) AS window_start__extract_week , EXTRACT(DAY FROM listings_src_10017.active_from) AS window_start__extract_day - , EXTRACT(DAYOFWEEK FROM listings_src_10017.active_from) AS window_start__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_src_10017.active_from) AS window_start__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_src_10017.active_from) AS window_start__extract_dow + , EXTRACT(DAYOFYEAR 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 , DATE_TRUNC('month', listings_src_10017.active_to) AS window_end__month @@ -272,8 +272,8 @@ FROM ( , EXTRACT(MONTH FROM listings_src_10017.active_to) AS window_end__extract_month , EXTRACT(WEEK FROM listings_src_10017.active_to) AS window_end__extract_week , EXTRACT(DAY FROM listings_src_10017.active_to) AS window_end__extract_day - , EXTRACT(DAYOFWEEK FROM listings_src_10017.active_to) AS window_end__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_src_10017.active_to) AS window_end__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_src_10017.active_to) AS window_end__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_src_10017.active_to) AS window_end__extract_doy , listings_src_10017.country , listings_src_10017.is_lux , listings_src_10017.capacity @@ -287,8 +287,8 @@ FROM ( , EXTRACT(MONTH FROM listings_src_10017.active_from) AS listing__window_start__extract_month , EXTRACT(WEEK FROM listings_src_10017.active_from) AS listing__window_start__extract_week , EXTRACT(DAY FROM listings_src_10017.active_from) AS listing__window_start__extract_day - , EXTRACT(DAYOFWEEK FROM listings_src_10017.active_from) AS listing__window_start__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_src_10017.active_from) AS listing__window_start__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_src_10017.active_from) AS listing__window_start__extract_dow + , EXTRACT(DAYOFYEAR 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 , DATE_TRUNC('month', listings_src_10017.active_to) AS listing__window_end__month @@ -299,8 +299,8 @@ FROM ( , EXTRACT(MONTH FROM listings_src_10017.active_to) AS listing__window_end__extract_month , EXTRACT(WEEK FROM listings_src_10017.active_to) AS listing__window_end__extract_week , EXTRACT(DAY FROM listings_src_10017.active_to) AS listing__window_end__extract_day - , EXTRACT(DAYOFWEEK FROM listings_src_10017.active_to) AS listing__window_end__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_src_10017.active_to) AS listing__window_end__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_src_10017.active_to) AS listing__window_end__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_src_10017.capacity AS listing__capacity 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 141c4fba09..56ed62001f 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 @@ -42,8 +42,8 @@ INNER JOIN ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -54,8 +54,8 @@ INNER JOIN ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -66,8 +66,8 @@ INNER JOIN ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -78,8 +78,8 @@ INNER JOIN ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -90,8 +90,8 @@ INNER JOIN ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -102,8 +102,8 @@ INNER JOIN ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -114,8 +114,8 @@ INNER JOIN ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -165,8 +165,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -177,8 +177,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -189,8 +189,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -202,8 +202,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -214,8 +214,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -226,8 +226,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 093b149ba2..7dafb98791 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 @@ -42,8 +42,8 @@ INNER JOIN ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -54,8 +54,8 @@ INNER JOIN ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -66,8 +66,8 @@ INNER JOIN ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -78,8 +78,8 @@ INNER JOIN ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -90,8 +90,8 @@ INNER JOIN ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -102,8 +102,8 @@ INNER JOIN ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -114,8 +114,8 @@ INNER JOIN ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -165,8 +165,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -177,8 +177,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -189,8 +189,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -202,8 +202,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -214,8 +214,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -226,8 +226,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 7c85ab1cdb..5bf86bf052 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 @@ -42,8 +42,8 @@ INNER JOIN ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -54,8 +54,8 @@ INNER JOIN ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -66,8 +66,8 @@ INNER JOIN ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -78,8 +78,8 @@ INNER JOIN ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -90,8 +90,8 @@ INNER JOIN ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -102,8 +102,8 @@ INNER JOIN ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -114,8 +114,8 @@ INNER JOIN ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -165,8 +165,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -177,8 +177,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -189,8 +189,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -202,8 +202,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -214,8 +214,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -226,8 +226,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 e89a957806..1680cc5146 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 @@ -31,8 +31,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -43,8 +43,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -55,8 +55,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -67,8 +67,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -79,8 +79,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -91,8 +91,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -103,8 +103,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -154,8 +154,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -166,8 +166,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -178,8 +178,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -191,8 +191,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -203,8 +203,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -215,8 +215,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 436f0e7545..909e22c61e 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 @@ -26,8 +26,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.created_at__day , subq_0.created_at__week , subq_0.created_at__month @@ -38,8 +38,8 @@ FROM ( , subq_0.created_at__extract_month , subq_0.created_at__extract_week , subq_0.created_at__extract_day - , subq_0.created_at__extract_dayofweek - , subq_0.created_at__extract_dayofyear + , subq_0.created_at__extract_dow + , subq_0.created_at__extract_doy , subq_0.listing__ds__day , subq_0.listing__ds__week , subq_0.listing__ds__month @@ -50,8 +50,8 @@ FROM ( , subq_0.listing__ds__extract_month , subq_0.listing__ds__extract_week , subq_0.listing__ds__extract_day - , subq_0.listing__ds__extract_dayofweek - , subq_0.listing__ds__extract_dayofyear + , subq_0.listing__ds__extract_dow + , subq_0.listing__ds__extract_doy , subq_0.listing__created_at__day , subq_0.listing__created_at__week , subq_0.listing__created_at__month @@ -62,8 +62,8 @@ FROM ( , subq_0.listing__created_at__extract_month , subq_0.listing__created_at__extract_week , subq_0.listing__created_at__extract_day - , subq_0.listing__created_at__extract_dayofweek - , subq_0.listing__created_at__extract_dayofyear + , subq_0.listing__created_at__extract_dow + , subq_0.listing__created_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -74,8 +74,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.user , subq_0.listing__user @@ -104,8 +104,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_doy , listings_latest_src_10004.created_at AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS created_at__month @@ -116,8 +116,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS capacity_latest @@ -131,8 +131,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , 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 , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS listing__created_at__month @@ -143,8 +143,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS listing__capacity_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 b05da97264..65582ae31f 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 @@ -40,8 +40,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -52,8 +52,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -64,8 +64,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -77,8 +77,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -89,8 +89,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -101,8 +101,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 9223eebd6e..f74d279e69 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 @@ -65,8 +65,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -77,8 +77,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -89,8 +89,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -101,8 +101,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -113,8 +113,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -125,8 +125,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -137,8 +137,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -188,8 +188,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -200,8 +200,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -212,8 +212,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -225,8 +225,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -237,8 +237,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -249,8 +249,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -280,8 +280,8 @@ FROM ( , subq_3.ds__extract_month , subq_3.ds__extract_week , subq_3.ds__extract_day - , subq_3.ds__extract_dayofweek - , subq_3.ds__extract_dayofyear + , subq_3.ds__extract_dow + , subq_3.ds__extract_doy , subq_3.created_at__day , subq_3.created_at__week , subq_3.created_at__month @@ -292,8 +292,8 @@ FROM ( , subq_3.created_at__extract_month , subq_3.created_at__extract_week , subq_3.created_at__extract_day - , subq_3.created_at__extract_dayofweek - , subq_3.created_at__extract_dayofyear + , subq_3.created_at__extract_dow + , subq_3.created_at__extract_doy , subq_3.listing__ds__day , subq_3.listing__ds__week , subq_3.listing__ds__month @@ -304,8 +304,8 @@ FROM ( , subq_3.listing__ds__extract_month , subq_3.listing__ds__extract_week , subq_3.listing__ds__extract_day - , subq_3.listing__ds__extract_dayofweek - , subq_3.listing__ds__extract_dayofyear + , subq_3.listing__ds__extract_dow + , subq_3.listing__ds__extract_doy , subq_3.listing__created_at__day , subq_3.listing__created_at__week , subq_3.listing__created_at__month @@ -316,8 +316,8 @@ FROM ( , subq_3.listing__created_at__extract_month , subq_3.listing__created_at__extract_week , subq_3.listing__created_at__extract_day - , subq_3.listing__created_at__extract_dayofweek - , subq_3.listing__created_at__extract_dayofyear + , subq_3.listing__created_at__extract_dow + , subq_3.listing__created_at__extract_doy , subq_3.ds__day AS metric_time__day , subq_3.ds__week AS metric_time__week , subq_3.ds__month AS metric_time__month @@ -328,8 +328,8 @@ FROM ( , subq_3.ds__extract_month AS metric_time__extract_month , subq_3.ds__extract_week AS metric_time__extract_week , subq_3.ds__extract_day AS metric_time__extract_day - , subq_3.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_3.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_3.ds__extract_dow AS metric_time__extract_dow + , subq_3.ds__extract_doy AS metric_time__extract_doy , subq_3.listing , subq_3.user , subq_3.listing__user @@ -358,8 +358,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_doy , listings_latest_src_10004.created_at AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS created_at__month @@ -370,8 +370,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS capacity_latest @@ -385,8 +385,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , 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 , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS listing__created_at__month @@ -397,8 +397,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS listing__capacity_latest @@ -476,8 +476,8 @@ FROM ( , subq_12.ds__extract_month , subq_12.ds__extract_week , subq_12.ds__extract_day - , subq_12.ds__extract_dayofweek - , subq_12.ds__extract_dayofyear + , subq_12.ds__extract_dow + , subq_12.ds__extract_doy , subq_12.ds_partitioned__day , subq_12.ds_partitioned__week , subq_12.ds_partitioned__month @@ -488,8 +488,8 @@ FROM ( , subq_12.ds_partitioned__extract_month , subq_12.ds_partitioned__extract_week , subq_12.ds_partitioned__extract_day - , subq_12.ds_partitioned__extract_dayofweek - , subq_12.ds_partitioned__extract_dayofyear + , subq_12.ds_partitioned__extract_dow + , subq_12.ds_partitioned__extract_doy , subq_12.paid_at__day , subq_12.paid_at__week , subq_12.paid_at__month @@ -500,8 +500,8 @@ FROM ( , subq_12.paid_at__extract_month , subq_12.paid_at__extract_week , subq_12.paid_at__extract_day - , subq_12.paid_at__extract_dayofweek - , subq_12.paid_at__extract_dayofyear + , subq_12.paid_at__extract_dow + , subq_12.paid_at__extract_doy , subq_12.booking__ds__day , subq_12.booking__ds__week , subq_12.booking__ds__month @@ -512,8 +512,8 @@ FROM ( , subq_12.booking__ds__extract_month , subq_12.booking__ds__extract_week , subq_12.booking__ds__extract_day - , subq_12.booking__ds__extract_dayofweek - , subq_12.booking__ds__extract_dayofyear + , subq_12.booking__ds__extract_dow + , subq_12.booking__ds__extract_doy , subq_12.booking__ds_partitioned__day , subq_12.booking__ds_partitioned__week , subq_12.booking__ds_partitioned__month @@ -524,8 +524,8 @@ FROM ( , subq_12.booking__ds_partitioned__extract_month , subq_12.booking__ds_partitioned__extract_week , subq_12.booking__ds_partitioned__extract_day - , subq_12.booking__ds_partitioned__extract_dayofweek - , subq_12.booking__ds_partitioned__extract_dayofyear + , subq_12.booking__ds_partitioned__extract_dow + , subq_12.booking__ds_partitioned__extract_doy , subq_12.booking__paid_at__day , subq_12.booking__paid_at__week , subq_12.booking__paid_at__month @@ -536,8 +536,8 @@ FROM ( , subq_12.booking__paid_at__extract_month , subq_12.booking__paid_at__extract_week , subq_12.booking__paid_at__extract_day - , subq_12.booking__paid_at__extract_dayofweek - , subq_12.booking__paid_at__extract_dayofyear + , subq_12.booking__paid_at__extract_dow + , subq_12.booking__paid_at__extract_doy , subq_12.ds__day AS metric_time__day , subq_12.ds__week AS metric_time__week , subq_12.ds__month AS metric_time__month @@ -548,8 +548,8 @@ FROM ( , subq_12.ds__extract_month AS metric_time__extract_month , subq_12.ds__extract_week AS metric_time__extract_week , subq_12.ds__extract_day AS metric_time__extract_day - , subq_12.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_12.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_12.ds__extract_dow AS metric_time__extract_dow + , subq_12.ds__extract_doy AS metric_time__extract_doy , subq_12.listing , subq_12.guest , subq_12.host @@ -599,8 +599,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -611,8 +611,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -623,8 +623,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -636,8 +636,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -648,8 +648,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -660,8 +660,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -691,8 +691,8 @@ FROM ( , subq_15.ds__extract_month , subq_15.ds__extract_week , subq_15.ds__extract_day - , subq_15.ds__extract_dayofweek - , subq_15.ds__extract_dayofyear + , subq_15.ds__extract_dow + , subq_15.ds__extract_doy , subq_15.created_at__day , subq_15.created_at__week , subq_15.created_at__month @@ -703,8 +703,8 @@ FROM ( , subq_15.created_at__extract_month , subq_15.created_at__extract_week , subq_15.created_at__extract_day - , subq_15.created_at__extract_dayofweek - , subq_15.created_at__extract_dayofyear + , subq_15.created_at__extract_dow + , subq_15.created_at__extract_doy , subq_15.listing__ds__day , subq_15.listing__ds__week , subq_15.listing__ds__month @@ -715,8 +715,8 @@ FROM ( , subq_15.listing__ds__extract_month , subq_15.listing__ds__extract_week , subq_15.listing__ds__extract_day - , subq_15.listing__ds__extract_dayofweek - , subq_15.listing__ds__extract_dayofyear + , subq_15.listing__ds__extract_dow + , subq_15.listing__ds__extract_doy , subq_15.listing__created_at__day , subq_15.listing__created_at__week , subq_15.listing__created_at__month @@ -727,8 +727,8 @@ FROM ( , subq_15.listing__created_at__extract_month , subq_15.listing__created_at__extract_week , subq_15.listing__created_at__extract_day - , subq_15.listing__created_at__extract_dayofweek - , subq_15.listing__created_at__extract_dayofyear + , subq_15.listing__created_at__extract_dow + , subq_15.listing__created_at__extract_doy , subq_15.ds__day AS metric_time__day , subq_15.ds__week AS metric_time__week , subq_15.ds__month AS metric_time__month @@ -739,8 +739,8 @@ FROM ( , subq_15.ds__extract_month AS metric_time__extract_month , subq_15.ds__extract_week AS metric_time__extract_week , subq_15.ds__extract_day AS metric_time__extract_day - , subq_15.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_15.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_15.ds__extract_dow AS metric_time__extract_dow + , subq_15.ds__extract_doy AS metric_time__extract_doy , subq_15.listing , subq_15.user , subq_15.listing__user @@ -769,8 +769,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_doy , listings_latest_src_10004.created_at AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS created_at__month @@ -781,8 +781,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS capacity_latest @@ -796,8 +796,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , 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 , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS listing__created_at__month @@ -808,8 +808,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS listing__capacity_latest @@ -870,8 +870,8 @@ FROM ( , subq_24.ds__extract_month , subq_24.ds__extract_week , subq_24.ds__extract_day - , subq_24.ds__extract_dayofweek - , subq_24.ds__extract_dayofyear + , subq_24.ds__extract_dow + , subq_24.ds__extract_doy , subq_24.ds_partitioned__day , subq_24.ds_partitioned__week , subq_24.ds_partitioned__month @@ -882,8 +882,8 @@ FROM ( , subq_24.ds_partitioned__extract_month , subq_24.ds_partitioned__extract_week , subq_24.ds_partitioned__extract_day - , subq_24.ds_partitioned__extract_dayofweek - , subq_24.ds_partitioned__extract_dayofyear + , subq_24.ds_partitioned__extract_dow + , subq_24.ds_partitioned__extract_doy , subq_24.paid_at__day , subq_24.paid_at__week , subq_24.paid_at__month @@ -894,8 +894,8 @@ FROM ( , subq_24.paid_at__extract_month , subq_24.paid_at__extract_week , subq_24.paid_at__extract_day - , subq_24.paid_at__extract_dayofweek - , subq_24.paid_at__extract_dayofyear + , subq_24.paid_at__extract_dow + , subq_24.paid_at__extract_doy , subq_24.booking__ds__day , subq_24.booking__ds__week , subq_24.booking__ds__month @@ -906,8 +906,8 @@ FROM ( , subq_24.booking__ds__extract_month , subq_24.booking__ds__extract_week , subq_24.booking__ds__extract_day - , subq_24.booking__ds__extract_dayofweek - , subq_24.booking__ds__extract_dayofyear + , subq_24.booking__ds__extract_dow + , subq_24.booking__ds__extract_doy , subq_24.booking__ds_partitioned__day , subq_24.booking__ds_partitioned__week , subq_24.booking__ds_partitioned__month @@ -918,8 +918,8 @@ FROM ( , subq_24.booking__ds_partitioned__extract_month , subq_24.booking__ds_partitioned__extract_week , subq_24.booking__ds_partitioned__extract_day - , subq_24.booking__ds_partitioned__extract_dayofweek - , subq_24.booking__ds_partitioned__extract_dayofyear + , subq_24.booking__ds_partitioned__extract_dow + , subq_24.booking__ds_partitioned__extract_doy , subq_24.booking__paid_at__day , subq_24.booking__paid_at__week , subq_24.booking__paid_at__month @@ -930,8 +930,8 @@ FROM ( , subq_24.booking__paid_at__extract_month , subq_24.booking__paid_at__extract_week , subq_24.booking__paid_at__extract_day - , subq_24.booking__paid_at__extract_dayofweek - , subq_24.booking__paid_at__extract_dayofyear + , subq_24.booking__paid_at__extract_dow + , subq_24.booking__paid_at__extract_doy , subq_24.ds__day AS metric_time__day , subq_24.ds__week AS metric_time__week , subq_24.ds__month AS metric_time__month @@ -942,8 +942,8 @@ FROM ( , subq_24.ds__extract_month AS metric_time__extract_month , subq_24.ds__extract_week AS metric_time__extract_week , subq_24.ds__extract_day AS metric_time__extract_day - , subq_24.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_24.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_24.ds__extract_dow AS metric_time__extract_dow + , subq_24.ds__extract_doy AS metric_time__extract_doy , subq_24.listing , subq_24.guest , subq_24.host @@ -993,8 +993,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -1005,8 +1005,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -1017,8 +1017,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -1030,8 +1030,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -1042,8 +1042,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -1054,8 +1054,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 1f9e7a4524..f536c2ec12 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 @@ -50,8 +50,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -62,8 +62,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -74,8 +74,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -86,8 +86,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -98,8 +98,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -110,8 +110,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -122,8 +122,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -173,8 +173,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -185,8 +185,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -197,8 +197,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -210,8 +210,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -222,8 +222,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -234,8 +234,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -282,8 +282,8 @@ FROM ( , subq_7.ds__extract_month , subq_7.ds__extract_week , subq_7.ds__extract_day - , subq_7.ds__extract_dayofweek - , subq_7.ds__extract_dayofyear + , subq_7.ds__extract_dow + , subq_7.ds__extract_doy , subq_7.ds_partitioned__day , subq_7.ds_partitioned__week , subq_7.ds_partitioned__month @@ -294,8 +294,8 @@ FROM ( , subq_7.ds_partitioned__extract_month , subq_7.ds_partitioned__extract_week , subq_7.ds_partitioned__extract_day - , subq_7.ds_partitioned__extract_dayofweek - , subq_7.ds_partitioned__extract_dayofyear + , subq_7.ds_partitioned__extract_dow + , subq_7.ds_partitioned__extract_doy , subq_7.paid_at__day , subq_7.paid_at__week , subq_7.paid_at__month @@ -306,8 +306,8 @@ FROM ( , subq_7.paid_at__extract_month , subq_7.paid_at__extract_week , subq_7.paid_at__extract_day - , subq_7.paid_at__extract_dayofweek - , subq_7.paid_at__extract_dayofyear + , subq_7.paid_at__extract_dow + , subq_7.paid_at__extract_doy , subq_7.booking__ds__day , subq_7.booking__ds__week , subq_7.booking__ds__month @@ -318,8 +318,8 @@ FROM ( , subq_7.booking__ds__extract_month , subq_7.booking__ds__extract_week , subq_7.booking__ds__extract_day - , subq_7.booking__ds__extract_dayofweek - , subq_7.booking__ds__extract_dayofyear + , subq_7.booking__ds__extract_dow + , subq_7.booking__ds__extract_doy , subq_7.booking__ds_partitioned__day , subq_7.booking__ds_partitioned__week , subq_7.booking__ds_partitioned__month @@ -330,8 +330,8 @@ FROM ( , subq_7.booking__ds_partitioned__extract_month , subq_7.booking__ds_partitioned__extract_week , subq_7.booking__ds_partitioned__extract_day - , subq_7.booking__ds_partitioned__extract_dayofweek - , subq_7.booking__ds_partitioned__extract_dayofyear + , subq_7.booking__ds_partitioned__extract_dow + , subq_7.booking__ds_partitioned__extract_doy , subq_7.booking__paid_at__day , subq_7.booking__paid_at__week , subq_7.booking__paid_at__month @@ -342,8 +342,8 @@ FROM ( , subq_7.booking__paid_at__extract_month , subq_7.booking__paid_at__extract_week , subq_7.booking__paid_at__extract_day - , subq_7.booking__paid_at__extract_dayofweek - , subq_7.booking__paid_at__extract_dayofyear + , subq_7.booking__paid_at__extract_dow + , subq_7.booking__paid_at__extract_doy , subq_7.ds__day AS metric_time__day , subq_7.ds__week AS metric_time__week , subq_7.ds__month AS metric_time__month @@ -354,8 +354,8 @@ FROM ( , subq_7.ds__extract_month AS metric_time__extract_month , subq_7.ds__extract_week AS metric_time__extract_week , subq_7.ds__extract_day AS metric_time__extract_day - , subq_7.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_7.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_7.ds__extract_dow AS metric_time__extract_dow + , subq_7.ds__extract_doy AS metric_time__extract_doy , subq_7.listing , subq_7.guest , subq_7.host @@ -405,8 +405,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -417,8 +417,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -429,8 +429,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -442,8 +442,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -454,8 +454,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -466,8 +466,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 2d8a10e755..61e0a3c0e0 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 @@ -44,8 +44,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -56,8 +56,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -68,8 +68,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -80,8 +80,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -92,8 +92,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -104,8 +104,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -116,8 +116,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -167,8 +167,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -179,8 +179,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -191,8 +191,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -204,8 +204,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -216,8 +216,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -228,8 +228,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 4ef0714be2..59683b27c8 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 @@ -32,8 +32,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -44,8 +44,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -56,8 +56,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -68,8 +68,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -80,8 +80,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -92,8 +92,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -104,8 +104,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -155,8 +155,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -167,8 +167,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -179,8 +179,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -192,8 +192,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -204,8 +204,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -216,8 +216,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -256,8 +256,8 @@ FROM ( , subq_5.ds__extract_month , subq_5.ds__extract_week , subq_5.ds__extract_day - , subq_5.ds__extract_dayofweek - , subq_5.ds__extract_dayofyear + , subq_5.ds__extract_dow + , subq_5.ds__extract_doy , subq_5.created_at__day , subq_5.created_at__week , subq_5.created_at__month @@ -268,8 +268,8 @@ FROM ( , subq_5.created_at__extract_month , subq_5.created_at__extract_week , subq_5.created_at__extract_day - , subq_5.created_at__extract_dayofweek - , subq_5.created_at__extract_dayofyear + , subq_5.created_at__extract_dow + , subq_5.created_at__extract_doy , subq_5.listing__ds__day , subq_5.listing__ds__week , subq_5.listing__ds__month @@ -280,8 +280,8 @@ FROM ( , subq_5.listing__ds__extract_month , subq_5.listing__ds__extract_week , subq_5.listing__ds__extract_day - , subq_5.listing__ds__extract_dayofweek - , subq_5.listing__ds__extract_dayofyear + , subq_5.listing__ds__extract_dow + , subq_5.listing__ds__extract_doy , subq_5.listing__created_at__day , subq_5.listing__created_at__week , subq_5.listing__created_at__month @@ -292,8 +292,8 @@ FROM ( , subq_5.listing__created_at__extract_month , subq_5.listing__created_at__extract_week , subq_5.listing__created_at__extract_day - , subq_5.listing__created_at__extract_dayofweek - , subq_5.listing__created_at__extract_dayofyear + , subq_5.listing__created_at__extract_dow + , subq_5.listing__created_at__extract_doy , subq_5.ds__day AS metric_time__day , subq_5.ds__week AS metric_time__week , subq_5.ds__month AS metric_time__month @@ -304,8 +304,8 @@ FROM ( , subq_5.ds__extract_month AS metric_time__extract_month , subq_5.ds__extract_week AS metric_time__extract_week , subq_5.ds__extract_day AS metric_time__extract_day - , subq_5.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_5.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_5.ds__extract_dow AS metric_time__extract_dow + , subq_5.ds__extract_doy AS metric_time__extract_doy , subq_5.listing , subq_5.user , subq_5.listing__user @@ -334,8 +334,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_doy , listings_latest_src_10004.created_at AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS created_at__month @@ -346,8 +346,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS capacity_latest @@ -361,8 +361,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , 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 , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS listing__created_at__month @@ -373,8 +373,8 @@ FROM ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS listing__capacity_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 db50a9f2c8..3f01da6648 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 @@ -45,8 +45,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -57,8 +57,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -69,8 +69,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -81,8 +81,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -93,8 +93,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -105,8 +105,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -117,8 +117,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -154,8 +154,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10015.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10015.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10015.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds) AS ds__extract_doy , bookings_source_src_10015.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__month @@ -166,8 +166,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10015.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10015.paid_at) AS paid_at__month @@ -178,8 +178,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10015.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10015.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10015.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.paid_at) AS paid_at__extract_doy , bookings_source_src_10015.is_instant AS booking__is_instant , bookings_source_src_10015.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10015.ds) AS booking__ds__week @@ -191,8 +191,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10015.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10015.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10015.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__month @@ -203,8 +203,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10015.paid_at) AS booking__paid_at__month @@ -215,8 +215,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10015.host_id AS host @@ -250,8 +250,8 @@ FROM ( , subq_3.window_start__extract_month AS window_start__extract_month , subq_3.window_start__extract_week AS window_start__extract_week , subq_3.window_start__extract_day AS window_start__extract_day - , subq_3.window_start__extract_dayofweek AS window_start__extract_dayofweek - , subq_3.window_start__extract_dayofyear AS window_start__extract_dayofyear + , subq_3.window_start__extract_dow AS window_start__extract_dow + , subq_3.window_start__extract_doy AS window_start__extract_doy , subq_3.window_end__day AS window_end__day , subq_3.window_end__week AS window_end__week , subq_3.window_end__month AS window_end__month @@ -262,8 +262,8 @@ FROM ( , subq_3.window_end__extract_month AS window_end__extract_month , subq_3.window_end__extract_week AS window_end__extract_week , subq_3.window_end__extract_day AS window_end__extract_day - , subq_3.window_end__extract_dayofweek AS window_end__extract_dayofweek - , subq_3.window_end__extract_dayofyear AS window_end__extract_dayofyear + , subq_3.window_end__extract_dow AS window_end__extract_dow + , subq_3.window_end__extract_doy AS window_end__extract_doy , subq_3.listing__window_start__day AS listing__window_start__day , subq_3.listing__window_start__week AS listing__window_start__week , subq_3.listing__window_start__month AS listing__window_start__month @@ -274,8 +274,8 @@ FROM ( , subq_3.listing__window_start__extract_month AS listing__window_start__extract_month , subq_3.listing__window_start__extract_week AS listing__window_start__extract_week , subq_3.listing__window_start__extract_day AS listing__window_start__extract_day - , subq_3.listing__window_start__extract_dayofweek AS listing__window_start__extract_dayofweek - , subq_3.listing__window_start__extract_dayofyear AS listing__window_start__extract_dayofyear + , subq_3.listing__window_start__extract_dow AS listing__window_start__extract_dow + , subq_3.listing__window_start__extract_doy AS listing__window_start__extract_doy , subq_3.listing__window_end__day AS listing__window_end__day , subq_3.listing__window_end__week AS listing__window_end__week , subq_3.listing__window_end__month AS listing__window_end__month @@ -286,8 +286,8 @@ FROM ( , subq_3.listing__window_end__extract_month AS listing__window_end__extract_month , subq_3.listing__window_end__extract_week AS listing__window_end__extract_week , subq_3.listing__window_end__extract_day AS listing__window_end__extract_day - , subq_3.listing__window_end__extract_dayofweek AS listing__window_end__extract_dayofweek - , subq_3.listing__window_end__extract_dayofyear AS listing__window_end__extract_dayofyear + , subq_3.listing__window_end__extract_dow AS listing__window_end__extract_dow + , subq_3.listing__window_end__extract_doy AS listing__window_end__extract_doy , subq_5.ds__day AS user__ds__day , subq_5.ds__week AS user__ds__week , subq_5.ds__month AS user__ds__month @@ -298,8 +298,8 @@ FROM ( , subq_5.ds__extract_month AS user__ds__extract_month , subq_5.ds__extract_week AS user__ds__extract_week , subq_5.ds__extract_day AS user__ds__extract_day - , subq_5.ds__extract_dayofweek AS user__ds__extract_dayofweek - , subq_5.ds__extract_dayofyear AS user__ds__extract_dayofyear + , subq_5.ds__extract_dow AS user__ds__extract_dow + , subq_5.ds__extract_doy AS user__ds__extract_doy , subq_3.listing AS listing , subq_3.user AS user , subq_3.listing__user AS listing__user @@ -323,8 +323,8 @@ FROM ( , EXTRACT(MONTH FROM listings_src_10017.active_from) AS window_start__extract_month , EXTRACT(WEEK FROM listings_src_10017.active_from) AS window_start__extract_week , EXTRACT(DAY FROM listings_src_10017.active_from) AS window_start__extract_day - , EXTRACT(DAYOFWEEK FROM listings_src_10017.active_from) AS window_start__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_src_10017.active_from) AS window_start__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_src_10017.active_from) AS window_start__extract_dow + , EXTRACT(DAYOFYEAR 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 , DATE_TRUNC('month', listings_src_10017.active_to) AS window_end__month @@ -335,8 +335,8 @@ FROM ( , EXTRACT(MONTH FROM listings_src_10017.active_to) AS window_end__extract_month , EXTRACT(WEEK FROM listings_src_10017.active_to) AS window_end__extract_week , EXTRACT(DAY FROM listings_src_10017.active_to) AS window_end__extract_day - , EXTRACT(DAYOFWEEK FROM listings_src_10017.active_to) AS window_end__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_src_10017.active_to) AS window_end__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_src_10017.active_to) AS window_end__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_src_10017.active_to) AS window_end__extract_doy , listings_src_10017.country , listings_src_10017.is_lux , listings_src_10017.capacity @@ -350,8 +350,8 @@ FROM ( , EXTRACT(MONTH FROM listings_src_10017.active_from) AS listing__window_start__extract_month , EXTRACT(WEEK FROM listings_src_10017.active_from) AS listing__window_start__extract_week , EXTRACT(DAY FROM listings_src_10017.active_from) AS listing__window_start__extract_day - , EXTRACT(DAYOFWEEK FROM listings_src_10017.active_from) AS listing__window_start__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_src_10017.active_from) AS listing__window_start__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_src_10017.active_from) AS listing__window_start__extract_dow + , EXTRACT(DAYOFYEAR 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 , DATE_TRUNC('month', listings_src_10017.active_to) AS listing__window_end__month @@ -362,8 +362,8 @@ FROM ( , EXTRACT(MONTH FROM listings_src_10017.active_to) AS listing__window_end__extract_month , EXTRACT(WEEK FROM listings_src_10017.active_to) AS listing__window_end__extract_week , EXTRACT(DAY FROM listings_src_10017.active_to) AS listing__window_end__extract_day - , EXTRACT(DAYOFWEEK FROM listings_src_10017.active_to) AS listing__window_end__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_src_10017.active_to) AS listing__window_end__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_src_10017.active_to) AS listing__window_end__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_src_10017.capacity AS listing__capacity @@ -412,8 +412,8 @@ FROM ( , subq_4.ds__extract_month , subq_4.ds__extract_week , subq_4.ds__extract_day - , subq_4.ds__extract_dayofweek - , subq_4.ds__extract_dayofyear + , subq_4.ds__extract_dow + , subq_4.ds__extract_doy , subq_4.user__ds__day , subq_4.user__ds__week , subq_4.user__ds__month @@ -424,8 +424,8 @@ FROM ( , subq_4.user__ds__extract_month , subq_4.user__ds__extract_week , subq_4.user__ds__extract_day - , subq_4.user__ds__extract_dayofweek - , subq_4.user__ds__extract_dayofyear + , subq_4.user__ds__extract_dow + , subq_4.user__ds__extract_doy , subq_4.user , subq_4.home_state_latest , subq_4.user__home_state_latest @@ -442,8 +442,8 @@ FROM ( , EXTRACT(MONTH FROM users_latest_src_10021.ds) AS ds__extract_month , EXTRACT(WEEK FROM users_latest_src_10021.ds) AS ds__extract_week , EXTRACT(DAY FROM users_latest_src_10021.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM users_latest_src_10021.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM users_latest_src_10021.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM users_latest_src_10021.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM users_latest_src_10021.ds) AS ds__extract_doy , users_latest_src_10021.home_state_latest , users_latest_src_10021.ds AS user__ds__day , DATE_TRUNC('week', users_latest_src_10021.ds) AS user__ds__week @@ -455,8 +455,8 @@ FROM ( , EXTRACT(MONTH FROM users_latest_src_10021.ds) AS user__ds__extract_month , EXTRACT(WEEK FROM users_latest_src_10021.ds) AS user__ds__extract_week , EXTRACT(DAY FROM users_latest_src_10021.ds) AS user__ds__extract_day - , EXTRACT(DAYOFWEEK FROM users_latest_src_10021.ds) AS user__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM users_latest_src_10021.ds) AS user__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM users_latest_src_10021.ds) AS user__ds__extract_dow + , EXTRACT(DAYOFYEAR 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 FROM ***************************.dim_users_latest users_latest_src_10021 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 adaf16cf58..2303464654 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 @@ -45,8 +45,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -57,8 +57,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -69,8 +69,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -81,8 +81,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -93,8 +93,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -105,8 +105,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -117,8 +117,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -154,8 +154,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10015.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10015.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10015.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds) AS ds__extract_doy , bookings_source_src_10015.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10015.ds_partitioned) AS ds_partitioned__month @@ -166,8 +166,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10015.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10015.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10015.paid_at) AS paid_at__month @@ -178,8 +178,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10015.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10015.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10015.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.paid_at) AS paid_at__extract_doy , bookings_source_src_10015.is_instant AS booking__is_instant , bookings_source_src_10015.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10015.ds) AS booking__ds__week @@ -191,8 +191,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10015.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10015.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10015.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__month @@ -203,8 +203,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10015.paid_at) AS booking__paid_at__month @@ -215,8 +215,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10015.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10015.host_id AS host @@ -253,8 +253,8 @@ FROM ( , subq_5.window_start__extract_month AS lux_listing__window_start__extract_month , subq_5.window_start__extract_week AS lux_listing__window_start__extract_week , subq_5.window_start__extract_day AS lux_listing__window_start__extract_day - , subq_5.window_start__extract_dayofweek AS lux_listing__window_start__extract_dayofweek - , subq_5.window_start__extract_dayofyear AS lux_listing__window_start__extract_dayofyear + , subq_5.window_start__extract_dow AS lux_listing__window_start__extract_dow + , subq_5.window_start__extract_doy AS lux_listing__window_start__extract_doy , subq_5.window_end__day AS lux_listing__window_end__day , subq_5.window_end__week AS lux_listing__window_end__week , subq_5.window_end__month AS lux_listing__window_end__month @@ -265,8 +265,8 @@ FROM ( , subq_5.window_end__extract_month AS lux_listing__window_end__extract_month , subq_5.window_end__extract_week AS lux_listing__window_end__extract_week , subq_5.window_end__extract_day AS lux_listing__window_end__extract_day - , subq_5.window_end__extract_dayofweek AS lux_listing__window_end__extract_dayofweek - , subq_5.window_end__extract_dayofyear AS lux_listing__window_end__extract_dayofyear + , subq_5.window_end__extract_dow AS lux_listing__window_end__extract_dow + , subq_5.window_end__extract_doy AS lux_listing__window_end__extract_doy , subq_3.listing AS listing , subq_3.lux_listing AS lux_listing , subq_3.listing__lux_listing AS listing__lux_listing @@ -343,8 +343,8 @@ FROM ( , subq_4.window_start__extract_month , subq_4.window_start__extract_week , subq_4.window_start__extract_day - , subq_4.window_start__extract_dayofweek - , subq_4.window_start__extract_dayofyear + , subq_4.window_start__extract_dow + , subq_4.window_start__extract_doy , subq_4.window_end__day , subq_4.window_end__week , subq_4.window_end__month @@ -355,8 +355,8 @@ FROM ( , subq_4.window_end__extract_month , subq_4.window_end__extract_week , subq_4.window_end__extract_day - , subq_4.window_end__extract_dayofweek - , subq_4.window_end__extract_dayofyear + , subq_4.window_end__extract_dow + , subq_4.window_end__extract_doy , subq_4.lux_listing__window_start__day , subq_4.lux_listing__window_start__week , subq_4.lux_listing__window_start__month @@ -367,8 +367,8 @@ FROM ( , subq_4.lux_listing__window_start__extract_month , subq_4.lux_listing__window_start__extract_week , subq_4.lux_listing__window_start__extract_day - , subq_4.lux_listing__window_start__extract_dayofweek - , subq_4.lux_listing__window_start__extract_dayofyear + , subq_4.lux_listing__window_start__extract_dow + , subq_4.lux_listing__window_start__extract_doy , subq_4.lux_listing__window_end__day , subq_4.lux_listing__window_end__week , subq_4.lux_listing__window_end__month @@ -379,8 +379,8 @@ FROM ( , subq_4.lux_listing__window_end__extract_month , subq_4.lux_listing__window_end__extract_week , subq_4.lux_listing__window_end__extract_day - , subq_4.lux_listing__window_end__extract_dayofweek - , subq_4.lux_listing__window_end__extract_dayofyear + , subq_4.lux_listing__window_end__extract_dow + , subq_4.lux_listing__window_end__extract_doy , subq_4.lux_listing , subq_4.is_confirmed_lux , subq_4.lux_listing__is_confirmed_lux @@ -397,8 +397,8 @@ FROM ( , EXTRACT(MONTH FROM lux_listings_src_10019.valid_from) AS window_start__extract_month , EXTRACT(WEEK FROM lux_listings_src_10019.valid_from) AS window_start__extract_week , EXTRACT(DAY FROM lux_listings_src_10019.valid_from) AS window_start__extract_day - , EXTRACT(DAYOFWEEK FROM lux_listings_src_10019.valid_from) AS window_start__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM lux_listings_src_10019.valid_from) AS window_start__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM lux_listings_src_10019.valid_from) AS window_start__extract_dow + , EXTRACT(DAYOFYEAR 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 , DATE_TRUNC('month', lux_listings_src_10019.valid_to) AS window_end__month @@ -409,8 +409,8 @@ FROM ( , EXTRACT(MONTH FROM lux_listings_src_10019.valid_to) AS window_end__extract_month , EXTRACT(WEEK FROM lux_listings_src_10019.valid_to) AS window_end__extract_week , EXTRACT(DAY FROM lux_listings_src_10019.valid_to) AS window_end__extract_day - , EXTRACT(DAYOFWEEK FROM lux_listings_src_10019.valid_to) AS window_end__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM lux_listings_src_10019.valid_to) AS window_end__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM lux_listings_src_10019.valid_to) AS window_end__extract_dow + , EXTRACT(DAYOFYEAR 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 , DATE_TRUNC('week', lux_listings_src_10019.valid_from) AS lux_listing__window_start__week @@ -422,8 +422,8 @@ FROM ( , EXTRACT(MONTH FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_month , EXTRACT(WEEK FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_week , EXTRACT(DAY FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_day - , EXTRACT(DAYOFWEEK FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM lux_listings_src_10019.valid_from) AS lux_listing__window_start__extract_dow + , EXTRACT(DAYOFYEAR 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 , DATE_TRUNC('month', lux_listings_src_10019.valid_to) AS lux_listing__window_end__month @@ -434,8 +434,8 @@ FROM ( , EXTRACT(MONTH FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_month , EXTRACT(WEEK FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_week , EXTRACT(DAY FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_day - , EXTRACT(DAYOFWEEK FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM lux_listings_src_10019.valid_to) AS lux_listing__window_end__extract_dow + , EXTRACT(DAYOFYEAR 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 FROM ***************************.dim_lux_listings lux_listings_src_10019 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 cb9670f074..2ef9e97902 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 @@ -38,8 +38,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -50,8 +50,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -62,8 +62,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -75,8 +75,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -87,8 +87,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -99,8 +99,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -132,8 +132,8 @@ LEFT OUTER JOIN ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_doy , listings_latest_src_10004.created_at AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS created_at__month @@ -144,8 +144,8 @@ LEFT OUTER JOIN ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS capacity_latest @@ -159,8 +159,8 @@ LEFT OUTER JOIN ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , 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 , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS listing__created_at__month @@ -171,8 +171,8 @@ LEFT OUTER JOIN ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS listing__capacity_latest @@ -206,8 +206,8 @@ LEFT OUTER JOIN ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_doy , listings_latest_src_10004.created_at AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS created_at__month @@ -218,8 +218,8 @@ LEFT OUTER JOIN ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS capacity_latest @@ -233,8 +233,8 @@ LEFT OUTER JOIN ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , 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 , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS listing__created_at__month @@ -245,8 +245,8 @@ LEFT OUTER JOIN ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS listing__capacity_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 7638105966..5a28324203 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 @@ -41,8 +41,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.ds__day , subq_0.ds__week , subq_0.ds__month @@ -53,8 +53,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.account_id__ds_partitioned__day , subq_0.account_id__ds_partitioned__week , subq_0.account_id__ds_partitioned__month @@ -65,8 +65,8 @@ FROM ( , subq_0.account_id__ds_partitioned__extract_month , subq_0.account_id__ds_partitioned__extract_week , subq_0.account_id__ds_partitioned__extract_day - , subq_0.account_id__ds_partitioned__extract_dayofweek - , subq_0.account_id__ds_partitioned__extract_dayofyear + , subq_0.account_id__ds_partitioned__extract_dow + , subq_0.account_id__ds_partitioned__extract_doy , subq_0.account_id__ds__day , subq_0.account_id__ds__week , subq_0.account_id__ds__month @@ -77,8 +77,8 @@ FROM ( , subq_0.account_id__ds__extract_month , subq_0.account_id__ds__extract_week , subq_0.account_id__ds__extract_day - , subq_0.account_id__ds__extract_dayofweek - , subq_0.account_id__ds__extract_dayofyear + , subq_0.account_id__ds__extract_dow + , subq_0.account_id__ds__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -89,8 +89,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.account_id , subq_0.account_month , subq_0.account_id__account_month @@ -109,8 +109,8 @@ FROM ( , EXTRACT(MONTH FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM account_month_txns_src_10010.ds_partitioned) AS ds_partitioned__extract_doy , account_month_txns_src_10010.ds AS ds__day , DATE_TRUNC('week', account_month_txns_src_10010.ds) AS ds__week , DATE_TRUNC('month', account_month_txns_src_10010.ds) AS ds__month @@ -121,8 +121,8 @@ FROM ( , EXTRACT(MONTH FROM account_month_txns_src_10010.ds) AS ds__extract_month , EXTRACT(WEEK FROM account_month_txns_src_10010.ds) AS ds__extract_week , EXTRACT(DAY FROM account_month_txns_src_10010.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM account_month_txns_src_10010.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM account_month_txns_src_10010.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM account_month_txns_src_10010.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM account_month_txns_src_10010.ds) AS ds__extract_doy , account_month_txns_src_10010.account_month , account_month_txns_src_10010.ds_partitioned AS account_id__ds_partitioned__day , DATE_TRUNC('week', account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__week @@ -134,8 +134,8 @@ FROM ( , EXTRACT(MONTH FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_month , EXTRACT(WEEK FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_week , EXTRACT(DAY FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM account_month_txns_src_10010.ds_partitioned) AS account_id__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', account_month_txns_src_10010.ds) AS account_id__ds__month @@ -146,8 +146,8 @@ FROM ( , EXTRACT(MONTH FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_month , EXTRACT(WEEK FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_week , EXTRACT(DAY FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_day - , EXTRACT(DAYOFWEEK FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM account_month_txns_src_10010.ds) AS account_id__ds__extract_dow + , EXTRACT(DAYOFYEAR 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 FROM ***************************.account_month_txns account_month_txns_src_10010 @@ -174,8 +174,8 @@ FROM ( , subq_3.ds_partitioned__extract_month AS ds_partitioned__extract_month , subq_3.ds_partitioned__extract_week AS ds_partitioned__extract_week , subq_3.ds_partitioned__extract_day AS ds_partitioned__extract_day - , subq_3.ds_partitioned__extract_dayofweek AS ds_partitioned__extract_dayofweek - , subq_3.ds_partitioned__extract_dayofyear AS ds_partitioned__extract_dayofyear + , subq_3.ds_partitioned__extract_dow AS ds_partitioned__extract_dow + , subq_3.ds_partitioned__extract_doy AS ds_partitioned__extract_doy , subq_3.account_id__ds_partitioned__day AS account_id__ds_partitioned__day , subq_3.account_id__ds_partitioned__week AS account_id__ds_partitioned__week , subq_3.account_id__ds_partitioned__month AS account_id__ds_partitioned__month @@ -186,8 +186,8 @@ FROM ( , subq_3.account_id__ds_partitioned__extract_month AS account_id__ds_partitioned__extract_month , subq_3.account_id__ds_partitioned__extract_week AS account_id__ds_partitioned__extract_week , subq_3.account_id__ds_partitioned__extract_day AS account_id__ds_partitioned__extract_day - , subq_3.account_id__ds_partitioned__extract_dayofweek AS account_id__ds_partitioned__extract_dayofweek - , subq_3.account_id__ds_partitioned__extract_dayofyear AS account_id__ds_partitioned__extract_dayofyear + , subq_3.account_id__ds_partitioned__extract_dow AS account_id__ds_partitioned__extract_dow + , subq_3.account_id__ds_partitioned__extract_doy AS account_id__ds_partitioned__extract_doy , subq_5.ds_partitioned__day AS customer_id__ds_partitioned__day , subq_5.ds_partitioned__week AS customer_id__ds_partitioned__week , subq_5.ds_partitioned__month AS customer_id__ds_partitioned__month @@ -198,8 +198,8 @@ FROM ( , subq_5.ds_partitioned__extract_month AS customer_id__ds_partitioned__extract_month , subq_5.ds_partitioned__extract_week AS customer_id__ds_partitioned__extract_week , subq_5.ds_partitioned__extract_day AS customer_id__ds_partitioned__extract_day - , subq_5.ds_partitioned__extract_dayofweek AS customer_id__ds_partitioned__extract_dayofweek - , subq_5.ds_partitioned__extract_dayofyear AS customer_id__ds_partitioned__extract_dayofyear + , subq_5.ds_partitioned__extract_dow AS customer_id__ds_partitioned__extract_dow + , subq_5.ds_partitioned__extract_doy AS customer_id__ds_partitioned__extract_doy , subq_3.account_id AS account_id , subq_3.customer_id AS customer_id , subq_3.account_id__customer_id AS account_id__customer_id @@ -221,8 +221,8 @@ FROM ( , EXTRACT(MONTH FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bridge_table_src_10011.ds_partitioned) AS ds_partitioned__extract_doy , bridge_table_src_10011.extra_dim AS account_id__extra_dim , bridge_table_src_10011.ds_partitioned AS account_id__ds_partitioned__day , DATE_TRUNC('week', bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__week @@ -234,8 +234,8 @@ FROM ( , EXTRACT(MONTH FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_month , EXTRACT(WEEK FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_week , EXTRACT(DAY FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bridge_table_src_10011.ds_partitioned) AS account_id__ds_partitioned__extract_doy , bridge_table_src_10011.account_id , bridge_table_src_10011.customer_id , bridge_table_src_10011.customer_id AS account_id__customer_id @@ -283,8 +283,8 @@ FROM ( , subq_4.ds_partitioned__extract_month , subq_4.ds_partitioned__extract_week , subq_4.ds_partitioned__extract_day - , subq_4.ds_partitioned__extract_dayofweek - , subq_4.ds_partitioned__extract_dayofyear + , subq_4.ds_partitioned__extract_dow + , subq_4.ds_partitioned__extract_doy , subq_4.customer_id__ds_partitioned__day , subq_4.customer_id__ds_partitioned__week , subq_4.customer_id__ds_partitioned__month @@ -295,8 +295,8 @@ FROM ( , subq_4.customer_id__ds_partitioned__extract_month , subq_4.customer_id__ds_partitioned__extract_week , subq_4.customer_id__ds_partitioned__extract_day - , subq_4.customer_id__ds_partitioned__extract_dayofweek - , subq_4.customer_id__ds_partitioned__extract_dayofyear + , subq_4.customer_id__ds_partitioned__extract_dow + , subq_4.customer_id__ds_partitioned__extract_doy , subq_4.customer_id , subq_4.customer_name , subq_4.customer_atomic_weight @@ -317,8 +317,8 @@ FROM ( , EXTRACT(MONTH FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM customer_table_src_10013.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR 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 , customer_table_src_10013.ds_partitioned AS customer_id__ds_partitioned__day @@ -331,8 +331,8 @@ FROM ( , EXTRACT(MONTH FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_month , EXTRACT(WEEK FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_week , EXTRACT(DAY FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM customer_table_src_10013.ds_partitioned) AS customer_id__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR 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 ) subq_4 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 3d8fba9b22..38e701d35f 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 @@ -28,8 +28,8 @@ FROM ( , subq_1.ds__extract_month , subq_1.ds__extract_week , subq_1.ds__extract_day - , subq_1.ds__extract_dayofweek - , subq_1.ds__extract_dayofyear + , subq_1.ds__extract_dow + , subq_1.ds__extract_doy , subq_1.ds_partitioned__day , subq_1.ds_partitioned__week , subq_1.ds_partitioned__month @@ -40,8 +40,8 @@ FROM ( , subq_1.ds_partitioned__extract_month , subq_1.ds_partitioned__extract_week , subq_1.ds_partitioned__extract_day - , subq_1.ds_partitioned__extract_dayofweek - , subq_1.ds_partitioned__extract_dayofyear + , subq_1.ds_partitioned__extract_dow + , subq_1.ds_partitioned__extract_doy , subq_1.paid_at__day , subq_1.paid_at__week , subq_1.paid_at__month @@ -52,8 +52,8 @@ FROM ( , subq_1.paid_at__extract_month , subq_1.paid_at__extract_week , subq_1.paid_at__extract_day - , subq_1.paid_at__extract_dayofweek - , subq_1.paid_at__extract_dayofyear + , subq_1.paid_at__extract_dow + , subq_1.paid_at__extract_doy , subq_1.booking__ds__day , subq_1.booking__ds__week , subq_1.booking__ds__month @@ -64,8 +64,8 @@ FROM ( , subq_1.booking__ds__extract_month , subq_1.booking__ds__extract_week , subq_1.booking__ds__extract_day - , subq_1.booking__ds__extract_dayofweek - , subq_1.booking__ds__extract_dayofyear + , subq_1.booking__ds__extract_dow + , subq_1.booking__ds__extract_doy , subq_1.booking__ds_partitioned__day , subq_1.booking__ds_partitioned__week , subq_1.booking__ds_partitioned__month @@ -76,8 +76,8 @@ FROM ( , subq_1.booking__ds_partitioned__extract_month , subq_1.booking__ds_partitioned__extract_week , subq_1.booking__ds_partitioned__extract_day - , subq_1.booking__ds_partitioned__extract_dayofweek - , subq_1.booking__ds_partitioned__extract_dayofyear + , subq_1.booking__ds_partitioned__extract_dow + , subq_1.booking__ds_partitioned__extract_doy , subq_1.booking__paid_at__day , subq_1.booking__paid_at__week , subq_1.booking__paid_at__month @@ -88,8 +88,8 @@ FROM ( , subq_1.booking__paid_at__extract_month , subq_1.booking__paid_at__extract_week , subq_1.booking__paid_at__extract_day - , subq_1.booking__paid_at__extract_dayofweek - , subq_1.booking__paid_at__extract_dayofyear + , subq_1.booking__paid_at__extract_dow + , subq_1.booking__paid_at__extract_doy , subq_1.metric_time__day , subq_1.metric_time__week , subq_1.metric_time__month @@ -100,8 +100,8 @@ FROM ( , subq_1.metric_time__extract_month , subq_1.metric_time__extract_week , subq_1.metric_time__extract_day - , subq_1.metric_time__extract_dayofweek - , subq_1.metric_time__extract_dayofyear + , subq_1.metric_time__extract_dow + , subq_1.metric_time__extract_doy , subq_1.listing , subq_1.guest , subq_1.host @@ -136,8 +136,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -148,8 +148,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -160,8 +160,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -172,8 +172,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -184,8 +184,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -196,8 +196,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -208,8 +208,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -259,8 +259,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -271,8 +271,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -283,8 +283,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -296,8 +296,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -308,8 +308,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -320,8 +320,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -362,8 +362,8 @@ CROSS JOIN ( , subq_7.ds__extract_month , subq_7.ds__extract_week , subq_7.ds__extract_day - , subq_7.ds__extract_dayofweek - , subq_7.ds__extract_dayofyear + , subq_7.ds__extract_dow + , subq_7.ds__extract_doy , subq_7.created_at__day , subq_7.created_at__week , subq_7.created_at__month @@ -374,8 +374,8 @@ CROSS JOIN ( , subq_7.created_at__extract_month , subq_7.created_at__extract_week , subq_7.created_at__extract_day - , subq_7.created_at__extract_dayofweek - , subq_7.created_at__extract_dayofyear + , subq_7.created_at__extract_dow + , subq_7.created_at__extract_doy , subq_7.listing__ds__day , subq_7.listing__ds__week , subq_7.listing__ds__month @@ -386,8 +386,8 @@ CROSS JOIN ( , subq_7.listing__ds__extract_month , subq_7.listing__ds__extract_week , subq_7.listing__ds__extract_day - , subq_7.listing__ds__extract_dayofweek - , subq_7.listing__ds__extract_dayofyear + , subq_7.listing__ds__extract_dow + , subq_7.listing__ds__extract_doy , subq_7.listing__created_at__day , subq_7.listing__created_at__week , subq_7.listing__created_at__month @@ -398,8 +398,8 @@ CROSS JOIN ( , subq_7.listing__created_at__extract_month , subq_7.listing__created_at__extract_week , subq_7.listing__created_at__extract_day - , subq_7.listing__created_at__extract_dayofweek - , subq_7.listing__created_at__extract_dayofyear + , subq_7.listing__created_at__extract_dow + , subq_7.listing__created_at__extract_doy , subq_7.metric_time__day , subq_7.metric_time__week , subq_7.metric_time__month @@ -410,8 +410,8 @@ CROSS JOIN ( , subq_7.metric_time__extract_month , subq_7.metric_time__extract_week , subq_7.metric_time__extract_day - , subq_7.metric_time__extract_dayofweek - , subq_7.metric_time__extract_dayofyear + , subq_7.metric_time__extract_dow + , subq_7.metric_time__extract_doy , subq_7.listing , subq_7.user , subq_7.listing__user @@ -437,8 +437,8 @@ CROSS JOIN ( , subq_6.ds__extract_month , subq_6.ds__extract_week , subq_6.ds__extract_day - , subq_6.ds__extract_dayofweek - , subq_6.ds__extract_dayofyear + , subq_6.ds__extract_dow + , subq_6.ds__extract_doy , subq_6.created_at__day , subq_6.created_at__week , subq_6.created_at__month @@ -449,8 +449,8 @@ CROSS JOIN ( , subq_6.created_at__extract_month , subq_6.created_at__extract_week , subq_6.created_at__extract_day - , subq_6.created_at__extract_dayofweek - , subq_6.created_at__extract_dayofyear + , subq_6.created_at__extract_dow + , subq_6.created_at__extract_doy , subq_6.listing__ds__day , subq_6.listing__ds__week , subq_6.listing__ds__month @@ -461,8 +461,8 @@ CROSS JOIN ( , subq_6.listing__ds__extract_month , subq_6.listing__ds__extract_week , subq_6.listing__ds__extract_day - , subq_6.listing__ds__extract_dayofweek - , subq_6.listing__ds__extract_dayofyear + , subq_6.listing__ds__extract_dow + , subq_6.listing__ds__extract_doy , subq_6.listing__created_at__day , subq_6.listing__created_at__week , subq_6.listing__created_at__month @@ -473,8 +473,8 @@ CROSS JOIN ( , subq_6.listing__created_at__extract_month , subq_6.listing__created_at__extract_week , subq_6.listing__created_at__extract_day - , subq_6.listing__created_at__extract_dayofweek - , subq_6.listing__created_at__extract_dayofyear + , subq_6.listing__created_at__extract_dow + , subq_6.listing__created_at__extract_doy , subq_6.ds__day AS metric_time__day , subq_6.ds__week AS metric_time__week , subq_6.ds__month AS metric_time__month @@ -485,8 +485,8 @@ CROSS JOIN ( , subq_6.ds__extract_month AS metric_time__extract_month , subq_6.ds__extract_week AS metric_time__extract_week , subq_6.ds__extract_day AS metric_time__extract_day - , subq_6.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_6.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_6.ds__extract_dow AS metric_time__extract_dow + , subq_6.ds__extract_doy AS metric_time__extract_doy , subq_6.listing , subq_6.user , subq_6.listing__user @@ -515,8 +515,8 @@ CROSS JOIN ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_doy , listings_latest_src_10004.created_at AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS created_at__month @@ -527,8 +527,8 @@ CROSS JOIN ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS capacity_latest @@ -542,8 +542,8 @@ CROSS JOIN ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , 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 , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS listing__created_at__month @@ -554,8 +554,8 @@ CROSS JOIN ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS listing__capacity_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 138d3b47ca..c84ceda6fa 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 @@ -49,8 +49,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -61,8 +61,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -73,8 +73,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -85,8 +85,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -97,8 +97,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -109,8 +109,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -121,8 +121,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -172,8 +172,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -184,8 +184,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -196,8 +196,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -209,8 +209,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -221,8 +221,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -233,8 +233,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -278,8 +278,8 @@ FROM ( , subq_5.ds__extract_month , subq_5.ds__extract_week , subq_5.ds__extract_day - , subq_5.ds__extract_dayofweek - , subq_5.ds__extract_dayofyear + , subq_5.ds__extract_dow + , subq_5.ds__extract_doy , subq_5.ds_partitioned__day , subq_5.ds_partitioned__week , subq_5.ds_partitioned__month @@ -290,8 +290,8 @@ FROM ( , subq_5.ds_partitioned__extract_month , subq_5.ds_partitioned__extract_week , subq_5.ds_partitioned__extract_day - , subq_5.ds_partitioned__extract_dayofweek - , subq_5.ds_partitioned__extract_dayofyear + , subq_5.ds_partitioned__extract_dow + , subq_5.ds_partitioned__extract_doy , subq_5.paid_at__day , subq_5.paid_at__week , subq_5.paid_at__month @@ -302,8 +302,8 @@ FROM ( , subq_5.paid_at__extract_month , subq_5.paid_at__extract_week , subq_5.paid_at__extract_day - , subq_5.paid_at__extract_dayofweek - , subq_5.paid_at__extract_dayofyear + , subq_5.paid_at__extract_dow + , subq_5.paid_at__extract_doy , subq_5.booking__ds__day , subq_5.booking__ds__week , subq_5.booking__ds__month @@ -314,8 +314,8 @@ FROM ( , subq_5.booking__ds__extract_month , subq_5.booking__ds__extract_week , subq_5.booking__ds__extract_day - , subq_5.booking__ds__extract_dayofweek - , subq_5.booking__ds__extract_dayofyear + , subq_5.booking__ds__extract_dow + , subq_5.booking__ds__extract_doy , subq_5.booking__ds_partitioned__day , subq_5.booking__ds_partitioned__week , subq_5.booking__ds_partitioned__month @@ -326,8 +326,8 @@ FROM ( , subq_5.booking__ds_partitioned__extract_month , subq_5.booking__ds_partitioned__extract_week , subq_5.booking__ds_partitioned__extract_day - , subq_5.booking__ds_partitioned__extract_dayofweek - , subq_5.booking__ds_partitioned__extract_dayofyear + , subq_5.booking__ds_partitioned__extract_dow + , subq_5.booking__ds_partitioned__extract_doy , subq_5.booking__paid_at__day , subq_5.booking__paid_at__week , subq_5.booking__paid_at__month @@ -338,8 +338,8 @@ FROM ( , subq_5.booking__paid_at__extract_month , subq_5.booking__paid_at__extract_week , subq_5.booking__paid_at__extract_day - , subq_5.booking__paid_at__extract_dayofweek - , subq_5.booking__paid_at__extract_dayofyear + , subq_5.booking__paid_at__extract_dow + , subq_5.booking__paid_at__extract_doy , subq_5.ds__day AS metric_time__day , subq_5.ds__week AS metric_time__week , subq_5.ds__month AS metric_time__month @@ -350,8 +350,8 @@ FROM ( , subq_5.ds__extract_month AS metric_time__extract_month , subq_5.ds__extract_week AS metric_time__extract_week , subq_5.ds__extract_day AS metric_time__extract_day - , subq_5.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_5.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_5.ds__extract_dow AS metric_time__extract_dow + , subq_5.ds__extract_doy AS metric_time__extract_doy , subq_5.listing , subq_5.guest , subq_5.host @@ -401,8 +401,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -413,8 +413,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -425,8 +425,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -438,8 +438,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -450,8 +450,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -462,8 +462,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -519,8 +519,8 @@ FROM ( , subq_12.ds__extract_month , subq_12.ds__extract_week , subq_12.ds__extract_day - , subq_12.ds__extract_dayofweek - , subq_12.ds__extract_dayofyear + , subq_12.ds__extract_dow + , subq_12.ds__extract_doy , subq_12.ds_partitioned__day , subq_12.ds_partitioned__week , subq_12.ds_partitioned__month @@ -531,8 +531,8 @@ FROM ( , subq_12.ds_partitioned__extract_month , subq_12.ds_partitioned__extract_week , subq_12.ds_partitioned__extract_day - , subq_12.ds_partitioned__extract_dayofweek - , subq_12.ds_partitioned__extract_dayofyear + , subq_12.ds_partitioned__extract_dow + , subq_12.ds_partitioned__extract_doy , subq_12.paid_at__day , subq_12.paid_at__week , subq_12.paid_at__month @@ -543,8 +543,8 @@ FROM ( , subq_12.paid_at__extract_month , subq_12.paid_at__extract_week , subq_12.paid_at__extract_day - , subq_12.paid_at__extract_dayofweek - , subq_12.paid_at__extract_dayofyear + , subq_12.paid_at__extract_dow + , subq_12.paid_at__extract_doy , subq_12.booking__ds__day , subq_12.booking__ds__week , subq_12.booking__ds__month @@ -555,8 +555,8 @@ FROM ( , subq_12.booking__ds__extract_month , subq_12.booking__ds__extract_week , subq_12.booking__ds__extract_day - , subq_12.booking__ds__extract_dayofweek - , subq_12.booking__ds__extract_dayofyear + , subq_12.booking__ds__extract_dow + , subq_12.booking__ds__extract_doy , subq_12.booking__ds_partitioned__day , subq_12.booking__ds_partitioned__week , subq_12.booking__ds_partitioned__month @@ -567,8 +567,8 @@ FROM ( , subq_12.booking__ds_partitioned__extract_month , subq_12.booking__ds_partitioned__extract_week , subq_12.booking__ds_partitioned__extract_day - , subq_12.booking__ds_partitioned__extract_dayofweek - , subq_12.booking__ds_partitioned__extract_dayofyear + , subq_12.booking__ds_partitioned__extract_dow + , subq_12.booking__ds_partitioned__extract_doy , subq_12.booking__paid_at__day , subq_12.booking__paid_at__week , subq_12.booking__paid_at__month @@ -579,8 +579,8 @@ FROM ( , subq_12.booking__paid_at__extract_month , subq_12.booking__paid_at__extract_week , subq_12.booking__paid_at__extract_day - , subq_12.booking__paid_at__extract_dayofweek - , subq_12.booking__paid_at__extract_dayofyear + , subq_12.booking__paid_at__extract_dow + , subq_12.booking__paid_at__extract_doy , subq_12.ds__day AS metric_time__day , subq_12.ds__week AS metric_time__week , subq_12.ds__month AS metric_time__month @@ -591,8 +591,8 @@ FROM ( , subq_12.ds__extract_month AS metric_time__extract_month , subq_12.ds__extract_week AS metric_time__extract_week , subq_12.ds__extract_day AS metric_time__extract_day - , subq_12.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_12.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_12.ds__extract_dow AS metric_time__extract_dow + , subq_12.ds__extract_doy AS metric_time__extract_doy , subq_12.listing , subq_12.guest , subq_12.host @@ -642,8 +642,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -654,8 +654,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -666,8 +666,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -679,8 +679,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -691,8 +691,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -703,8 +703,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -758,8 +758,8 @@ FROM ( , subq_17.ds__extract_month , subq_17.ds__extract_week , subq_17.ds__extract_day - , subq_17.ds__extract_dayofweek - , subq_17.ds__extract_dayofyear + , subq_17.ds__extract_dow + , subq_17.ds__extract_doy , subq_17.ds_partitioned__day , subq_17.ds_partitioned__week , subq_17.ds_partitioned__month @@ -770,8 +770,8 @@ FROM ( , subq_17.ds_partitioned__extract_month , subq_17.ds_partitioned__extract_week , subq_17.ds_partitioned__extract_day - , subq_17.ds_partitioned__extract_dayofweek - , subq_17.ds_partitioned__extract_dayofyear + , subq_17.ds_partitioned__extract_dow + , subq_17.ds_partitioned__extract_doy , subq_17.paid_at__day , subq_17.paid_at__week , subq_17.paid_at__month @@ -782,8 +782,8 @@ FROM ( , subq_17.paid_at__extract_month , subq_17.paid_at__extract_week , subq_17.paid_at__extract_day - , subq_17.paid_at__extract_dayofweek - , subq_17.paid_at__extract_dayofyear + , subq_17.paid_at__extract_dow + , subq_17.paid_at__extract_doy , subq_17.booking__ds__day , subq_17.booking__ds__week , subq_17.booking__ds__month @@ -794,8 +794,8 @@ FROM ( , subq_17.booking__ds__extract_month , subq_17.booking__ds__extract_week , subq_17.booking__ds__extract_day - , subq_17.booking__ds__extract_dayofweek - , subq_17.booking__ds__extract_dayofyear + , subq_17.booking__ds__extract_dow + , subq_17.booking__ds__extract_doy , subq_17.booking__ds_partitioned__day , subq_17.booking__ds_partitioned__week , subq_17.booking__ds_partitioned__month @@ -806,8 +806,8 @@ FROM ( , subq_17.booking__ds_partitioned__extract_month , subq_17.booking__ds_partitioned__extract_week , subq_17.booking__ds_partitioned__extract_day - , subq_17.booking__ds_partitioned__extract_dayofweek - , subq_17.booking__ds_partitioned__extract_dayofyear + , subq_17.booking__ds_partitioned__extract_dow + , subq_17.booking__ds_partitioned__extract_doy , subq_17.booking__paid_at__day , subq_17.booking__paid_at__week , subq_17.booking__paid_at__month @@ -818,8 +818,8 @@ FROM ( , subq_17.booking__paid_at__extract_month , subq_17.booking__paid_at__extract_week , subq_17.booking__paid_at__extract_day - , subq_17.booking__paid_at__extract_dayofweek - , subq_17.booking__paid_at__extract_dayofyear + , subq_17.booking__paid_at__extract_dow + , subq_17.booking__paid_at__extract_doy , subq_17.ds__day AS metric_time__day , subq_17.ds__week AS metric_time__week , subq_17.ds__month AS metric_time__month @@ -830,8 +830,8 @@ FROM ( , subq_17.ds__extract_month AS metric_time__extract_month , subq_17.ds__extract_week AS metric_time__extract_week , subq_17.ds__extract_day AS metric_time__extract_day - , subq_17.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_17.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_17.ds__extract_dow AS metric_time__extract_dow + , subq_17.ds__extract_doy AS metric_time__extract_doy , subq_17.listing , subq_17.guest , subq_17.host @@ -881,8 +881,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -893,8 +893,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -905,8 +905,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -918,8 +918,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -930,8 +930,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -942,8 +942,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 63116a5458..d9c8ed0995 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 @@ -50,8 +50,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -62,8 +62,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -74,8 +74,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -87,8 +87,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -99,8 +99,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -111,8 +111,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 e43e265eff..73a3eb36fd 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 @@ -41,8 +41,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -53,8 +53,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.verification__ds__day , subq_0.verification__ds__week , subq_0.verification__ds__month @@ -65,8 +65,8 @@ FROM ( , subq_0.verification__ds__extract_month , subq_0.verification__ds__extract_week , subq_0.verification__ds__extract_day - , subq_0.verification__ds__extract_dayofweek - , subq_0.verification__ds__extract_dayofyear + , subq_0.verification__ds__extract_dow + , subq_0.verification__ds__extract_doy , subq_0.verification__ds_partitioned__day , subq_0.verification__ds_partitioned__week , subq_0.verification__ds_partitioned__month @@ -77,8 +77,8 @@ FROM ( , subq_0.verification__ds_partitioned__extract_month , subq_0.verification__ds_partitioned__extract_week , subq_0.verification__ds_partitioned__extract_day - , subq_0.verification__ds_partitioned__extract_dayofweek - , subq_0.verification__ds_partitioned__extract_dayofyear + , subq_0.verification__ds_partitioned__extract_dow + , subq_0.verification__ds_partitioned__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -89,8 +89,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.verification , subq_0.user , subq_0.verification__user @@ -111,8 +111,8 @@ FROM ( , EXTRACT(MONTH FROM id_verifications_src_10003.ds) AS ds__extract_month , EXTRACT(WEEK FROM id_verifications_src_10003.ds) AS ds__extract_week , EXTRACT(DAY FROM id_verifications_src_10003.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM id_verifications_src_10003.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM id_verifications_src_10003.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM id_verifications_src_10003.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM id_verifications_src_10003.ds) AS ds__extract_doy , id_verifications_src_10003.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', id_verifications_src_10003.ds_partitioned) AS ds_partitioned__month @@ -123,8 +123,8 @@ FROM ( , EXTRACT(MONTH FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM id_verifications_src_10003.ds_partitioned) AS ds_partitioned__extract_doy , id_verifications_src_10003.verification_type , id_verifications_src_10003.ds AS verification__ds__day , DATE_TRUNC('week', id_verifications_src_10003.ds) AS verification__ds__week @@ -136,8 +136,8 @@ FROM ( , EXTRACT(MONTH FROM id_verifications_src_10003.ds) AS verification__ds__extract_month , EXTRACT(WEEK FROM id_verifications_src_10003.ds) AS verification__ds__extract_week , EXTRACT(DAY FROM id_verifications_src_10003.ds) AS verification__ds__extract_day - , EXTRACT(DAYOFWEEK FROM id_verifications_src_10003.ds) AS verification__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM id_verifications_src_10003.ds) AS verification__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM id_verifications_src_10003.ds) AS verification__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM id_verifications_src_10003.ds) AS verification__ds__extract_doy , 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 , DATE_TRUNC('month', id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__month @@ -148,8 +148,8 @@ FROM ( , EXTRACT(MONTH FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_month , EXTRACT(WEEK FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_week , EXTRACT(DAY FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM id_verifications_src_10003.ds_partitioned) AS verification__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR 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 , id_verifications_src_10003.user_id AS user @@ -178,8 +178,8 @@ FROM ( , EXTRACT(MONTH FROM users_ds_source_src_10007.ds) AS ds__extract_month , EXTRACT(WEEK FROM users_ds_source_src_10007.ds) AS ds__extract_week , EXTRACT(DAY FROM users_ds_source_src_10007.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM users_ds_source_src_10007.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM users_ds_source_src_10007.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM users_ds_source_src_10007.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM users_ds_source_src_10007.ds) AS ds__extract_doy , 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 , DATE_TRUNC('month', users_ds_source_src_10007.created_at) AS created_at__month @@ -190,8 +190,8 @@ FROM ( , EXTRACT(MONTH FROM users_ds_source_src_10007.created_at) AS created_at__extract_month , EXTRACT(WEEK FROM users_ds_source_src_10007.created_at) AS created_at__extract_week , EXTRACT(DAY FROM users_ds_source_src_10007.created_at) AS created_at__extract_day - , EXTRACT(DAYOFWEEK FROM users_ds_source_src_10007.created_at) AS created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM users_ds_source_src_10007.created_at) AS created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM users_ds_source_src_10007.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFYEAR FROM users_ds_source_src_10007.created_at) AS created_at__extract_doy , 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 , DATE_TRUNC('month', users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__month @@ -202,8 +202,8 @@ FROM ( , EXTRACT(MONTH FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM users_ds_source_src_10007.ds_partitioned) AS ds_partitioned__extract_doy , users_ds_source_src_10007.home_state , users_ds_source_src_10007.ds AS user__ds__day , DATE_TRUNC('week', users_ds_source_src_10007.ds) AS user__ds__week @@ -215,8 +215,8 @@ FROM ( , EXTRACT(MONTH FROM users_ds_source_src_10007.ds) AS user__ds__extract_month , EXTRACT(WEEK FROM users_ds_source_src_10007.ds) AS user__ds__extract_week , EXTRACT(DAY FROM users_ds_source_src_10007.ds) AS user__ds__extract_day - , EXTRACT(DAYOFWEEK FROM users_ds_source_src_10007.ds) AS user__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM users_ds_source_src_10007.ds) AS user__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM users_ds_source_src_10007.ds) AS user__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM users_ds_source_src_10007.ds) AS user__ds__extract_doy , 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 , DATE_TRUNC('month', users_ds_source_src_10007.created_at) AS user__created_at__month @@ -227,8 +227,8 @@ FROM ( , EXTRACT(MONTH FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_month , EXTRACT(WEEK FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_week , EXTRACT(DAY FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_day - , EXTRACT(DAYOFWEEK FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_dow + , EXTRACT(DAYOFYEAR FROM users_ds_source_src_10007.created_at) AS user__created_at__extract_doy , 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 , DATE_TRUNC('month', users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__month @@ -239,8 +239,8 @@ FROM ( , EXTRACT(MONTH FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_month , EXTRACT(WEEK FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_week , EXTRACT(DAY FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM users_ds_source_src_10007.ds_partitioned) AS user__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR 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 FROM ***************************.dim_users users_ds_source_src_10007 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 d88d2d32f3..bf73140286 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 @@ -10,8 +10,8 @@ SELECT , subq_0.ds__extract_month AS ds__extract_month , subq_0.ds__extract_week AS ds__extract_week , subq_0.ds__extract_day AS ds__extract_day - , subq_0.ds__extract_dayofweek AS ds__extract_dayofweek - , subq_0.ds__extract_dayofyear AS ds__extract_dayofyear + , subq_0.ds__extract_dow AS ds__extract_dow + , subq_0.ds__extract_doy AS ds__extract_doy , subq_0.account__ds__day AS account__ds__day , subq_0.account__ds__week AS account__ds__week , subq_0.account__ds__month AS account__ds__month @@ -22,8 +22,8 @@ SELECT , subq_0.account__ds__extract_month AS account__ds__extract_month , subq_0.account__ds__extract_week AS account__ds__extract_week , subq_0.account__ds__extract_day AS account__ds__extract_day - , subq_0.account__ds__extract_dayofweek AS account__ds__extract_dayofweek - , subq_0.account__ds__extract_dayofyear AS account__ds__extract_dayofyear + , subq_0.account__ds__extract_dow AS account__ds__extract_dow + , subq_0.account__ds__extract_doy AS account__ds__extract_doy , subq_0.user AS user , subq_0.account__user AS account__user , subq_0.account_type AS account_type @@ -47,8 +47,8 @@ FROM ( , EXTRACT(MONTH FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(WEEK FROM accounts_source_src_10000.ds) AS ds__extract_week , EXTRACT(DAY FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM accounts_source_src_10000.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , accounts_source_src_10000.ds AS account__ds__day , DATE_TRUNC('week', accounts_source_src_10000.ds) AS account__ds__week @@ -60,8 +60,8 @@ FROM ( , EXTRACT(MONTH FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(WEEK FROM accounts_source_src_10000.ds) AS account__ds__extract_week , EXTRACT(DAY FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS account__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM accounts_source_src_10000.ds) AS account__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(DAYOFYEAR 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 , accounts_source_src_10000.user_id AS account__user @@ -87,8 +87,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(WEEK FROM accounts_source_src_10000.ds) AS ds__extract_week , EXTRACT(DAY FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM accounts_source_src_10000.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , accounts_source_src_10000.ds AS account__ds__day , DATE_TRUNC('week', accounts_source_src_10000.ds) AS account__ds__week @@ -100,8 +100,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(WEEK FROM accounts_source_src_10000.ds) AS account__ds__extract_week , EXTRACT(DAY FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS account__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM accounts_source_src_10000.ds) AS account__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(DAYOFYEAR 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 , accounts_source_src_10000.user_id AS account__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 094486f462..37fb636c96 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 @@ -10,8 +10,8 @@ SELECT , subq_3.ds__extract_month AS ds__extract_month , subq_3.ds__extract_week AS ds__extract_week , subq_3.ds__extract_day AS ds__extract_day - , subq_3.ds__extract_dayofweek AS ds__extract_dayofweek - , subq_3.ds__extract_dayofyear AS ds__extract_dayofyear + , subq_3.ds__extract_dow AS ds__extract_dow + , subq_3.ds__extract_doy AS ds__extract_doy , subq_3.account__ds__day AS account__ds__day , subq_3.account__ds__week AS account__ds__week , subq_3.account__ds__month AS account__ds__month @@ -22,8 +22,8 @@ SELECT , subq_3.account__ds__extract_month AS account__ds__extract_month , subq_3.account__ds__extract_week AS account__ds__extract_week , subq_3.account__ds__extract_day AS account__ds__extract_day - , subq_3.account__ds__extract_dayofweek AS account__ds__extract_dayofweek - , subq_3.account__ds__extract_dayofyear AS account__ds__extract_dayofyear + , subq_3.account__ds__extract_dow AS account__ds__extract_dow + , subq_3.account__ds__extract_doy AS account__ds__extract_doy , subq_3.user AS user , subq_3.account__user AS account__user , subq_3.account_type AS account_type @@ -47,8 +47,8 @@ FROM ( , EXTRACT(MONTH FROM ds) AS ds__extract_month , EXTRACT(WEEK FROM ds) AS ds__extract_week , EXTRACT(DAY FROM ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM ds) AS ds__extract_doy , account_type , ds AS account__ds__day , DATE_TRUNC('week', ds) AS account__ds__week @@ -60,8 +60,8 @@ FROM ( , EXTRACT(MONTH FROM ds) AS account__ds__extract_month , EXTRACT(WEEK FROM ds) AS account__ds__extract_week , EXTRACT(DAY FROM ds) AS account__ds__extract_day - , EXTRACT(DAYOFWEEK FROM ds) AS account__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds) AS account__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds) AS account__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM ds) AS account__ds__extract_doy , account_type AS account__account_type , user_id AS user , user_id AS account__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 a8a26c9899..5801bf4ecd 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 @@ -10,8 +10,8 @@ SELECT , subq_0.ds__extract_month AS ds__extract_month , subq_0.ds__extract_week AS ds__extract_week , subq_0.ds__extract_day AS ds__extract_day - , subq_0.ds__extract_dayofweek AS ds__extract_dayofweek - , subq_0.ds__extract_dayofyear AS ds__extract_dayofyear + , subq_0.ds__extract_dow AS ds__extract_dow + , subq_0.ds__extract_doy AS ds__extract_doy , subq_0.account__ds__day AS account__ds__day , subq_0.account__ds__week AS account__ds__week , subq_0.account__ds__month AS account__ds__month @@ -22,8 +22,8 @@ SELECT , subq_0.account__ds__extract_month AS account__ds__extract_month , subq_0.account__ds__extract_week AS account__ds__extract_week , subq_0.account__ds__extract_day AS account__ds__extract_day - , subq_0.account__ds__extract_dayofweek AS account__ds__extract_dayofweek - , subq_0.account__ds__extract_dayofyear AS account__ds__extract_dayofyear + , subq_0.account__ds__extract_dow AS account__ds__extract_dow + , subq_0.account__ds__extract_doy AS account__ds__extract_doy , subq_0.user AS user , subq_0.account__user AS account__user , subq_0.account_type AS account_type @@ -47,8 +47,8 @@ FROM ( , EXTRACT(MONTH FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(WEEK FROM accounts_source_src_10000.ds) AS ds__extract_week , EXTRACT(DAY FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM accounts_source_src_10000.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , accounts_source_src_10000.ds AS account__ds__day , DATE_TRUNC('week', accounts_source_src_10000.ds) AS account__ds__week @@ -60,8 +60,8 @@ FROM ( , EXTRACT(MONTH FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(WEEK FROM accounts_source_src_10000.ds) AS account__ds__extract_week , EXTRACT(DAY FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS account__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM accounts_source_src_10000.ds) AS account__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(DAYOFYEAR 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 , accounts_source_src_10000.user_id AS account__user @@ -88,8 +88,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(WEEK FROM accounts_source_src_10000.ds) AS ds__extract_week , EXTRACT(DAY FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM accounts_source_src_10000.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , accounts_source_src_10000.ds AS account__ds__day , DATE_TRUNC('week', accounts_source_src_10000.ds) AS account__ds__week @@ -101,8 +101,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(WEEK FROM accounts_source_src_10000.ds) AS account__ds__extract_week , EXTRACT(DAY FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS account__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM accounts_source_src_10000.ds) AS account__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(DAYOFYEAR 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 , accounts_source_src_10000.user_id AS account__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 c400372dd4..b83343fe92 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 @@ -10,8 +10,8 @@ SELECT , subq_3.ds__extract_month AS ds__extract_month , subq_3.ds__extract_week AS ds__extract_week , subq_3.ds__extract_day AS ds__extract_day - , subq_3.ds__extract_dayofweek AS ds__extract_dayofweek - , subq_3.ds__extract_dayofyear AS ds__extract_dayofyear + , subq_3.ds__extract_dow AS ds__extract_dow + , subq_3.ds__extract_doy AS ds__extract_doy , subq_3.account__ds__day AS account__ds__day , subq_3.account__ds__week AS account__ds__week , subq_3.account__ds__month AS account__ds__month @@ -22,8 +22,8 @@ SELECT , subq_3.account__ds__extract_month AS account__ds__extract_month , subq_3.account__ds__extract_week AS account__ds__extract_week , subq_3.account__ds__extract_day AS account__ds__extract_day - , subq_3.account__ds__extract_dayofweek AS account__ds__extract_dayofweek - , subq_3.account__ds__extract_dayofyear AS account__ds__extract_dayofyear + , subq_3.account__ds__extract_dow AS account__ds__extract_dow + , subq_3.account__ds__extract_doy AS account__ds__extract_doy , subq_3.user AS user , subq_3.account__user AS account__user , subq_3.account_type AS account_type @@ -47,8 +47,8 @@ FROM ( , EXTRACT(MONTH FROM ds) AS ds__extract_month , EXTRACT(WEEK FROM ds) AS ds__extract_week , EXTRACT(DAY FROM ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM ds) AS ds__extract_doy , account_type , ds AS account__ds__day , DATE_TRUNC('week', ds) AS account__ds__week @@ -60,8 +60,8 @@ FROM ( , EXTRACT(MONTH FROM ds) AS account__ds__extract_month , EXTRACT(WEEK FROM ds) AS account__ds__extract_week , EXTRACT(DAY FROM ds) AS account__ds__extract_day - , EXTRACT(DAYOFWEEK FROM ds) AS account__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds) AS account__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds) AS account__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM ds) AS account__ds__extract_doy , account_type AS account__account_type , user_id AS user , user_id AS account__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 30ab4c1851..d76c04b1c2 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 @@ -10,8 +10,8 @@ SELECT , subq_0.ds__extract_month AS ds__extract_month , subq_0.ds__extract_week AS ds__extract_week , subq_0.ds__extract_day AS ds__extract_day - , subq_0.ds__extract_dayofweek AS ds__extract_dayofweek - , subq_0.ds__extract_dayofyear AS ds__extract_dayofyear + , subq_0.ds__extract_dow AS ds__extract_dow + , subq_0.ds__extract_doy AS ds__extract_doy , subq_0.account__ds__day AS account__ds__day , subq_0.account__ds__week AS account__ds__week , subq_0.account__ds__month AS account__ds__month @@ -22,8 +22,8 @@ SELECT , subq_0.account__ds__extract_month AS account__ds__extract_month , subq_0.account__ds__extract_week AS account__ds__extract_week , subq_0.account__ds__extract_day AS account__ds__extract_day - , subq_0.account__ds__extract_dayofweek AS account__ds__extract_dayofweek - , subq_0.account__ds__extract_dayofyear AS account__ds__extract_dayofyear + , subq_0.account__ds__extract_dow AS account__ds__extract_dow + , subq_0.account__ds__extract_doy AS account__ds__extract_doy , subq_0.user AS user , subq_0.account__user AS account__user , subq_0.account_type AS account_type @@ -47,8 +47,8 @@ FROM ( , EXTRACT(MONTH FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(WEEK FROM accounts_source_src_10000.ds) AS ds__extract_week , EXTRACT(DAY FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM accounts_source_src_10000.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , accounts_source_src_10000.ds AS account__ds__day , DATE_TRUNC('week', accounts_source_src_10000.ds) AS account__ds__week @@ -60,8 +60,8 @@ FROM ( , EXTRACT(MONTH FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(WEEK FROM accounts_source_src_10000.ds) AS account__ds__extract_week , EXTRACT(DAY FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS account__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM accounts_source_src_10000.ds) AS account__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(DAYOFYEAR 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 , accounts_source_src_10000.user_id AS account__user @@ -88,8 +88,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM accounts_source_src_10000.ds) AS ds__extract_month , EXTRACT(WEEK FROM accounts_source_src_10000.ds) AS ds__extract_week , EXTRACT(DAY FROM accounts_source_src_10000.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM accounts_source_src_10000.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM accounts_source_src_10000.ds) AS ds__extract_doy , accounts_source_src_10000.account_type , accounts_source_src_10000.ds AS account__ds__day , DATE_TRUNC('week', accounts_source_src_10000.ds) AS account__ds__week @@ -101,8 +101,8 @@ INNER JOIN ( , EXTRACT(MONTH FROM accounts_source_src_10000.ds) AS account__ds__extract_month , EXTRACT(WEEK FROM accounts_source_src_10000.ds) AS account__ds__extract_week , EXTRACT(DAY FROM accounts_source_src_10000.ds) AS account__ds__extract_day - , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS account__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM accounts_source_src_10000.ds) AS account__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM accounts_source_src_10000.ds) AS account__ds__extract_dow + , EXTRACT(DAYOFYEAR 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 , accounts_source_src_10000.user_id AS account__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 ef337f422c..7b9abd7ccb 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 @@ -10,8 +10,8 @@ SELECT , subq_3.ds__extract_month AS ds__extract_month , subq_3.ds__extract_week AS ds__extract_week , subq_3.ds__extract_day AS ds__extract_day - , subq_3.ds__extract_dayofweek AS ds__extract_dayofweek - , subq_3.ds__extract_dayofyear AS ds__extract_dayofyear + , subq_3.ds__extract_dow AS ds__extract_dow + , subq_3.ds__extract_doy AS ds__extract_doy , subq_3.account__ds__day AS account__ds__day , subq_3.account__ds__week AS account__ds__week , subq_3.account__ds__month AS account__ds__month @@ -22,8 +22,8 @@ SELECT , subq_3.account__ds__extract_month AS account__ds__extract_month , subq_3.account__ds__extract_week AS account__ds__extract_week , subq_3.account__ds__extract_day AS account__ds__extract_day - , subq_3.account__ds__extract_dayofweek AS account__ds__extract_dayofweek - , subq_3.account__ds__extract_dayofyear AS account__ds__extract_dayofyear + , subq_3.account__ds__extract_dow AS account__ds__extract_dow + , subq_3.account__ds__extract_doy AS account__ds__extract_doy , subq_3.user AS user , subq_3.account__user AS account__user , subq_3.account_type AS account_type @@ -47,8 +47,8 @@ FROM ( , EXTRACT(MONTH FROM ds) AS ds__extract_month , EXTRACT(WEEK FROM ds) AS ds__extract_week , EXTRACT(DAY FROM ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM ds) AS ds__extract_doy , account_type , ds AS account__ds__day , DATE_TRUNC('week', ds) AS account__ds__week @@ -60,8 +60,8 @@ FROM ( , EXTRACT(MONTH FROM ds) AS account__ds__extract_month , EXTRACT(WEEK FROM ds) AS account__ds__extract_week , EXTRACT(DAY FROM ds) AS account__ds__extract_day - , EXTRACT(DAYOFWEEK FROM ds) AS account__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds) AS account__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds) AS account__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM ds) AS account__ds__extract_doy , account_type AS account__account_type , user_id AS user , user_id AS account__user 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 16b897731d..79dbc6f87e 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 @@ -36,8 +36,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -48,8 +48,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -60,8 +60,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -73,8 +73,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -85,8 +85,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -97,8 +97,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -130,8 +130,8 @@ LEFT OUTER JOIN ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS ds__extract_doy , listings_latest_src_10004.created_at AS created_at__day , DATE_TRUNC('week', listings_latest_src_10004.created_at) AS created_at__week , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS created_at__month @@ -142,8 +142,8 @@ LEFT OUTER JOIN ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS capacity_latest @@ -157,8 +157,8 @@ LEFT OUTER JOIN ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__ds__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__ds__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__ds__extract_doy , 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 , DATE_TRUNC('month', listings_latest_src_10004.created_at) AS listing__created_at__month @@ -169,8 +169,8 @@ LEFT OUTER JOIN ( , EXTRACT(MONTH FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_month , EXTRACT(WEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_week , EXTRACT(DAY FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_day - , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM listings_latest_src_10004.created_at) AS listing__created_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , listings_latest_src_10004.capacity AS listing__capacity_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 7dd5c3b39d..a046c27cbb 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 @@ -25,8 +25,8 @@ SELECT , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -37,8 +37,8 @@ SELECT , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -49,8 +49,8 @@ SELECT , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -62,8 +62,8 @@ SELECT , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -74,8 +74,8 @@ SELECT , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -86,8 +86,8 @@ SELECT , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 e240956212..fd0050700e 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 @@ -25,8 +25,8 @@ SELECT , EXTRACT(MONTH FROM ds) AS ds__extract_month , EXTRACT(WEEK FROM ds) AS ds__extract_week , EXTRACT(DAY FROM ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM ds) AS ds__extract_doy , ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', ds_partitioned) AS ds_partitioned__month @@ -37,8 +37,8 @@ SELECT , EXTRACT(MONTH FROM ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM ds_partitioned) AS ds_partitioned__extract_doy , paid_at AS paid_at__day , DATE_TRUNC('week', paid_at) AS paid_at__week , DATE_TRUNC('month', paid_at) AS paid_at__month @@ -49,8 +49,8 @@ SELECT , EXTRACT(MONTH FROM paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM paid_at) AS paid_at__extract_doy , is_instant AS booking__is_instant , ds AS booking__ds__day , DATE_TRUNC('week', ds) AS booking__ds__week @@ -62,8 +62,8 @@ SELECT , EXTRACT(MONTH FROM ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM ds) AS booking__ds__extract_week , EXTRACT(DAY FROM ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM ds) AS booking__ds__extract_doy , ds_partitioned AS booking__ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS booking__ds_partitioned__week , DATE_TRUNC('month', ds_partitioned) AS booking__ds_partitioned__month @@ -74,8 +74,8 @@ SELECT , EXTRACT(MONTH FROM ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM ds_partitioned) AS booking__ds_partitioned__extract_doy , paid_at AS booking__paid_at__day , DATE_TRUNC('week', paid_at) AS booking__paid_at__week , DATE_TRUNC('month', paid_at) AS booking__paid_at__month @@ -86,8 +86,8 @@ SELECT , EXTRACT(MONTH FROM paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM paid_at) AS booking__paid_at__extract_doy , listing_id AS listing , guest_id AS guest , host_id AS host diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_common_semantic_model__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_common_semantic_model__plan0.xml index 97591729c5..d5208d36cf 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_common_semantic_model__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_common_semantic_model__plan0.xml @@ -117,11 +117,11 @@ - + - + @@ -165,11 +165,11 @@ - + - + @@ -213,11 +213,11 @@ - + - + @@ -261,11 +261,11 @@ - + - + @@ -306,14 +306,14 @@ - - - - - - - - + + + + + + + + @@ -354,14 +354,14 @@ - - - - - - - - + + + + + + + + @@ -405,11 +405,11 @@ - + - + @@ -602,11 +602,11 @@ - + - + @@ -647,14 +647,14 @@ - - - - - - - - + + + + + + + + @@ -698,11 +698,11 @@ - + - + @@ -747,14 +747,14 @@ - - - - - - - - + + + + + + + + @@ -795,14 +795,14 @@ - - - - - - - - + + + + + + + + @@ -843,14 +843,14 @@ - - - - - - - - + + + + + + + + @@ -978,11 +978,11 @@ - + - + @@ -1026,11 +1026,11 @@ - + - + @@ -1074,11 +1074,11 @@ - + - + @@ -1122,11 +1122,11 @@ - + - + @@ -1167,14 +1167,14 @@ - - - - - - - - + + + + + + + + @@ -1215,14 +1215,14 @@ - - - - - - - - + + + + + + + + @@ -1266,11 +1266,11 @@ - + - + @@ -1463,11 +1463,11 @@ - + - + @@ -1508,14 +1508,14 @@ - - - - - - - - + + + + + + + + @@ -1559,11 +1559,11 @@ - + - + @@ -1608,14 +1608,14 @@ - - - - - - - - + + + + + + + + @@ -1656,14 +1656,14 @@ - - - - - - - - + + + + + + + + @@ -1704,14 +1704,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_compute_metrics_node__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_compute_metrics_node__plan0.xml index 34419b3c74..2660580f8d 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_compute_metrics_node__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_compute_metrics_node__plan0.xml @@ -185,11 +185,11 @@ - + - + @@ -230,14 +230,14 @@ - - - - - - - - + + + + + + + + @@ -281,11 +281,11 @@ - + - + @@ -330,14 +330,14 @@ - - - - - - - - + + + + + + + + @@ -378,14 +378,14 @@ - - - - - - - - + + + + + + + + @@ -426,14 +426,14 @@ - - - - - - - - + + + + + + + + @@ -540,11 +540,11 @@ - + - + @@ -585,14 +585,14 @@ - - - - - - - - + + + + + + + + @@ -645,14 +645,14 @@ - - - - - - - - + + + + + + + + @@ -693,14 +693,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.xml index 7fc551df80..543c84a88f 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_compute_metrics_node_ratio_from_multiple_semantic_models__plan0.xml @@ -196,11 +196,11 @@ - + - + @@ -244,11 +244,11 @@ - + - + @@ -292,11 +292,11 @@ - + - + @@ -340,11 +340,11 @@ - + - + @@ -385,14 +385,14 @@ - - - - - - - - + + + + + + + + @@ -433,14 +433,14 @@ - - - - - - - - + + + + + + + + @@ -484,11 +484,11 @@ - + - + @@ -681,11 +681,11 @@ - + - + @@ -726,14 +726,14 @@ - - - - - - - - + + + + + + + + @@ -777,11 +777,11 @@ - + - + @@ -826,14 +826,14 @@ - - - - - - - - + + + + + + + + @@ -874,14 +874,14 @@ - - - - - - - - + + + + + + + + @@ -922,14 +922,14 @@ - - - - - - - - + + + + + + + + @@ -1025,11 +1025,11 @@ - + - + @@ -1073,11 +1073,11 @@ - + - + @@ -1121,11 +1121,11 @@ - + - + @@ -1166,14 +1166,14 @@ - - - - - - - - + + + + + + + + @@ -1217,11 +1217,11 @@ - + - + @@ -1330,11 +1330,11 @@ - + - + @@ -1375,14 +1375,14 @@ - - - - - - - - + + + + + + + + @@ -1435,14 +1435,14 @@ - - - - - - - - + + + + + + + + @@ -1483,14 +1483,14 @@ - - - - - - - - + + + + + + + + @@ -1682,11 +1682,11 @@ - + - + @@ -1730,11 +1730,11 @@ - + - + @@ -1778,11 +1778,11 @@ - + - + @@ -1823,14 +1823,14 @@ - - - - - - - - + + + + + + + + @@ -1874,11 +1874,11 @@ - + - + @@ -1951,11 +1951,11 @@ - + - + @@ -1996,14 +1996,14 @@ - - - - - - - - + + + + + + + + @@ -2047,11 +2047,11 @@ - + - + @@ -2092,14 +2092,14 @@ - - - - - - - - + + + + + + + + @@ -2187,11 +2187,11 @@ - + - + @@ -2235,11 +2235,11 @@ - + - + @@ -2283,11 +2283,11 @@ - + - + @@ -2328,14 +2328,14 @@ - - - - - - - - + + + + + + + + @@ -2379,11 +2379,11 @@ - + - + @@ -2492,11 +2492,11 @@ - + - + @@ -2537,14 +2537,14 @@ - - - - - - - - + + + + + + + + @@ -2597,14 +2597,14 @@ - - - - - - - - + + + + + + + + @@ -2645,14 +2645,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.xml index 95cd7fa4a4..9caab95d18 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_compute_metrics_node_ratio_from_single_semantic_model__plan0.xml @@ -197,11 +197,11 @@ - + - + @@ -242,14 +242,14 @@ - - - - - - - - + + + + + + + + @@ -293,11 +293,11 @@ - + - + @@ -342,14 +342,14 @@ - - - - - - - - + + + + + + + + @@ -390,14 +390,14 @@ - - - - - - - - + + + + + + + + @@ -438,14 +438,14 @@ - - - - - - - - + + + + + + + + @@ -552,11 +552,11 @@ - + - + @@ -597,14 +597,14 @@ - - - - - - - - + + + + + + + + @@ -657,14 +657,14 @@ - - - - - - - - + + + + + + + + @@ -705,14 +705,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_compute_metrics_node_simple_expr__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_compute_metrics_node_simple_expr__plan0.xml index 9f5069ebd5..5510083da3 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_compute_metrics_node_simple_expr__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_compute_metrics_node_simple_expr__plan0.xml @@ -185,11 +185,11 @@ - + - + @@ -230,14 +230,14 @@ - - - - - - - - + + + + + + + + @@ -281,11 +281,11 @@ - + - + @@ -330,14 +330,14 @@ - - - - - - - - + + + + + + + + @@ -378,14 +378,14 @@ - - - - - - - - + + + + + + + + @@ -426,14 +426,14 @@ - - - - - - - - + + + + + + + + @@ -540,11 +540,11 @@ - + - + @@ -585,14 +585,14 @@ - - - - - - - - + + + + + + + + @@ -645,14 +645,14 @@ - - - - - - - - + + + + + + + + @@ -693,14 +693,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_constrain_time_range_node__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_constrain_time_range_node__plan0.xml index 4dbe746624..6832ab1d88 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_constrain_time_range_node__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_constrain_time_range_node__plan0.xml @@ -155,11 +155,11 @@ - + - + @@ -200,14 +200,14 @@ - - - - - - - - + + + + + + + + @@ -251,11 +251,11 @@ - + - + @@ -300,14 +300,14 @@ - - - - - - - - + + + + + + + + @@ -348,14 +348,14 @@ - - - - - - - - + + + + + + + + @@ -396,14 +396,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric__plan0.xml index 37c8fa43eb..6a4f2968b1 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric__plan0.xml @@ -90,11 +90,11 @@ - + - + @@ -138,11 +138,11 @@ - + - + @@ -186,11 +186,11 @@ - + - + @@ -255,11 +255,11 @@ - + - + @@ -300,14 +300,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_grain_to_date__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_grain_to_date__plan0.xml index 5dc0f7e4cf..05e69c0c94 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_grain_to_date__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_grain_to_date__plan0.xml @@ -90,11 +90,11 @@ - + - + @@ -138,11 +138,11 @@ - + - + @@ -186,11 +186,11 @@ - + - + @@ -255,11 +255,11 @@ - + - + @@ -300,14 +300,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_no_ds__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_no_ds__plan0.xml index ea17474430..c44152f685 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_no_ds__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_no_ds__plan0.xml @@ -74,11 +74,11 @@ - + - + @@ -122,11 +122,11 @@ - + - + @@ -170,11 +170,11 @@ - + - + @@ -239,11 +239,11 @@ - + - + @@ -284,14 +284,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_no_window__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_no_window__plan0.xml index e1894ad698..c246fb55db 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_no_window__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_no_window__plan0.xml @@ -90,11 +90,11 @@ - + - + @@ -138,11 +138,11 @@ - + - + @@ -186,11 +186,11 @@ - + - + @@ -255,11 +255,11 @@ - + - + @@ -300,14 +300,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_no_window_with_time_constraint__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_no_window_with_time_constraint__plan0.xml index 015b695d28..11c4a6ef28 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_no_window_with_time_constraint__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_no_window_with_time_constraint__plan0.xml @@ -91,11 +91,11 @@ - + - + @@ -139,11 +139,11 @@ - + - + @@ -187,11 +187,11 @@ - + - + @@ -252,11 +252,11 @@ - + - + @@ -300,11 +300,11 @@ - + - + @@ -348,11 +348,11 @@ - + - + @@ -417,11 +417,11 @@ - + - + @@ -462,14 +462,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_with_time_constraint__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_with_time_constraint__plan0.xml index dfb4ab1ff7..69648ea206 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_with_time_constraint__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_cumulative_metric_with_time_constraint__plan0.xml @@ -91,11 +91,11 @@ - + - + @@ -139,11 +139,11 @@ - + - + @@ -187,11 +187,11 @@ - + - + @@ -252,11 +252,11 @@ - + - + @@ -300,11 +300,11 @@ - + - + @@ -348,11 +348,11 @@ - + - + @@ -417,11 +417,11 @@ - + - + @@ -462,14 +462,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric__plan0.xml index dd9355e958..c527d74a06 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric__plan0.xml @@ -126,11 +126,11 @@ - + - + @@ -174,11 +174,11 @@ - + - + @@ -222,11 +222,11 @@ - + - + @@ -270,11 +270,11 @@ - + - + @@ -315,14 +315,14 @@ - - - - - - - - + + + + + + + + @@ -363,14 +363,14 @@ - - - - - - - - + + + + + + + + @@ -414,11 +414,11 @@ - + - + @@ -611,11 +611,11 @@ - + - + @@ -656,14 +656,14 @@ - - - - - - - - + + + + + + + + @@ -707,11 +707,11 @@ - + - + @@ -756,14 +756,14 @@ - - - - - - - - + + + + + + + + @@ -804,14 +804,14 @@ - - - - - - - - + + + + + + + + @@ -852,14 +852,14 @@ - - - - - - - - + + + + + + + + @@ -987,11 +987,11 @@ - + - + @@ -1035,11 +1035,11 @@ - + - + @@ -1083,11 +1083,11 @@ - + - + @@ -1131,11 +1131,11 @@ - + - + @@ -1176,14 +1176,14 @@ - - - - - - - - + + + + + + + + @@ -1224,14 +1224,14 @@ - - - - - - - - + + + + + + + + @@ -1275,11 +1275,11 @@ - + - + @@ -1472,11 +1472,11 @@ - + - + @@ -1517,14 +1517,14 @@ - - - - - - - - + + + + + + + + @@ -1568,11 +1568,11 @@ - + - + @@ -1617,14 +1617,14 @@ - - - - - - - - + + + + + + + + @@ -1665,14 +1665,14 @@ - - - - - - - - + + + + + + + + @@ -1713,14 +1713,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_to_grain__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_to_grain__plan0.xml index d630756d83..d35dd96911 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_to_grain__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_to_grain__plan0.xml @@ -126,11 +126,11 @@ - + - + @@ -174,11 +174,11 @@ - + - + @@ -222,11 +222,11 @@ - + - + @@ -270,11 +270,11 @@ - + - + @@ -315,14 +315,14 @@ - - - - - - - - + + + + + + + + @@ -363,14 +363,14 @@ - - - - - - - - + + + + + + + + @@ -414,11 +414,11 @@ - + - + @@ -611,11 +611,11 @@ - + - + @@ -656,14 +656,14 @@ - - - - - - - - + + + + + + + + @@ -707,11 +707,11 @@ - + - + @@ -756,14 +756,14 @@ - - - - - - - - + + + + + + + + @@ -804,14 +804,14 @@ - - - - - - - - + + + + + + + + @@ -852,14 +852,14 @@ - - - - - - - - + + + + + + + + @@ -991,11 +991,11 @@ - + - + @@ -1039,11 +1039,11 @@ - + - + @@ -1087,11 +1087,11 @@ - + - + @@ -1135,11 +1135,11 @@ - + - + @@ -1180,14 +1180,14 @@ - - - - - - - - + + + + + + + + @@ -1228,14 +1228,14 @@ - - - - - - - - + + + + + + + + @@ -1389,11 +1389,11 @@ - + - + @@ -1437,11 +1437,11 @@ - + - + @@ -1485,11 +1485,11 @@ - + - + @@ -1533,11 +1533,11 @@ - + - + @@ -1578,14 +1578,14 @@ - - - - - - - - + + + + + + + + @@ -1626,14 +1626,14 @@ - - - - - - - - + + + + + + + + @@ -1677,11 +1677,11 @@ - + - + @@ -1874,11 +1874,11 @@ - + - + @@ -1919,14 +1919,14 @@ - - - - - - - - + + + + + + + + @@ -1970,11 +1970,11 @@ - + - + @@ -2019,14 +2019,14 @@ - - - - - - - - + + + + + + + + @@ -2067,14 +2067,14 @@ - - - - - - - - + + + + + + + + @@ -2115,14 +2115,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_to_grain_and_granularity__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_to_grain_and_granularity__plan0.xml index 62931da30f..6b48478444 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_to_grain_and_granularity__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_to_grain_and_granularity__plan0.xml @@ -126,11 +126,11 @@ - + - + @@ -174,11 +174,11 @@ - + - + @@ -222,11 +222,11 @@ - + - + @@ -270,11 +270,11 @@ - + - + @@ -315,14 +315,14 @@ - - - - - - - - + + + + + + + + @@ -363,14 +363,14 @@ - - - - - - - - + + + + + + + + @@ -414,11 +414,11 @@ - + - + @@ -611,11 +611,11 @@ - + - + @@ -656,14 +656,14 @@ - - - - - - - - + + + + + + + + @@ -707,11 +707,11 @@ - + - + @@ -756,14 +756,14 @@ - - - - - - - - + + + + + + + + @@ -804,14 +804,14 @@ - - - - - - - - + + + + + + + + @@ -852,14 +852,14 @@ - - - - - - - - + + + + + + + + @@ -991,11 +991,11 @@ - + - + @@ -1039,11 +1039,11 @@ - + - + @@ -1087,11 +1087,11 @@ - + - + @@ -1135,11 +1135,11 @@ - + - + @@ -1180,14 +1180,14 @@ - - - - - - - - + + + + + + + + @@ -1228,14 +1228,14 @@ - - - - - - - - + + + + + + + + @@ -1389,11 +1389,11 @@ - + - + @@ -1437,11 +1437,11 @@ - + - + @@ -1485,11 +1485,11 @@ - + - + @@ -1533,11 +1533,11 @@ - + - + @@ -1578,14 +1578,14 @@ - - - - - - - - + + + + + + + + @@ -1626,14 +1626,14 @@ - - - - - - - - + + + + + + + + @@ -1677,11 +1677,11 @@ - + - + @@ -1874,11 +1874,11 @@ - + - + @@ -1919,14 +1919,14 @@ - - - - - - - - + + + + + + + + @@ -1970,11 +1970,11 @@ - + - + @@ -2019,14 +2019,14 @@ - - - - - - - - + + + + + + + + @@ -2067,14 +2067,14 @@ - - - - - - - - + + + + + + + + @@ -2115,14 +2115,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_window__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_window__plan0.xml index f0fad5688e..5b50744b8e 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_window__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_window__plan0.xml @@ -126,11 +126,11 @@ - + - + @@ -174,11 +174,11 @@ - + - + @@ -222,11 +222,11 @@ - + - + @@ -270,11 +270,11 @@ - + - + @@ -315,14 +315,14 @@ - - - - - - - - + + + + + + + + @@ -363,14 +363,14 @@ - - - - - - - - + + + + + + + + @@ -414,11 +414,11 @@ - + - + @@ -611,11 +611,11 @@ - + - + @@ -656,14 +656,14 @@ - - - - - - - - + + + + + + + + @@ -707,11 +707,11 @@ - + - + @@ -756,14 +756,14 @@ - - - - - - - - + + + + + + + + @@ -804,14 +804,14 @@ - - - - - - - - + + + + + + + + @@ -852,14 +852,14 @@ - - - - - - - - + + + + + + + + @@ -991,11 +991,11 @@ - + - + @@ -1039,11 +1039,11 @@ - + - + @@ -1087,11 +1087,11 @@ - + - + @@ -1135,11 +1135,11 @@ - + - + @@ -1180,14 +1180,14 @@ - - - - - - - - + + + + + + + + @@ -1228,14 +1228,14 @@ - - - - - - - - + + + + + + + + @@ -1389,11 +1389,11 @@ - + - + @@ -1437,11 +1437,11 @@ - + - + @@ -1485,11 +1485,11 @@ - + - + @@ -1533,11 +1533,11 @@ - + - + @@ -1578,14 +1578,14 @@ - - - - - - - - + + + + + + + + @@ -1626,14 +1626,14 @@ - - - - - - - - + + + + + + + + @@ -1677,11 +1677,11 @@ - + - + @@ -1874,11 +1874,11 @@ - + - + @@ -1919,14 +1919,14 @@ - - - - - - - - + + + + + + + + @@ -1970,11 +1970,11 @@ - + - + @@ -2019,14 +2019,14 @@ - - - - - - - - + + + + + + + + @@ -2067,14 +2067,14 @@ - - - - - - - - + + + + + + + + @@ -2115,14 +2115,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_window_and_granularity__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_window_and_granularity__plan0.xml index df2164f79a..ec4e79d22a 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_window_and_granularity__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_window_and_granularity__plan0.xml @@ -126,11 +126,11 @@ - + - + @@ -174,11 +174,11 @@ - + - + @@ -222,11 +222,11 @@ - + - + @@ -270,11 +270,11 @@ - + - + @@ -315,14 +315,14 @@ - - - - - - - - + + + + + + + + @@ -363,14 +363,14 @@ - - - - - - - - + + + + + + + + @@ -414,11 +414,11 @@ - + - + @@ -611,11 +611,11 @@ - + - + @@ -656,14 +656,14 @@ - - - - - - - - + + + + + + + + @@ -707,11 +707,11 @@ - + - + @@ -756,14 +756,14 @@ - - - - - - - - + + + + + + + + @@ -804,14 +804,14 @@ - - - - - - - - + + + + + + + + @@ -852,14 +852,14 @@ - - - - - - - - + + + + + + + + @@ -991,11 +991,11 @@ - + - + @@ -1039,11 +1039,11 @@ - + - + @@ -1087,11 +1087,11 @@ - + - + @@ -1135,11 +1135,11 @@ - + - + @@ -1180,14 +1180,14 @@ - - - - - - - - + + + + + + + + @@ -1228,14 +1228,14 @@ - - - - - - - - + + + + + + + + @@ -1389,11 +1389,11 @@ - + - + @@ -1437,11 +1437,11 @@ - + - + @@ -1485,11 +1485,11 @@ - + - + @@ -1533,11 +1533,11 @@ - + - + @@ -1578,14 +1578,14 @@ - - - - - - - - + + + + + + + + @@ -1626,14 +1626,14 @@ - - - - - - - - + + + + + + + + @@ -1677,11 +1677,11 @@ - + - + @@ -1874,11 +1874,11 @@ - + - + @@ -1919,14 +1919,14 @@ - - - - - - - - + + + + + + + + @@ -1970,11 +1970,11 @@ - + - + @@ -2019,14 +2019,14 @@ - - - - - - - - + + + + + + + + @@ -2067,14 +2067,14 @@ - - - - - - - - + + + + + + + + @@ -2115,14 +2115,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.xml index aec16b0428..1014811f94 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_window_and_offset_to_grain__plan0.xml @@ -130,11 +130,11 @@ - + - + @@ -178,11 +178,11 @@ - + - + @@ -226,11 +226,11 @@ - + - + @@ -274,11 +274,11 @@ - + - + @@ -319,14 +319,14 @@ - - - - - - - - + + + + + + + + @@ -367,14 +367,14 @@ - - - - - - - - + + + + + + + + @@ -528,11 +528,11 @@ - + - + @@ -576,11 +576,11 @@ - + - + @@ -624,11 +624,11 @@ - + - + @@ -672,11 +672,11 @@ - + - + @@ -717,14 +717,14 @@ - - - - - - - - + + + + + + + + @@ -765,14 +765,14 @@ - - - - - - - - + + + + + + + + @@ -816,11 +816,11 @@ - + - + @@ -1013,11 +1013,11 @@ - + - + @@ -1058,14 +1058,14 @@ - - - - - - - - + + + + + + + + @@ -1109,11 +1109,11 @@ - + - + @@ -1158,14 +1158,14 @@ - - - - - - - - + + + + + + + + @@ -1206,14 +1206,14 @@ - - - - - - - - + + + + + + + + @@ -1254,14 +1254,14 @@ - - - - - - - - + + + + + + + + @@ -1394,11 +1394,11 @@ - + - + @@ -1442,11 +1442,11 @@ - + - + @@ -1490,11 +1490,11 @@ - + - + @@ -1538,11 +1538,11 @@ - + - + @@ -1583,14 +1583,14 @@ - - - - - - - - + + + + + + + + @@ -1631,14 +1631,14 @@ - - - - - - - - + + + + + + + + @@ -1792,11 +1792,11 @@ - + - + @@ -1840,11 +1840,11 @@ - + - + @@ -1888,11 +1888,11 @@ - + - + @@ -1936,11 +1936,11 @@ - + - + @@ -1981,14 +1981,14 @@ - - - - - - - - + + + + + + + + @@ -2029,14 +2029,14 @@ - - - - - - - - + + + + + + + + @@ -2080,11 +2080,11 @@ - + - + @@ -2277,11 +2277,11 @@ - + - + @@ -2322,14 +2322,14 @@ - - - - - - - - + + + + + + + + @@ -2373,11 +2373,11 @@ - + - + @@ -2422,14 +2422,14 @@ - - - - - - - - + + + + + + + + @@ -2470,14 +2470,14 @@ - - - - - - - - + + + + + + + + @@ -2518,14 +2518,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.xml index 600937f011..db25cedbd2 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_metric_with_offset_window_and_offset_to_grain_and_granularity__plan0.xml @@ -130,11 +130,11 @@ - + - + @@ -178,11 +178,11 @@ - + - + @@ -226,11 +226,11 @@ - + - + @@ -274,11 +274,11 @@ - + - + @@ -319,14 +319,14 @@ - - - - - - - - + + + + + + + + @@ -367,14 +367,14 @@ - - - - - - - - + + + + + + + + @@ -528,11 +528,11 @@ - + - + @@ -576,11 +576,11 @@ - + - + @@ -624,11 +624,11 @@ - + - + @@ -672,11 +672,11 @@ - + - + @@ -717,14 +717,14 @@ - - - - - - - - + + + + + + + + @@ -765,14 +765,14 @@ - - - - - - - - + + + + + + + + @@ -816,11 +816,11 @@ - + - + @@ -1013,11 +1013,11 @@ - + - + @@ -1058,14 +1058,14 @@ - - - - - - - - + + + + + + + + @@ -1109,11 +1109,11 @@ - + - + @@ -1158,14 +1158,14 @@ - - - - - - - - + + + + + + + + @@ -1206,14 +1206,14 @@ - - - - - - - - + + + + + + + + @@ -1254,14 +1254,14 @@ - - - - - - - - + + + + + + + + @@ -1394,11 +1394,11 @@ - + - + @@ -1442,11 +1442,11 @@ - + - + @@ -1490,11 +1490,11 @@ - + - + @@ -1538,11 +1538,11 @@ - + - + @@ -1583,14 +1583,14 @@ - - - - - - - - + + + + + + + + @@ -1631,14 +1631,14 @@ - - - - - - - - + + + + + + + + @@ -1792,11 +1792,11 @@ - + - + @@ -1840,11 +1840,11 @@ - + - + @@ -1888,11 +1888,11 @@ - + - + @@ -1936,11 +1936,11 @@ - + - + @@ -1981,14 +1981,14 @@ - - - - - - - - + + + + + + + + @@ -2029,14 +2029,14 @@ - - - - - - - - + + + + + + + + @@ -2080,11 +2080,11 @@ - + - + @@ -2277,11 +2277,11 @@ - + - + @@ -2322,14 +2322,14 @@ - - - - - - - - + + + + + + + + @@ -2373,11 +2373,11 @@ - + - + @@ -2422,14 +2422,14 @@ - - - - - - - - + + + + + + + + @@ -2470,14 +2470,14 @@ - - - - - - - - + + + + + + + + @@ -2518,14 +2518,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_offset_cumulative_metric__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_offset_cumulative_metric__plan0.xml index 30d603cdd8..91104c0b88 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_offset_cumulative_metric__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_offset_cumulative_metric__plan0.xml @@ -107,11 +107,11 @@ - + - + @@ -155,11 +155,11 @@ - + - + @@ -203,11 +203,11 @@ - + - + @@ -251,11 +251,11 @@ - + - + @@ -296,14 +296,14 @@ - - - - - - - - + + + + + + + + @@ -344,14 +344,14 @@ - - - - - - - - + + + + + + + + @@ -509,11 +509,11 @@ - + - + @@ -557,11 +557,11 @@ - + - + @@ -605,11 +605,11 @@ - + - + @@ -653,11 +653,11 @@ - + - + @@ -698,14 +698,14 @@ - - - - - - - - + + + + + + + + @@ -746,14 +746,14 @@ - - - - - - - - + + + + + + + + @@ -793,11 +793,11 @@ - + - + @@ -951,11 +951,11 @@ - + - + @@ -999,11 +999,11 @@ - + - + @@ -1047,11 +1047,11 @@ - + - + @@ -1095,11 +1095,11 @@ - + - + @@ -1140,14 +1140,14 @@ - - - - - - - - + + + + + + + + @@ -1188,14 +1188,14 @@ - - - - - - - - + + + + + + + + @@ -1239,11 +1239,11 @@ - + - + @@ -1436,11 +1436,11 @@ - + - + @@ -1481,14 +1481,14 @@ - - - - - - - - + + + + + + + + @@ -1532,11 +1532,11 @@ - + - + @@ -1581,14 +1581,14 @@ - - - - - - - - + + + + + + + + @@ -1629,14 +1629,14 @@ - - - - - - - - + + + + + + + + @@ -1677,14 +1677,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_offset_metric_with_one_input_metric__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_offset_metric_with_one_input_metric__plan0.xml index 3a6e566a97..9ebd2f147b 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_offset_metric_with_one_input_metric__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_derived_offset_metric_with_one_input_metric__plan0.xml @@ -107,11 +107,11 @@ - + - + @@ -155,11 +155,11 @@ - + - + @@ -203,11 +203,11 @@ - + - + @@ -251,11 +251,11 @@ - + - + @@ -296,14 +296,14 @@ - - - - - - - - + + + + + + + + @@ -344,14 +344,14 @@ - - - - - - - - + + + + + + + + @@ -505,11 +505,11 @@ - + - + @@ -553,11 +553,11 @@ - + - + @@ -601,11 +601,11 @@ - + - + @@ -649,11 +649,11 @@ - + - + @@ -694,14 +694,14 @@ - - - - - - - - + + + + + + + + @@ -742,14 +742,14 @@ - - - - - - - - + + + + + + + + @@ -793,11 +793,11 @@ - + - + @@ -990,11 +990,11 @@ - + - + @@ -1035,14 +1035,14 @@ - - - - - - - - + + + + + + + + @@ -1086,11 +1086,11 @@ - + - + @@ -1135,14 +1135,14 @@ - - - - - - - - + + + + + + + + @@ -1183,14 +1183,14 @@ - - - - - - - - + + + + + + + + @@ -1231,14 +1231,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_distinct_values__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_distinct_values__plan0.xml index b0116367f0..919417183e 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_distinct_values__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_distinct_values__plan0.xml @@ -152,11 +152,11 @@ - + - + @@ -200,11 +200,11 @@ - + - + @@ -248,11 +248,11 @@ - + - + @@ -296,11 +296,11 @@ - + - + @@ -341,14 +341,14 @@ - - - - - - - - + + + + + + + + @@ -389,14 +389,14 @@ - - - - - - - - + + + + + + + + @@ -440,11 +440,11 @@ - + - + @@ -637,11 +637,11 @@ - + - + @@ -682,14 +682,14 @@ - - - - - - - - + + + + + + + + @@ -733,11 +733,11 @@ - + - + @@ -782,14 +782,14 @@ - - - - - - - - + + + + + + + + @@ -830,14 +830,14 @@ - - - - - - - - + + + + + + + + @@ -878,14 +878,14 @@ - - - - - - - - + + + + + + + + @@ -981,11 +981,11 @@ - + - + @@ -1029,11 +1029,11 @@ - + - + @@ -1077,11 +1077,11 @@ - + - + @@ -1122,14 +1122,14 @@ - - - - - - - - + + + + + + + + @@ -1173,11 +1173,11 @@ - + - + @@ -1286,11 +1286,11 @@ - + - + @@ -1331,14 +1331,14 @@ - - - - - - - - + + + + + + + + @@ -1391,14 +1391,14 @@ - - - - - - - - + + + + + + + + @@ -1439,14 +1439,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_filter_node__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_filter_node__plan0.xml index fcfe3e55b0..aba5cdf553 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_filter_node__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_filter_node__plan0.xml @@ -116,11 +116,11 @@ - + - + @@ -161,14 +161,14 @@ - - - - - - - - + + + + + + + + @@ -212,11 +212,11 @@ - + - + @@ -261,14 +261,14 @@ - - - - - - - - + + + + + + + + @@ -309,14 +309,14 @@ - - - - - - - - + + + + + + + + @@ -357,14 +357,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_filter_with_where_constraint_node__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_filter_with_where_constraint_node__plan0.xml index 3588eccfef..81fcf21f1b 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_filter_with_where_constraint_node__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_filter_with_where_constraint_node__plan0.xml @@ -134,11 +134,11 @@ - + - + @@ -179,14 +179,14 @@ - - - - - - - - + + + + + + + + @@ -230,11 +230,11 @@ - + - + @@ -279,14 +279,14 @@ - - - - - - - - + + + + + + + + @@ -327,14 +327,14 @@ - - - - - - - - + + + + + + + + @@ -375,14 +375,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_filter_with_where_constraint_on_join_dim__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_filter_with_where_constraint_on_join_dim__plan0.xml index a809f0c726..ea3ee863e4 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_filter_with_where_constraint_on_join_dim__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_filter_with_where_constraint_on_join_dim__plan0.xml @@ -173,11 +173,11 @@ - + - + @@ -221,11 +221,11 @@ - + - + @@ -269,11 +269,11 @@ - + - + @@ -317,11 +317,11 @@ - + - + @@ -362,14 +362,14 @@ - - - - - - - - + + + + + + + + @@ -410,14 +410,14 @@ - - - - - - - - + + + + + + + + @@ -461,11 +461,11 @@ - + - + @@ -658,11 +658,11 @@ - + - + @@ -703,14 +703,14 @@ - - - - - - - - + + + + + + + + @@ -754,11 +754,11 @@ - + - + @@ -803,14 +803,14 @@ - - - - - - - - + + + + + + + + @@ -851,14 +851,14 @@ - - - - - - - - + + + + + + + + @@ -899,14 +899,14 @@ - - - - - - - - + + + + + + + + @@ -1002,11 +1002,11 @@ - + - + @@ -1050,11 +1050,11 @@ - + - + @@ -1098,11 +1098,11 @@ - + - + @@ -1143,14 +1143,14 @@ - - - - - - - - + + + + + + + + @@ -1194,11 +1194,11 @@ - + - + @@ -1307,11 +1307,11 @@ - + - + @@ -1352,14 +1352,14 @@ - - - - - - - - + + + + + + + + @@ -1412,14 +1412,14 @@ - - - - - - - - + + + + + + + + @@ -1460,14 +1460,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_join_to_scd_dimension__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_join_to_scd_dimension__plan0.xml index 9cc83dfb26..79159f5015 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_join_to_scd_dimension__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_join_to_scd_dimension__plan0.xml @@ -181,11 +181,11 @@ - + - + @@ -229,11 +229,11 @@ - + - + @@ -277,11 +277,11 @@ - + - + @@ -325,11 +325,11 @@ - + - + @@ -370,14 +370,14 @@ - - - - - - - - + + + + + + + + @@ -418,14 +418,14 @@ - - - - - - - - + + + + + + + + @@ -469,11 +469,11 @@ - + - + @@ -610,11 +610,11 @@ - + - + @@ -655,14 +655,14 @@ - - - - - - - - + + + + + + + + @@ -706,11 +706,11 @@ - + - + @@ -755,14 +755,14 @@ - - - - - - - - + + + + + + + + @@ -803,14 +803,14 @@ - - - - - - - - + + + + + + + + @@ -851,14 +851,14 @@ - - - - - - - - + + + + + + + + @@ -967,14 +967,14 @@ - - - - - - - - + + + + + + + + @@ -1015,14 +1015,14 @@ - - - - - - - - + + + + + + + + @@ -1075,14 +1075,14 @@ - - - - - - - - + + + + + + + + @@ -1123,14 +1123,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_join_to_time_spine_node_with_offset_to_grain__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_join_to_time_spine_node_with_offset_to_grain__plan0.xml index deb1256c84..6c3d99f0d6 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_join_to_time_spine_node_with_offset_to_grain__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_join_to_time_spine_node_with_offset_to_grain__plan0.xml @@ -144,11 +144,11 @@ - + - + @@ -192,11 +192,11 @@ - + - + @@ -240,11 +240,11 @@ - + - + @@ -288,11 +288,11 @@ - + - + @@ -333,14 +333,14 @@ - - - - - - - - + + + + + + + + @@ -381,14 +381,14 @@ - - - - - - - - + + + + + + + + @@ -432,11 +432,11 @@ - + - + @@ -629,11 +629,11 @@ - + - + @@ -674,14 +674,14 @@ - - - - - - - - + + + + + + + + @@ -725,11 +725,11 @@ - + - + @@ -774,14 +774,14 @@ - - - - - - - - + + + + + + + + @@ -822,14 +822,14 @@ - - - - - - - - + + + + + + + + @@ -870,14 +870,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_join_to_time_spine_node_with_offset_window__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_join_to_time_spine_node_with_offset_window__plan0.xml index deb1256c84..6c3d99f0d6 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_join_to_time_spine_node_with_offset_window__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_join_to_time_spine_node_with_offset_window__plan0.xml @@ -144,11 +144,11 @@ - + - + @@ -192,11 +192,11 @@ - + - + @@ -240,11 +240,11 @@ - + - + @@ -288,11 +288,11 @@ - + - + @@ -333,14 +333,14 @@ - - - - - - - - + + + + + + + + @@ -381,14 +381,14 @@ - - - - - - - - + + + + + + + + @@ -432,11 +432,11 @@ - + - + @@ -629,11 +629,11 @@ - + - + @@ -674,14 +674,14 @@ - - - - - - - - + + + + + + + + @@ -725,11 +725,11 @@ - + - + @@ -774,14 +774,14 @@ - - - - - - - - + + + + + + + + @@ -822,14 +822,14 @@ - - - - - - - - + + + + + + + + @@ -870,14 +870,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_join_to_time_spine_node_without_offset__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_join_to_time_spine_node_without_offset__plan0.xml index deb1256c84..6c3d99f0d6 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_join_to_time_spine_node_without_offset__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_join_to_time_spine_node_without_offset__plan0.xml @@ -144,11 +144,11 @@ - + - + @@ -192,11 +192,11 @@ - + - + @@ -240,11 +240,11 @@ - + - + @@ -288,11 +288,11 @@ - + - + @@ -333,14 +333,14 @@ - - - - - - - - + + + + + + + + @@ -381,14 +381,14 @@ - - - - - - - - + + + + + + + + @@ -432,11 +432,11 @@ - + - + @@ -629,11 +629,11 @@ - + - + @@ -674,14 +674,14 @@ - - - - - - - - + + + + + + + + @@ -725,11 +725,11 @@ - + - + @@ -774,14 +774,14 @@ - - - - - - - - + + + + + + + + @@ -822,14 +822,14 @@ - - - - - - - - + + + + + + + + @@ -870,14 +870,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_limit_rows__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_limit_rows__plan0.xml index 0c0b947455..af7fd91535 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_limit_rows__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_limit_rows__plan0.xml @@ -103,11 +103,11 @@ - + - + @@ -151,11 +151,11 @@ - + - + @@ -199,11 +199,11 @@ - + - + @@ -247,11 +247,11 @@ - + - + @@ -292,14 +292,14 @@ - - - - - - - - + + + + + + + + @@ -340,14 +340,14 @@ - - - - - - - - + + + + + + + + @@ -391,11 +391,11 @@ - + - + @@ -588,11 +588,11 @@ - + - + @@ -633,14 +633,14 @@ - - - - - - - - + + + + + + + + @@ -684,11 +684,11 @@ - + - + @@ -733,14 +733,14 @@ - - - - - - - - + + + + + + + + @@ -781,14 +781,14 @@ - - - - - - - - + + + + + + + + @@ -829,14 +829,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_local_dimension_using_local_entity__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_local_dimension_using_local_entity__plan0.xml index 90cd7de9ba..e0c553b7cb 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_local_dimension_using_local_entity__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_local_dimension_using_local_entity__plan0.xml @@ -90,11 +90,11 @@ - + - + @@ -138,11 +138,11 @@ - + - + @@ -186,11 +186,11 @@ - + - + @@ -231,14 +231,14 @@ - - - - - - - - + + + + + + + + @@ -282,11 +282,11 @@ - + - + @@ -395,11 +395,11 @@ - + - + @@ -440,14 +440,14 @@ - - - - - - - - + + + + + + + + @@ -500,14 +500,14 @@ - - - - - - - - + + + + + + + + @@ -548,14 +548,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_measure_aggregation_node__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_measure_aggregation_node__plan0.xml index aa58e56a77..9927bd6230 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_measure_aggregation_node__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_measure_aggregation_node__plan0.xml @@ -149,11 +149,11 @@ - + - + @@ -194,14 +194,14 @@ - - - - - - - - + + + + + + + + @@ -245,11 +245,11 @@ - + - + @@ -294,14 +294,14 @@ - - - - - - - - + + + + + + + + @@ -342,14 +342,14 @@ - - - - - - - - + + + + + + + + @@ -390,14 +390,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_measure_constraint__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_measure_constraint__plan0.xml index 2d8e684ff8..1b93709a92 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_measure_constraint__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_measure_constraint__plan0.xml @@ -219,11 +219,11 @@ - + - + @@ -267,11 +267,11 @@ - + - + @@ -315,11 +315,11 @@ - + - + @@ -363,11 +363,11 @@ - + - + @@ -408,14 +408,14 @@ - - - - - - - - + + + + + + + + @@ -456,14 +456,14 @@ - - - - - - - - + + + + + + + + @@ -507,11 +507,11 @@ - + - + @@ -704,11 +704,11 @@ - + - + @@ -749,14 +749,14 @@ - - - - - - - - + + + + + + + + @@ -800,11 +800,11 @@ - + - + @@ -849,14 +849,14 @@ - - - - - - - - + + + + + + + + @@ -897,14 +897,14 @@ - - - - - - - - + + + + + + + + @@ -945,14 +945,14 @@ - - - - - - - - + + + + + + + + @@ -1048,11 +1048,11 @@ - + - + @@ -1096,11 +1096,11 @@ - + - + @@ -1144,11 +1144,11 @@ - + - + @@ -1189,14 +1189,14 @@ - - - - - - - - + + + + + + + + @@ -1240,11 +1240,11 @@ - + - + @@ -1353,11 +1353,11 @@ - + - + @@ -1398,14 +1398,14 @@ - - - - - - - - + + + + + + + + @@ -1458,14 +1458,14 @@ - - - - - - - - + + + + + + + + @@ -1506,14 +1506,14 @@ - - - - - - - - + + + + + + + + @@ -1728,11 +1728,11 @@ - + - + @@ -1776,11 +1776,11 @@ - + - + @@ -1824,11 +1824,11 @@ - + - + @@ -1872,11 +1872,11 @@ - + - + @@ -1917,14 +1917,14 @@ - - - - - - - - + + + + + + + + @@ -1965,14 +1965,14 @@ - - - - - - - - + + + + + + + + @@ -2016,11 +2016,11 @@ - + - + @@ -2213,11 +2213,11 @@ - + - + @@ -2258,14 +2258,14 @@ - - - - - - - - + + + + + + + + @@ -2309,11 +2309,11 @@ - + - + @@ -2358,14 +2358,14 @@ - - - - - - - - + + + + + + + + @@ -2406,14 +2406,14 @@ - - - - - - - - + + + + + + + + @@ -2454,14 +2454,14 @@ - - - - - - - - + + + + + + + + @@ -2557,11 +2557,11 @@ - + - + @@ -2605,11 +2605,11 @@ - + - + @@ -2653,11 +2653,11 @@ - + - + @@ -2698,14 +2698,14 @@ - - - - - - - - + + + + + + + + @@ -2749,11 +2749,11 @@ - + - + @@ -2862,11 +2862,11 @@ - + - + @@ -2907,14 +2907,14 @@ - - - - - - - - + + + + + + + + @@ -2967,14 +2967,14 @@ - - - - - - - - + + + + + + + + @@ -3015,14 +3015,14 @@ - - - - - - - - + + + + + + + + @@ -3154,11 +3154,11 @@ - + - + @@ -3202,11 +3202,11 @@ - + - + @@ -3250,11 +3250,11 @@ - + - + @@ -3298,11 +3298,11 @@ - + - + @@ -3343,14 +3343,14 @@ - - - - - - - - + + + + + + + + @@ -3391,14 +3391,14 @@ - - - - - - - - + + + + + + + + @@ -3442,11 +3442,11 @@ - + - + @@ -3639,11 +3639,11 @@ - + - + @@ -3684,14 +3684,14 @@ - - - - - - - - + + + + + + + + @@ -3735,11 +3735,11 @@ - + - + @@ -3784,14 +3784,14 @@ - - - - - - - - + + + + + + + + @@ -3832,14 +3832,14 @@ - - - - - - - - + + + + + + + + @@ -3880,14 +3880,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_measure_constraint_with_reused_measure__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_measure_constraint_with_reused_measure__plan0.xml index abe224335b..f3d68efd51 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_measure_constraint_with_reused_measure__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_measure_constraint_with_reused_measure__plan0.xml @@ -163,11 +163,11 @@ - + - + @@ -211,11 +211,11 @@ - + - + @@ -259,11 +259,11 @@ - + - + @@ -307,11 +307,11 @@ - + - + @@ -352,14 +352,14 @@ - - - - - - - - + + + + + + + + @@ -400,14 +400,14 @@ - - - - - - - - + + + + + + + + @@ -451,11 +451,11 @@ - + - + @@ -648,11 +648,11 @@ - + - + @@ -693,14 +693,14 @@ - - - - - - - - + + + + + + + + @@ -744,11 +744,11 @@ - + - + @@ -793,14 +793,14 @@ - - - - - - - - + + + + + + + + @@ -841,14 +841,14 @@ - - - - - - - - + + + + + + + + @@ -889,14 +889,14 @@ - - - - - - - - + + + + + + + + @@ -1026,11 +1026,11 @@ - + - + @@ -1074,11 +1074,11 @@ - + - + @@ -1122,11 +1122,11 @@ - + - + @@ -1170,11 +1170,11 @@ - + - + @@ -1215,14 +1215,14 @@ - - - - - - - - + + + + + + + + @@ -1263,14 +1263,14 @@ - - - - - - - - + + + + + + + + @@ -1314,11 +1314,11 @@ - + - + @@ -1511,11 +1511,11 @@ - + - + @@ -1556,14 +1556,14 @@ - - - - - - - - + + + + + + + + @@ -1607,11 +1607,11 @@ - + - + @@ -1656,14 +1656,14 @@ - - - - - - - - + + + + + + + + @@ -1704,14 +1704,14 @@ - - - - - - - - + + + + + + + + @@ -1752,14 +1752,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_measure_constraint_with_single_expr_and_alias__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_measure_constraint_with_single_expr_and_alias__plan0.xml index 05c1e14185..7380884768 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_measure_constraint_with_single_expr_and_alias__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_measure_constraint_with_single_expr_and_alias__plan0.xml @@ -140,11 +140,11 @@ - + - + @@ -188,11 +188,11 @@ - + - + @@ -236,11 +236,11 @@ - + - + @@ -284,11 +284,11 @@ - + - + @@ -329,14 +329,14 @@ - - - - - - - - + + + + + + + + @@ -377,14 +377,14 @@ - - - - - - - - + + + + + + + + @@ -428,11 +428,11 @@ - + - + @@ -625,11 +625,11 @@ - + - + @@ -670,14 +670,14 @@ - - - - - - - - + + + + + + + + @@ -721,11 +721,11 @@ - + - + @@ -770,14 +770,14 @@ - - - - - - - - + + + + + + + + @@ -818,14 +818,14 @@ - - - - - - - - + + + + + + + + @@ -866,14 +866,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.xml index ea838d4c06..7b5ea95fa3 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_metric_with_measures_from_multiple_sources_no_dimensions__plan0.xml @@ -102,11 +102,11 @@ - + - + @@ -150,11 +150,11 @@ - + - + @@ -198,11 +198,11 @@ - + - + @@ -246,11 +246,11 @@ - + - + @@ -291,14 +291,14 @@ - - - - - - - - + + + + + + + + @@ -339,14 +339,14 @@ - - - - - - - - + + + + + + + + @@ -390,11 +390,11 @@ - + - + @@ -587,11 +587,11 @@ - + - + @@ -632,14 +632,14 @@ - - - - - - - - + + + + + + + + @@ -683,11 +683,11 @@ - + - + @@ -732,14 +732,14 @@ - - - - - - - - + + + + + + + + @@ -780,14 +780,14 @@ - - - - - - - - + + + + + + + + @@ -828,14 +828,14 @@ - - - - - - - - + + + + + + + + @@ -947,11 +947,11 @@ - + - + @@ -995,11 +995,11 @@ - + - + @@ -1043,11 +1043,11 @@ - + - + @@ -1088,14 +1088,14 @@ - - - - - - - - + + + + + + + + @@ -1139,11 +1139,11 @@ - + - + @@ -1252,11 +1252,11 @@ - + - + @@ -1297,14 +1297,14 @@ - - - - - - - - + + + + + + + + @@ -1357,14 +1357,14 @@ - - - - - - - - + + + + + + + + @@ -1405,14 +1405,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multi_hop_through_scd_dimension__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multi_hop_through_scd_dimension__plan0.xml index 0f3e05153d..63e2148484 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multi_hop_through_scd_dimension__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multi_hop_through_scd_dimension__plan0.xml @@ -160,11 +160,11 @@ - + - + @@ -208,11 +208,11 @@ - + - + @@ -256,11 +256,11 @@ - + - + @@ -304,11 +304,11 @@ - + - + @@ -349,14 +349,14 @@ - - - - - - - - + + + + + + + + @@ -397,14 +397,14 @@ - - - - - - - - + + + + + + + + @@ -448,11 +448,11 @@ - + - + @@ -589,11 +589,11 @@ - + - + @@ -634,14 +634,14 @@ - - - - - - - - + + + + + + + + @@ -685,11 +685,11 @@ - + - + @@ -734,14 +734,14 @@ - - - - - - - - + + + + + + + + @@ -782,14 +782,14 @@ - - - - - - - - + + + + + + + + @@ -830,14 +830,14 @@ - - - - - - - - + + + + + + + + @@ -949,11 +949,11 @@ - + - + @@ -997,11 +997,11 @@ - + - + @@ -1042,14 +1042,14 @@ - - - - - - - - + + + + + + + + @@ -1090,14 +1090,14 @@ - - - - - - - - + + + + + + + + @@ -1141,11 +1141,11 @@ - + - + @@ -1237,14 +1237,14 @@ - - - - - - - - + + + + + + + + @@ -1285,14 +1285,14 @@ - - - - - - - - + + + + + + + + @@ -1345,14 +1345,14 @@ - - - - - - - - + + + + + + + + @@ -1393,14 +1393,14 @@ - - - - - - - - + + + + + + + + @@ -1507,11 +1507,11 @@ - + - + @@ -1555,11 +1555,11 @@ - + - + @@ -1620,11 +1620,11 @@ - + - + @@ -1672,11 +1672,11 @@ - + - + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multi_hop_to_scd_dimension__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multi_hop_to_scd_dimension__plan0.xml index d506931ba5..a013e8d8c1 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multi_hop_to_scd_dimension__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multi_hop_to_scd_dimension__plan0.xml @@ -160,11 +160,11 @@ - + - + @@ -208,11 +208,11 @@ - + - + @@ -256,11 +256,11 @@ - + - + @@ -304,11 +304,11 @@ - + - + @@ -349,14 +349,14 @@ - - - - - - - - + + + + + + + + @@ -397,14 +397,14 @@ - - - - - - - - + + + + + + + + @@ -448,11 +448,11 @@ - + - + @@ -589,11 +589,11 @@ - + - + @@ -634,14 +634,14 @@ - - - - - - - - + + + + + + + + @@ -685,11 +685,11 @@ - + - + @@ -734,14 +734,14 @@ - - - - - - - - + + + + + + + + @@ -782,14 +782,14 @@ - - - - - - - - + + + + + + + + @@ -830,14 +830,14 @@ - - - - - - - - + + + + + + + + @@ -949,14 +949,14 @@ - - - - - - - - + + + + + + + + @@ -997,14 +997,14 @@ - - - - - - - - + + + + + + + + @@ -1151,11 +1151,11 @@ - + - + @@ -1199,11 +1199,11 @@ - + - + @@ -1244,14 +1244,14 @@ - - - - - - - - + + + + + + + + @@ -1292,14 +1292,14 @@ - - - - - - - - + + + + + + + + @@ -1357,14 +1357,14 @@ - - - - - - - - + + + + + + + + @@ -1405,14 +1405,14 @@ - - - - - - - - + + + + + + + + @@ -1457,14 +1457,14 @@ - - - - - - - - + + + + + + + + @@ -1505,14 +1505,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multi_join_node__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multi_join_node__plan0.xml index 86c66d0258..5fc98dd938 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multi_join_node__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multi_join_node__plan0.xml @@ -153,11 +153,11 @@ - + - + @@ -198,14 +198,14 @@ - - - - - - - - + + + + + + + + @@ -249,11 +249,11 @@ - + - + @@ -298,14 +298,14 @@ - - - - - - - - + + + + + + + + @@ -346,14 +346,14 @@ - - - - - - - - + + + + + + + + @@ -394,14 +394,14 @@ - - - - - - - - + + + + + + + + @@ -508,11 +508,11 @@ - + - + @@ -553,14 +553,14 @@ - - - - - - - - + + + + + + + + @@ -613,14 +613,14 @@ - - - - - - - - + + + + + + + + @@ -661,14 +661,14 @@ - - - - - - - - + + + + + + + + @@ -775,11 +775,11 @@ - + - + @@ -820,14 +820,14 @@ - - - - - - - - + + + + + + + + @@ -880,14 +880,14 @@ - - - - - - - - + + + + + + + + @@ -928,14 +928,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multihop_node__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multihop_node__plan0.xml index 8646094e2a..4a1df37c68 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multihop_node__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multihop_node__plan0.xml @@ -140,11 +140,11 @@ - + - + @@ -188,11 +188,11 @@ - + - + @@ -233,14 +233,14 @@ - - - - - - - - + + + + + + + + @@ -284,11 +284,11 @@ - + - + @@ -332,11 +332,11 @@ - + - + @@ -402,14 +402,14 @@ - - - - - - - - + + + + + + + + @@ -453,11 +453,11 @@ - + - + @@ -502,14 +502,14 @@ - - - - - - - - + + + + + + + + @@ -550,14 +550,14 @@ - - - - - - - - + + + + + + + + @@ -641,11 +641,11 @@ - + - + @@ -686,14 +686,14 @@ - - - - - - - - + + + + + + + + @@ -734,14 +734,14 @@ - - - - - - - - + + + + + + + + @@ -825,14 +825,14 @@ - - - - - - - - + + + + + + + + @@ -877,14 +877,14 @@ - - - - - - - - + + + + + + + + @@ -981,11 +981,11 @@ - + - + @@ -1026,14 +1026,14 @@ - - - - - - - - + + + + + + + + @@ -1107,14 +1107,14 @@ - - - - - - - - + + + + + + + + @@ -1163,14 +1163,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multiple_metrics_no_dimensions__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multiple_metrics_no_dimensions__plan0.xml index 91382c7f6c..3ad305b7ab 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multiple_metrics_no_dimensions__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_multiple_metrics_no_dimensions__plan0.xml @@ -94,11 +94,11 @@ - + - + @@ -142,11 +142,11 @@ - + - + @@ -190,11 +190,11 @@ - + - + @@ -238,11 +238,11 @@ - + - + @@ -283,14 +283,14 @@ - - - - - - - - + + + + + + + + @@ -334,11 +334,11 @@ - + - + @@ -382,11 +382,11 @@ - + - + @@ -519,11 +519,11 @@ - + - + @@ -567,11 +567,11 @@ - + - + @@ -615,11 +615,11 @@ - + - + @@ -663,11 +663,11 @@ - + - + @@ -708,14 +708,14 @@ - - - - - - - - + + + + + + + + @@ -756,14 +756,14 @@ - - - - - - - - + + + + + + + + @@ -807,11 +807,11 @@ - + - + @@ -1004,11 +1004,11 @@ - + - + @@ -1049,14 +1049,14 @@ - - - - - - - - + + + + + + + + @@ -1100,11 +1100,11 @@ - + - + @@ -1149,14 +1149,14 @@ - - - - - - - - + + + + + + + + @@ -1197,14 +1197,14 @@ - - - - - - - - + + + + + + + + @@ -1245,14 +1245,14 @@ - - - - - - - - + + + + + + + + @@ -1366,11 +1366,11 @@ - + - + @@ -1414,11 +1414,11 @@ - + - + @@ -1462,11 +1462,11 @@ - + - + @@ -1507,14 +1507,14 @@ - - - - - - - - + + + + + + + + @@ -1558,11 +1558,11 @@ - + - + @@ -1659,11 +1659,11 @@ - + - + @@ -1707,11 +1707,11 @@ - + - + @@ -1755,11 +1755,11 @@ - + - + @@ -1800,14 +1800,14 @@ - - - - - - - - + + + + + + + + @@ -1851,11 +1851,11 @@ - + - + @@ -1964,11 +1964,11 @@ - + - + @@ -2009,14 +2009,14 @@ - - - - - - - - + + + + + + + + @@ -2069,14 +2069,14 @@ - - - - - - - - + + + + + + + + @@ -2117,14 +2117,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_nested_derived_metric__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_nested_derived_metric__plan0.xml index dbf66e4cac..5a9299184c 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_nested_derived_metric__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_nested_derived_metric__plan0.xml @@ -172,11 +172,11 @@ - + - + @@ -220,11 +220,11 @@ - + - + @@ -268,11 +268,11 @@ - + - + @@ -316,11 +316,11 @@ - + - + @@ -361,14 +361,14 @@ - - - - - - - - + + + + + + + + @@ -409,14 +409,14 @@ - - - - - - - - + + + + + + + + @@ -460,11 +460,11 @@ - + - + @@ -657,11 +657,11 @@ - + - + @@ -702,14 +702,14 @@ - - - - - - - - + + + + + + + + @@ -753,11 +753,11 @@ - + - + @@ -802,14 +802,14 @@ - - - - - - - - + + + + + + + + @@ -850,14 +850,14 @@ - - - - - - - - + + + + + + + + @@ -898,14 +898,14 @@ - - - - - - - - + + + + + + + + @@ -1033,11 +1033,11 @@ - + - + @@ -1081,11 +1081,11 @@ - + - + @@ -1129,11 +1129,11 @@ - + - + @@ -1177,11 +1177,11 @@ - + - + @@ -1222,14 +1222,14 @@ - - - - - - - - + + + + + + + + @@ -1270,14 +1270,14 @@ - - - - - - - - + + + + + + + + @@ -1321,11 +1321,11 @@ - + - + @@ -1518,11 +1518,11 @@ - + - + @@ -1563,14 +1563,14 @@ - - - - - - - - + + + + + + + + @@ -1614,11 +1614,11 @@ - + - + @@ -1663,14 +1663,14 @@ - - - - - - - - + + + + + + + + @@ -1711,14 +1711,14 @@ - - - - - - - - + + + + + + + + @@ -1759,14 +1759,14 @@ - - - - - - - - + + + + + + + + @@ -1896,11 +1896,11 @@ - + - + @@ -1944,11 +1944,11 @@ - + - + @@ -1992,11 +1992,11 @@ - + - + @@ -2040,11 +2040,11 @@ - + - + @@ -2085,14 +2085,14 @@ - - - - - - - - + + + + + + + + @@ -2133,14 +2133,14 @@ - - - - - - - - + + + + + + + + @@ -2184,11 +2184,11 @@ - + - + @@ -2381,11 +2381,11 @@ - + - + @@ -2426,14 +2426,14 @@ - - - - - - - - + + + + + + + + @@ -2477,11 +2477,11 @@ - + - + @@ -2526,14 +2526,14 @@ - - - - - - - - + + + + + + + + @@ -2574,14 +2574,14 @@ - - - - - - - - + + + + + + + + @@ -2622,14 +2622,14 @@ - - - - - - - - + + + + + + + + @@ -2757,11 +2757,11 @@ - + - + @@ -2805,11 +2805,11 @@ - + - + @@ -2853,11 +2853,11 @@ - + - + @@ -2901,11 +2901,11 @@ - + - + @@ -2946,14 +2946,14 @@ - - - - - - - - + + + + + + + + @@ -2994,14 +2994,14 @@ - - - - - - - - + + + + + + + + @@ -3045,11 +3045,11 @@ - + - + @@ -3242,11 +3242,11 @@ - + - + @@ -3287,14 +3287,14 @@ - - - - - - - - + + + + + + + + @@ -3338,11 +3338,11 @@ - + - + @@ -3387,14 +3387,14 @@ - - - - - - - - + + + + + + + + @@ -3435,14 +3435,14 @@ - - - - - - - - + + + + + + + + @@ -3483,14 +3483,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_order_by_node__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_order_by_node__plan0.xml index dd1374fbd4..0069ee8ee7 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_order_by_node__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_order_by_node__plan0.xml @@ -191,11 +191,11 @@ - + - + @@ -236,14 +236,14 @@ - - - - - - - - + + + + + + + + @@ -287,11 +287,11 @@ - + - + @@ -336,14 +336,14 @@ - - - - - - - - + + + + + + + + @@ -384,14 +384,14 @@ - - - - - - - - + + + + + + + + @@ -432,14 +432,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_partitioned_join__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_partitioned_join__plan0.xml index 8b5700c40e..6fbc2644c7 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_partitioned_join__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_partitioned_join__plan0.xml @@ -140,11 +140,11 @@ - + - + @@ -188,11 +188,11 @@ - + - + @@ -233,14 +233,14 @@ - - - - - - - - + + + + + + + + @@ -281,14 +281,14 @@ - - - - - - - - + + + + + + + + @@ -332,11 +332,11 @@ - + - + @@ -413,11 +413,11 @@ - + - + @@ -458,14 +458,14 @@ - - - - - - - - + + + + + + + + @@ -510,14 +510,14 @@ - - - - - - - - + + + + + + + + @@ -558,14 +558,14 @@ - - - - - - - - + + + + + + + + @@ -657,11 +657,11 @@ - + - + @@ -702,14 +702,14 @@ - - - - - - - - + + + + + + + + @@ -750,14 +750,14 @@ - - - - - - - - + + + + + + + + @@ -805,11 +805,11 @@ - + - + @@ -850,14 +850,14 @@ - - - - - - - - + + + + + + + + @@ -898,14 +898,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_semi_additive_join_node__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_semi_additive_join_node__plan0.xml index 132ec029e6..f6a1229769 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_semi_additive_join_node__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_semi_additive_join_node__plan0.xml @@ -45,11 +45,11 @@ - + - + @@ -93,11 +93,11 @@ - + - + @@ -192,11 +192,11 @@ - + - + @@ -241,14 +241,14 @@ - - - - - - - - + + + + + + + + @@ -336,11 +336,11 @@ - + - + @@ -385,14 +385,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_semi_additive_join_node_with_grouping__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_semi_additive_join_node_with_grouping__plan0.xml index cceeec487f..f8ed520f2f 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_semi_additive_join_node_with_grouping__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_semi_additive_join_node_with_grouping__plan0.xml @@ -45,11 +45,11 @@ - + - + @@ -93,11 +93,11 @@ - + - + @@ -192,11 +192,11 @@ - + - + @@ -241,14 +241,14 @@ - - - - - - - - + + + + + + + + @@ -344,11 +344,11 @@ - + - + @@ -393,14 +393,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_semi_additive_join_node_with_queried_group_by__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_semi_additive_join_node_with_queried_group_by__plan0.xml index f030246e44..ed70382110 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_semi_additive_join_node_with_queried_group_by__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_semi_additive_join_node_with_queried_group_by__plan0.xml @@ -45,11 +45,11 @@ - + - + @@ -93,11 +93,11 @@ - + - + @@ -192,11 +192,11 @@ - + - + @@ -241,14 +241,14 @@ - - - - - - - - + + + + + + + + @@ -344,11 +344,11 @@ - + - + @@ -393,14 +393,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_single_join_node__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_single_join_node__plan0.xml index e1cc885427..d6e800bd30 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_single_join_node__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_single_join_node__plan0.xml @@ -139,11 +139,11 @@ - + - + @@ -184,14 +184,14 @@ - - - - - - - - + + + + + + + + @@ -235,11 +235,11 @@ - + - + @@ -284,14 +284,14 @@ - - - - - - - - + + + + + + + + @@ -332,14 +332,14 @@ - - - - - - - - + + + + + + + + @@ -380,14 +380,14 @@ - - - - - - - - + + + + + + + + @@ -494,11 +494,11 @@ - + - + @@ -539,14 +539,14 @@ - - - - - - - - + + + + + + + + @@ -599,14 +599,14 @@ - - - - - - - - + + + + + + + + @@ -647,14 +647,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_source_node__plan0.xml b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_source_node__plan0.xml index c497bc5f85..75df770af7 100644 --- a/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_source_node__plan0.xml +++ b/metricflow/test/snapshots/test_dataflow_to_sql_plan.py/SqlQueryPlan/test_source_node__plan0.xml @@ -105,11 +105,11 @@ - + - + @@ -150,14 +150,14 @@ - - - - - - - - + + + + + + + + @@ -201,11 +201,11 @@ - + - + @@ -250,14 +250,14 @@ - - - - - - - - + + + + + + + + @@ -298,14 +298,14 @@ - - - - - - - - + + + + + + + + @@ -346,14 +346,14 @@ - - - - - - - - + + + + + + + + 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 b9c1d34bad..c1a2ea132e 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 @@ -10,8 +10,8 @@ SELECT , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -22,8 +22,8 @@ SELECT , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -34,8 +34,8 @@ SELECT , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -46,8 +46,8 @@ SELECT , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -58,8 +58,8 @@ SELECT , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -70,8 +70,8 @@ SELECT , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.paid_at__day AS metric_time__day , subq_0.paid_at__week AS metric_time__week , subq_0.paid_at__month AS metric_time__month @@ -82,8 +82,8 @@ SELECT , subq_0.paid_at__extract_month AS metric_time__extract_month , subq_0.paid_at__extract_week AS metric_time__extract_week , subq_0.paid_at__extract_day AS metric_time__extract_day - , subq_0.paid_at__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.paid_at__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.paid_at__extract_dow AS metric_time__extract_dow + , subq_0.paid_at__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -121,8 +121,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -133,8 +133,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -145,8 +145,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -158,8 +158,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -170,8 +170,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -182,8 +182,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 9326cd820a..5b9d645f22 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 @@ -11,8 +11,8 @@ SELECT , EXTRACT(MONTH FROM ds) AS ds__extract_month , EXTRACT(WEEK FROM ds) AS ds__extract_week , EXTRACT(DAY FROM ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM ds) AS ds__extract_doy , ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', ds_partitioned) AS ds_partitioned__month @@ -23,8 +23,8 @@ SELECT , EXTRACT(MONTH FROM ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM ds_partitioned) AS ds_partitioned__extract_doy , paid_at AS paid_at__day , DATE_TRUNC('week', paid_at) AS paid_at__week , DATE_TRUNC('month', paid_at) AS paid_at__month @@ -35,8 +35,8 @@ SELECT , EXTRACT(MONTH FROM paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM paid_at) AS paid_at__extract_doy , ds AS booking__ds__day , DATE_TRUNC('week', ds) AS booking__ds__week , DATE_TRUNC('month', ds) AS booking__ds__month @@ -47,8 +47,8 @@ SELECT , EXTRACT(MONTH FROM ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM ds) AS booking__ds__extract_week , EXTRACT(DAY FROM ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM ds) AS booking__ds__extract_doy , ds_partitioned AS booking__ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS booking__ds_partitioned__week , DATE_TRUNC('month', ds_partitioned) AS booking__ds_partitioned__month @@ -59,8 +59,8 @@ SELECT , EXTRACT(MONTH FROM ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM ds_partitioned) AS booking__ds_partitioned__extract_doy , paid_at AS booking__paid_at__day , DATE_TRUNC('week', paid_at) AS booking__paid_at__week , DATE_TRUNC('month', paid_at) AS booking__paid_at__month @@ -71,8 +71,8 @@ SELECT , EXTRACT(MONTH FROM paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM paid_at) AS booking__paid_at__extract_doy , paid_at AS metric_time__day , DATE_TRUNC('week', paid_at) AS metric_time__week , DATE_TRUNC('month', paid_at) AS metric_time__month @@ -83,8 +83,8 @@ SELECT , EXTRACT(MONTH FROM paid_at) AS metric_time__extract_month , EXTRACT(WEEK FROM paid_at) AS metric_time__extract_week , EXTRACT(DAY FROM paid_at) AS metric_time__extract_day - , EXTRACT(DAYOFWEEK FROM paid_at) AS metric_time__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM paid_at) AS metric_time__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM paid_at) AS metric_time__extract_dow + , EXTRACT(DAYOFYEAR FROM paid_at) AS metric_time__extract_doy , listing_id AS listing , guest_id AS guest , host_id AS host 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 a2a9795f0c..e5d56619ca 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 @@ -10,8 +10,8 @@ SELECT , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -22,8 +22,8 @@ SELECT , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -34,8 +34,8 @@ SELECT , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -46,8 +46,8 @@ SELECT , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -58,8 +58,8 @@ SELECT , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -70,8 +70,8 @@ SELECT , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -82,8 +82,8 @@ SELECT , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -133,8 +133,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -145,8 +145,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -157,8 +157,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -170,8 +170,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -182,8 +182,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -194,8 +194,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host 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 30a42573dd..72985c569e 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 @@ -11,8 +11,8 @@ SELECT , EXTRACT(MONTH FROM ds) AS ds__extract_month , EXTRACT(WEEK FROM ds) AS ds__extract_week , EXTRACT(DAY FROM ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM ds) AS ds__extract_doy , ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', ds_partitioned) AS ds_partitioned__month @@ -23,8 +23,8 @@ SELECT , EXTRACT(MONTH FROM ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM ds_partitioned) AS ds_partitioned__extract_doy , paid_at AS paid_at__day , DATE_TRUNC('week', paid_at) AS paid_at__week , DATE_TRUNC('month', paid_at) AS paid_at__month @@ -35,8 +35,8 @@ SELECT , EXTRACT(MONTH FROM paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM paid_at) AS paid_at__extract_doy , ds AS booking__ds__day , DATE_TRUNC('week', ds) AS booking__ds__week , DATE_TRUNC('month', ds) AS booking__ds__month @@ -47,8 +47,8 @@ SELECT , EXTRACT(MONTH FROM ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM ds) AS booking__ds__extract_week , EXTRACT(DAY FROM ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM ds) AS booking__ds__extract_doy , ds_partitioned AS booking__ds_partitioned__day , DATE_TRUNC('week', ds_partitioned) AS booking__ds_partitioned__week , DATE_TRUNC('month', ds_partitioned) AS booking__ds_partitioned__month @@ -59,8 +59,8 @@ SELECT , EXTRACT(MONTH FROM ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM ds_partitioned) AS booking__ds_partitioned__extract_doy , paid_at AS booking__paid_at__day , DATE_TRUNC('week', paid_at) AS booking__paid_at__week , DATE_TRUNC('month', paid_at) AS booking__paid_at__month @@ -71,8 +71,8 @@ SELECT , EXTRACT(MONTH FROM paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM paid_at) AS booking__paid_at__extract_doy , ds AS metric_time__day , DATE_TRUNC('week', ds) AS metric_time__week , DATE_TRUNC('month', ds) AS metric_time__month @@ -83,8 +83,8 @@ SELECT , EXTRACT(MONTH FROM ds) AS metric_time__extract_month , EXTRACT(WEEK FROM ds) AS metric_time__extract_week , EXTRACT(DAY FROM ds) AS metric_time__extract_day - , EXTRACT(DAYOFWEEK FROM ds) AS metric_time__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM ds) AS metric_time__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM ds) AS metric_time__extract_dow + , EXTRACT(DAYOFYEAR FROM ds) AS metric_time__extract_doy , listing_id AS listing , guest_id AS guest , host_id AS host 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 4b399298d5..08c1707601 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 @@ -32,8 +32,8 @@ FROM ( , subq_0.ds__extract_month , subq_0.ds__extract_week , subq_0.ds__extract_day - , subq_0.ds__extract_dayofweek - , subq_0.ds__extract_dayofyear + , subq_0.ds__extract_dow + , subq_0.ds__extract_doy , subq_0.ds_partitioned__day , subq_0.ds_partitioned__week , subq_0.ds_partitioned__month @@ -44,8 +44,8 @@ FROM ( , subq_0.ds_partitioned__extract_month , subq_0.ds_partitioned__extract_week , subq_0.ds_partitioned__extract_day - , subq_0.ds_partitioned__extract_dayofweek - , subq_0.ds_partitioned__extract_dayofyear + , subq_0.ds_partitioned__extract_dow + , subq_0.ds_partitioned__extract_doy , subq_0.paid_at__day , subq_0.paid_at__week , subq_0.paid_at__month @@ -56,8 +56,8 @@ FROM ( , subq_0.paid_at__extract_month , subq_0.paid_at__extract_week , subq_0.paid_at__extract_day - , subq_0.paid_at__extract_dayofweek - , subq_0.paid_at__extract_dayofyear + , subq_0.paid_at__extract_dow + , subq_0.paid_at__extract_doy , subq_0.booking__ds__day , subq_0.booking__ds__week , subq_0.booking__ds__month @@ -68,8 +68,8 @@ FROM ( , subq_0.booking__ds__extract_month , subq_0.booking__ds__extract_week , subq_0.booking__ds__extract_day - , subq_0.booking__ds__extract_dayofweek - , subq_0.booking__ds__extract_dayofyear + , subq_0.booking__ds__extract_dow + , subq_0.booking__ds__extract_doy , subq_0.booking__ds_partitioned__day , subq_0.booking__ds_partitioned__week , subq_0.booking__ds_partitioned__month @@ -80,8 +80,8 @@ FROM ( , subq_0.booking__ds_partitioned__extract_month , subq_0.booking__ds_partitioned__extract_week , subq_0.booking__ds_partitioned__extract_day - , subq_0.booking__ds_partitioned__extract_dayofweek - , subq_0.booking__ds_partitioned__extract_dayofyear + , subq_0.booking__ds_partitioned__extract_dow + , subq_0.booking__ds_partitioned__extract_doy , subq_0.booking__paid_at__day , subq_0.booking__paid_at__week , subq_0.booking__paid_at__month @@ -92,8 +92,8 @@ FROM ( , subq_0.booking__paid_at__extract_month , subq_0.booking__paid_at__extract_week , subq_0.booking__paid_at__extract_day - , subq_0.booking__paid_at__extract_dayofweek - , subq_0.booking__paid_at__extract_dayofyear + , subq_0.booking__paid_at__extract_dow + , subq_0.booking__paid_at__extract_doy , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -104,8 +104,8 @@ FROM ( , subq_0.ds__extract_month AS metric_time__extract_month , subq_0.ds__extract_week AS metric_time__extract_week , subq_0.ds__extract_day AS metric_time__extract_day - , subq_0.ds__extract_dayofweek AS metric_time__extract_dayofweek - , subq_0.ds__extract_dayofyear AS metric_time__extract_dayofyear + , subq_0.ds__extract_dow AS metric_time__extract_dow + , subq_0.ds__extract_doy AS metric_time__extract_doy , subq_0.listing , subq_0.guest , subq_0.host @@ -155,8 +155,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -167,8 +167,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -179,8 +179,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -192,8 +192,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -204,8 +204,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -216,8 +216,8 @@ FROM ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host @@ -261,8 +261,8 @@ FULL OUTER JOIN ( , subq_5.ds__extract_month , subq_5.ds__extract_week , subq_5.ds__extract_day - , subq_5.ds__extract_dayofweek - , subq_5.ds__extract_dayofyear + , subq_5.ds__extract_dow + , subq_5.ds__extract_doy , subq_5.ds_partitioned__day , subq_5.ds_partitioned__week , subq_5.ds_partitioned__month @@ -273,8 +273,8 @@ FULL OUTER JOIN ( , subq_5.ds_partitioned__extract_month , subq_5.ds_partitioned__extract_week , subq_5.ds_partitioned__extract_day - , subq_5.ds_partitioned__extract_dayofweek - , subq_5.ds_partitioned__extract_dayofyear + , subq_5.ds_partitioned__extract_dow + , subq_5.ds_partitioned__extract_doy , subq_5.paid_at__day , subq_5.paid_at__week , subq_5.paid_at__month @@ -285,8 +285,8 @@ FULL OUTER JOIN ( , subq_5.paid_at__extract_month , subq_5.paid_at__extract_week , subq_5.paid_at__extract_day - , subq_5.paid_at__extract_dayofweek - , subq_5.paid_at__extract_dayofyear + , subq_5.paid_at__extract_dow + , subq_5.paid_at__extract_doy , subq_5.booking__ds__day , subq_5.booking__ds__week , subq_5.booking__ds__month @@ -297,8 +297,8 @@ FULL OUTER JOIN ( , subq_5.booking__ds__extract_month , subq_5.booking__ds__extract_week , subq_5.booking__ds__extract_day - , subq_5.booking__ds__extract_dayofweek - , subq_5.booking__ds__extract_dayofyear + , subq_5.booking__ds__extract_dow + , subq_5.booking__ds__extract_doy , subq_5.booking__ds_partitioned__day , subq_5.booking__ds_partitioned__week , subq_5.booking__ds_partitioned__month @@ -309,8 +309,8 @@ FULL OUTER JOIN ( , subq_5.booking__ds_partitioned__extract_month , subq_5.booking__ds_partitioned__extract_week , subq_5.booking__ds_partitioned__extract_day - , subq_5.booking__ds_partitioned__extract_dayofweek - , subq_5.booking__ds_partitioned__extract_dayofyear + , subq_5.booking__ds_partitioned__extract_dow + , subq_5.booking__ds_partitioned__extract_doy , subq_5.booking__paid_at__day , subq_5.booking__paid_at__week , subq_5.booking__paid_at__month @@ -321,8 +321,8 @@ FULL OUTER JOIN ( , subq_5.booking__paid_at__extract_month , subq_5.booking__paid_at__extract_week , subq_5.booking__paid_at__extract_day - , subq_5.booking__paid_at__extract_dayofweek - , subq_5.booking__paid_at__extract_dayofyear + , subq_5.booking__paid_at__extract_dow + , subq_5.booking__paid_at__extract_doy , subq_5.paid_at__day AS metric_time__day , subq_5.paid_at__week AS metric_time__week , subq_5.paid_at__month AS metric_time__month @@ -333,8 +333,8 @@ FULL OUTER JOIN ( , subq_5.paid_at__extract_month AS metric_time__extract_month , subq_5.paid_at__extract_week AS metric_time__extract_week , subq_5.paid_at__extract_day AS metric_time__extract_day - , subq_5.paid_at__extract_dayofweek AS metric_time__extract_dayofweek - , subq_5.paid_at__extract_dayofyear AS metric_time__extract_dayofyear + , subq_5.paid_at__extract_dow AS metric_time__extract_dow + , subq_5.paid_at__extract_doy AS metric_time__extract_doy , subq_5.listing , subq_5.guest , subq_5.host @@ -372,8 +372,8 @@ FULL OUTER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS ds__extract_doy , bookings_source_src_10001.ds_partitioned AS ds_partitioned__day , DATE_TRUNC('week', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__week , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS ds_partitioned__month @@ -384,8 +384,8 @@ FULL OUTER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS ds_partitioned__extract_doy , bookings_source_src_10001.paid_at AS paid_at__day , DATE_TRUNC('week', bookings_source_src_10001.paid_at) AS paid_at__week , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS paid_at__month @@ -396,8 +396,8 @@ FULL OUTER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS paid_at__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS paid_at__extract_doy , bookings_source_src_10001.is_instant AS booking__is_instant , bookings_source_src_10001.ds AS booking__ds__day , DATE_TRUNC('week', bookings_source_src_10001.ds) AS booking__ds__week @@ -409,8 +409,8 @@ FULL OUTER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds) AS booking__ds__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds) AS booking__ds__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds) AS booking__ds__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds) AS booking__ds__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__month @@ -421,8 +421,8 @@ FULL OUTER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_dow + , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.ds_partitioned) AS booking__ds_partitioned__extract_doy , 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 , DATE_TRUNC('month', bookings_source_src_10001.paid_at) AS booking__paid_at__month @@ -433,8 +433,8 @@ FULL OUTER JOIN ( , EXTRACT(MONTH FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_month , EXTRACT(WEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_week , EXTRACT(DAY FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_day - , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofweek - , EXTRACT(DAYOFYEAR FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dayofyear + , EXTRACT(DAYOFWEEK FROM bookings_source_src_10001.paid_at) AS booking__paid_at__extract_dow + , EXTRACT(DAYOFYEAR 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 , bookings_source_src_10001.host_id AS host diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.xml b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.xml index b7325320f3..84429ca4f1 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.xml +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/test_metric_time_dimension_transform_node_using_non_primary_time__plan0.xml @@ -45,11 +45,11 @@ - + - + @@ -93,11 +93,11 @@ - + - + @@ -141,11 +141,11 @@ - + - + @@ -189,11 +189,11 @@ - + - + @@ -234,14 +234,14 @@ - - - - - - - - + + + + + + + + @@ -282,14 +282,14 @@ - - - - - - - - + + + + + + + + @@ -333,11 +333,11 @@ - + - + @@ -482,11 +482,11 @@ - + - + @@ -527,14 +527,14 @@ - - - - - - - - + + + + + + + + @@ -578,11 +578,11 @@ - + - + @@ -627,14 +627,14 @@ - - - - - - - - + + + + + + + + @@ -675,14 +675,14 @@ - - - - - - - - + + + + + + + + @@ -723,14 +723,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/test_metric_time_dimension_transform_node_using_primary_time__plan0.xml b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/test_metric_time_dimension_transform_node_using_primary_time__plan0.xml index bedd5ead3d..f20c045afe 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/test_metric_time_dimension_transform_node_using_primary_time__plan0.xml +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/test_metric_time_dimension_transform_node_using_primary_time__plan0.xml @@ -45,11 +45,11 @@ - + - + @@ -93,11 +93,11 @@ - + - + @@ -141,11 +141,11 @@ - + - + @@ -189,11 +189,11 @@ - + - + @@ -234,14 +234,14 @@ - - - - - - - - + + + + + + + + @@ -282,14 +282,14 @@ - - - - - - - - + + + + + + + + @@ -333,11 +333,11 @@ - + - + @@ -530,11 +530,11 @@ - + - + @@ -575,14 +575,14 @@ - - - - - - - - + + + + + + + + @@ -626,11 +626,11 @@ - + - + @@ -675,14 +675,14 @@ - - - - - - - - + + + + + + + + @@ -723,14 +723,14 @@ - - - - - - - - + + + + + + + + @@ -771,14 +771,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/test_simple_query_with_metric_time_dimension__plan0.xml b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/test_simple_query_with_metric_time_dimension__plan0.xml index be05efe8ce..66d7813741 100644 --- a/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/test_simple_query_with_metric_time_dimension__plan0.xml +++ b/metricflow/test/snapshots/test_metric_time_dimension_to_sql.py/SqlQueryPlan/test_simple_query_with_metric_time_dimension__plan0.xml @@ -117,11 +117,11 @@ - + - + @@ -165,11 +165,11 @@ - + - + @@ -213,11 +213,11 @@ - + - + @@ -261,11 +261,11 @@ - + - + @@ -306,14 +306,14 @@ - - - - - - - - + + + + + + + + @@ -354,14 +354,14 @@ - - - - - - - - + + + + + + + + @@ -405,11 +405,11 @@ - + - + @@ -602,11 +602,11 @@ - + - + @@ -647,14 +647,14 @@ - - - - - - - - + + + + + + + + @@ -698,11 +698,11 @@ - + - + @@ -747,14 +747,14 @@ - - - - - - - - + + + + + + + + @@ -795,14 +795,14 @@ - - - - - - - - + + + + + + + + @@ -843,14 +843,14 @@ - - - - - - - - + + + + + + + + @@ -978,11 +978,11 @@ - + - + @@ -1026,11 +1026,11 @@ - + - + @@ -1074,11 +1074,11 @@ - + - + @@ -1122,11 +1122,11 @@ - + - + @@ -1167,14 +1167,14 @@ - - - - - - - - + + + + + + + + @@ -1215,14 +1215,14 @@ - - - - - - - - + + + + + + + + @@ -1266,11 +1266,11 @@ - + - + @@ -1415,11 +1415,11 @@ - + - + @@ -1460,14 +1460,14 @@ - - - - - - - - + + + + + + + + @@ -1511,11 +1511,11 @@ - + - + @@ -1560,14 +1560,14 @@ - - - - - - - - + + + + + + + + @@ -1608,14 +1608,14 @@ - - - - - - - - + + + + + + + + @@ -1656,14 +1656,14 @@ - - - - - - - - + + + + + + + + diff --git a/metricflow/time/date_part.py b/metricflow/time/date_part.py index b6ccea9172..cccb1be6c8 100644 --- a/metricflow/time/date_part.py +++ b/metricflow/time/date_part.py @@ -17,8 +17,8 @@ class DatePart(Enum): MONTH = "month" WEEK = "week" DAY = "day" - DAYOFWEEK = "dayofweek" - DAYOFYEAR = "dayofyear" + DAYOFWEEK = "dow" + DAYOFYEAR = "doy" def to_int(self) -> int: """Convert to an int so that the size of the granularity can be easily compared."""