diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/BigQuery/test_dimensions_with_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/BigQuery/test_dimensions_with_time_constraint__plan0.sql index 98928afa92..e8d33642c7 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/BigQuery/test_dimensions_with_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/BigQuery/test_dimensions_with_time_constraint__plan0.sql @@ -204,6 +204,7 @@ FROM ( , subq_1.ds__extract_day , subq_1.ds__extract_dow , subq_1.ds__extract_doy + , subq_1.ds__martian_day , subq_1.ds__day AS metric_time__day , subq_1.ds__week AS metric_time__week , subq_1.ds__month AS metric_time__month @@ -215,6 +216,7 @@ FROM ( , subq_1.ds__extract_day AS metric_time__extract_day , subq_1.ds__extract_dow AS metric_time__extract_dow , subq_1.ds__extract_doy AS metric_time__extract_doy + , subq_1.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -229,6 +231,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , IF(EXTRACT(dayofweek FROM time_spine_src_28006.ds) = 1, 7, EXTRACT(dayofweek FROM time_spine_src_28006.ds) - 1) AS ds__extract_dow , EXTRACT(dayofyear FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_1 ) subq_2 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/BigQuery/test_metric_time_only__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/BigQuery/test_metric_time_only__plan0.sql index 7c7c84cde3..6d0dc32835 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/BigQuery/test_metric_time_only__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/BigQuery/test_metric_time_only__plan0.sql @@ -15,6 +15,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -26,6 +27,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -40,6 +42,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , IF(EXTRACT(dayofweek FROM time_spine_src_28006.ds) = 1, 7, EXTRACT(dayofweek FROM time_spine_src_28006.ds) - 1) AS ds__extract_dow , EXTRACT(dayofyear FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/BigQuery/test_metric_time_quarter_alone__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/BigQuery/test_metric_time_quarter_alone__plan0.sql index 0e8fd5fcfc..e4b99966b4 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/BigQuery/test_metric_time_quarter_alone__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/BigQuery/test_metric_time_quarter_alone__plan0.sql @@ -15,6 +15,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -26,6 +27,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -40,6 +42,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , IF(EXTRACT(dayofweek FROM time_spine_src_28006.ds) = 1, 7, EXTRACT(dayofweek FROM time_spine_src_28006.ds) - 1) AS ds__extract_dow , EXTRACT(dayofyear FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/BigQuery/test_metric_time_with_other_dimensions__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/BigQuery/test_metric_time_with_other_dimensions__plan0.sql index 161bc57c9f..ceb40208b9 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/BigQuery/test_metric_time_with_other_dimensions__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/BigQuery/test_metric_time_with_other_dimensions__plan0.sql @@ -143,6 +143,7 @@ FROM ( , subq_1.ds__extract_day , subq_1.ds__extract_dow , subq_1.ds__extract_doy + , subq_1.ds__martian_day , subq_1.ds__day AS metric_time__day , subq_1.ds__week AS metric_time__week , subq_1.ds__month AS metric_time__month @@ -154,6 +155,7 @@ FROM ( , subq_1.ds__extract_day AS metric_time__extract_day , subq_1.ds__extract_dow AS metric_time__extract_dow , subq_1.ds__extract_doy AS metric_time__extract_doy + , subq_1.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -168,6 +170,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , IF(EXTRACT(dayofweek FROM time_spine_src_28006.ds) = 1, 7, EXTRACT(dayofweek FROM time_spine_src_28006.ds) - 1) AS ds__extract_dow , EXTRACT(dayofyear FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_1 ) subq_2 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Databricks/test_dimensions_with_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Databricks/test_dimensions_with_time_constraint__plan0.sql index f28a1aed0c..e382a4b245 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Databricks/test_dimensions_with_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Databricks/test_dimensions_with_time_constraint__plan0.sql @@ -204,6 +204,7 @@ FROM ( , subq_1.ds__extract_day , subq_1.ds__extract_dow , subq_1.ds__extract_doy + , subq_1.ds__martian_day , subq_1.ds__day AS metric_time__day , subq_1.ds__week AS metric_time__week , subq_1.ds__month AS metric_time__month @@ -215,6 +216,7 @@ FROM ( , subq_1.ds__extract_day AS metric_time__extract_day , subq_1.ds__extract_dow AS metric_time__extract_dow , subq_1.ds__extract_doy AS metric_time__extract_doy + , subq_1.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -229,6 +231,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(DAYOFWEEK_ISO FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_1 ) subq_2 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Databricks/test_metric_time_only__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Databricks/test_metric_time_only__plan0.sql index 27ff087a4a..bb3607324b 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Databricks/test_metric_time_only__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Databricks/test_metric_time_only__plan0.sql @@ -15,6 +15,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -26,6 +27,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -40,6 +42,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(DAYOFWEEK_ISO FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Databricks/test_metric_time_quarter_alone__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Databricks/test_metric_time_quarter_alone__plan0.sql index 939c04fbd5..3b2509ba59 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Databricks/test_metric_time_quarter_alone__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Databricks/test_metric_time_quarter_alone__plan0.sql @@ -15,6 +15,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -26,6 +27,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -40,6 +42,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(DAYOFWEEK_ISO FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Databricks/test_metric_time_with_other_dimensions__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Databricks/test_metric_time_with_other_dimensions__plan0.sql index 3bb8f19c72..f6d0f5b82f 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Databricks/test_metric_time_with_other_dimensions__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Databricks/test_metric_time_with_other_dimensions__plan0.sql @@ -143,6 +143,7 @@ FROM ( , subq_1.ds__extract_day , subq_1.ds__extract_dow , subq_1.ds__extract_doy + , subq_1.ds__martian_day , subq_1.ds__day AS metric_time__day , subq_1.ds__week AS metric_time__week , subq_1.ds__month AS metric_time__month @@ -154,6 +155,7 @@ FROM ( , subq_1.ds__extract_day AS metric_time__extract_day , subq_1.ds__extract_dow AS metric_time__extract_dow , subq_1.ds__extract_doy AS metric_time__extract_doy + , subq_1.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -168,6 +170,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(DAYOFWEEK_ISO FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_1 ) subq_2 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Postgres/test_dimensions_with_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Postgres/test_dimensions_with_time_constraint__plan0.sql index 4fa1768bc7..924b094be0 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Postgres/test_dimensions_with_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Postgres/test_dimensions_with_time_constraint__plan0.sql @@ -204,6 +204,7 @@ FROM ( , subq_1.ds__extract_day , subq_1.ds__extract_dow , subq_1.ds__extract_doy + , subq_1.ds__martian_day , subq_1.ds__day AS metric_time__day , subq_1.ds__week AS metric_time__week , subq_1.ds__month AS metric_time__month @@ -215,6 +216,7 @@ FROM ( , subq_1.ds__extract_day AS metric_time__extract_day , subq_1.ds__extract_dow AS metric_time__extract_dow , subq_1.ds__extract_doy AS metric_time__extract_doy + , subq_1.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -229,6 +231,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(isodow FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_1 ) subq_2 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Postgres/test_metric_time_only__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Postgres/test_metric_time_only__plan0.sql index b7efe020e7..d0ef8e46cd 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Postgres/test_metric_time_only__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Postgres/test_metric_time_only__plan0.sql @@ -15,6 +15,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -26,6 +27,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -40,6 +42,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(isodow FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Postgres/test_metric_time_quarter_alone__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Postgres/test_metric_time_quarter_alone__plan0.sql index a719a46832..7f6e052f78 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Postgres/test_metric_time_quarter_alone__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Postgres/test_metric_time_quarter_alone__plan0.sql @@ -15,6 +15,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -26,6 +27,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -40,6 +42,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(isodow FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Postgres/test_metric_time_with_other_dimensions__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Postgres/test_metric_time_with_other_dimensions__plan0.sql index 0ca186e4af..9997adfc98 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Postgres/test_metric_time_with_other_dimensions__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Postgres/test_metric_time_with_other_dimensions__plan0.sql @@ -143,6 +143,7 @@ FROM ( , subq_1.ds__extract_day , subq_1.ds__extract_dow , subq_1.ds__extract_doy + , subq_1.ds__martian_day , subq_1.ds__day AS metric_time__day , subq_1.ds__week AS metric_time__week , subq_1.ds__month AS metric_time__month @@ -154,6 +155,7 @@ FROM ( , subq_1.ds__extract_day AS metric_time__extract_day , subq_1.ds__extract_dow AS metric_time__extract_dow , subq_1.ds__extract_doy AS metric_time__extract_doy + , subq_1.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -168,6 +170,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(isodow FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_1 ) subq_2 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Redshift/test_dimensions_with_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Redshift/test_dimensions_with_time_constraint__plan0.sql index c3937910b2..377b774a6d 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Redshift/test_dimensions_with_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Redshift/test_dimensions_with_time_constraint__plan0.sql @@ -204,6 +204,7 @@ FROM ( , subq_1.ds__extract_day , subq_1.ds__extract_dow , subq_1.ds__extract_doy + , subq_1.ds__martian_day , subq_1.ds__day AS metric_time__day , subq_1.ds__week AS metric_time__week , subq_1.ds__month AS metric_time__month @@ -215,6 +216,7 @@ FROM ( , subq_1.ds__extract_day AS metric_time__extract_day , subq_1.ds__extract_dow AS metric_time__extract_dow , subq_1.ds__extract_doy AS metric_time__extract_doy + , subq_1.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -229,6 +231,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , CASE WHEN EXTRACT(dow FROM time_spine_src_28006.ds) = 0 THEN EXTRACT(dow FROM time_spine_src_28006.ds) + 7 ELSE EXTRACT(dow FROM time_spine_src_28006.ds) END AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_1 ) subq_2 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Redshift/test_metric_time_only__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Redshift/test_metric_time_only__plan0.sql index f2ad087708..5bec066213 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Redshift/test_metric_time_only__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Redshift/test_metric_time_only__plan0.sql @@ -15,6 +15,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -26,6 +27,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -40,6 +42,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , CASE WHEN EXTRACT(dow FROM time_spine_src_28006.ds) = 0 THEN EXTRACT(dow FROM time_spine_src_28006.ds) + 7 ELSE EXTRACT(dow FROM time_spine_src_28006.ds) END AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Redshift/test_metric_time_quarter_alone__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Redshift/test_metric_time_quarter_alone__plan0.sql index a4f3a0d479..337475d3a2 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Redshift/test_metric_time_quarter_alone__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Redshift/test_metric_time_quarter_alone__plan0.sql @@ -15,6 +15,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -26,6 +27,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -40,6 +42,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , CASE WHEN EXTRACT(dow FROM time_spine_src_28006.ds) = 0 THEN EXTRACT(dow FROM time_spine_src_28006.ds) + 7 ELSE EXTRACT(dow FROM time_spine_src_28006.ds) END AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Redshift/test_metric_time_with_other_dimensions__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Redshift/test_metric_time_with_other_dimensions__plan0.sql index fdaa63698b..5c33d96ef3 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Redshift/test_metric_time_with_other_dimensions__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Redshift/test_metric_time_with_other_dimensions__plan0.sql @@ -143,6 +143,7 @@ FROM ( , subq_1.ds__extract_day , subq_1.ds__extract_dow , subq_1.ds__extract_doy + , subq_1.ds__martian_day , subq_1.ds__day AS metric_time__day , subq_1.ds__week AS metric_time__week , subq_1.ds__month AS metric_time__month @@ -154,6 +155,7 @@ FROM ( , subq_1.ds__extract_day AS metric_time__extract_day , subq_1.ds__extract_dow AS metric_time__extract_dow , subq_1.ds__extract_doy AS metric_time__extract_doy + , subq_1.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -168,6 +170,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , CASE WHEN EXTRACT(dow FROM time_spine_src_28006.ds) = 0 THEN EXTRACT(dow FROM time_spine_src_28006.ds) + 7 ELSE EXTRACT(dow FROM time_spine_src_28006.ds) END AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_1 ) subq_2 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Snowflake/test_dimensions_with_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Snowflake/test_dimensions_with_time_constraint__plan0.sql index 7fc222ee66..f616ddf62e 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Snowflake/test_dimensions_with_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Snowflake/test_dimensions_with_time_constraint__plan0.sql @@ -204,6 +204,7 @@ FROM ( , subq_1.ds__extract_day , subq_1.ds__extract_dow , subq_1.ds__extract_doy + , subq_1.ds__martian_day , subq_1.ds__day AS metric_time__day , subq_1.ds__week AS metric_time__week , subq_1.ds__month AS metric_time__month @@ -215,6 +216,7 @@ FROM ( , subq_1.ds__extract_day AS metric_time__extract_day , subq_1.ds__extract_dow AS metric_time__extract_dow , subq_1.ds__extract_doy AS metric_time__extract_doy + , subq_1.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -229,6 +231,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(dayofweekiso FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_1 ) subq_2 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Snowflake/test_metric_time_only__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Snowflake/test_metric_time_only__plan0.sql index d3dc52558a..1fc84bac61 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Snowflake/test_metric_time_only__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Snowflake/test_metric_time_only__plan0.sql @@ -15,6 +15,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -26,6 +27,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -40,6 +42,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(dayofweekiso FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Snowflake/test_metric_time_quarter_alone__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Snowflake/test_metric_time_quarter_alone__plan0.sql index 2f076adedb..15d8073655 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Snowflake/test_metric_time_quarter_alone__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Snowflake/test_metric_time_quarter_alone__plan0.sql @@ -15,6 +15,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -26,6 +27,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -40,6 +42,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(dayofweekiso FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Snowflake/test_metric_time_with_other_dimensions__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Snowflake/test_metric_time_with_other_dimensions__plan0.sql index 0b393e86b3..1c71cafc3e 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Snowflake/test_metric_time_with_other_dimensions__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Snowflake/test_metric_time_with_other_dimensions__plan0.sql @@ -143,6 +143,7 @@ FROM ( , subq_1.ds__extract_day , subq_1.ds__extract_dow , subq_1.ds__extract_doy + , subq_1.ds__martian_day , subq_1.ds__day AS metric_time__day , subq_1.ds__week AS metric_time__week , subq_1.ds__month AS metric_time__month @@ -154,6 +155,7 @@ FROM ( , subq_1.ds__extract_day AS metric_time__extract_day , subq_1.ds__extract_dow AS metric_time__extract_dow , subq_1.ds__extract_doy AS metric_time__extract_doy + , subq_1.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -168,6 +170,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(dayofweekiso FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_1 ) subq_2 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Trino/test_dimensions_with_time_constraint__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Trino/test_dimensions_with_time_constraint__plan0.sql index 2cd56fbc7e..899b565524 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Trino/test_dimensions_with_time_constraint__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Trino/test_dimensions_with_time_constraint__plan0.sql @@ -204,6 +204,7 @@ FROM ( , subq_1.ds__extract_day , subq_1.ds__extract_dow , subq_1.ds__extract_doy + , subq_1.ds__martian_day , subq_1.ds__day AS metric_time__day , subq_1.ds__week AS metric_time__week , subq_1.ds__month AS metric_time__month @@ -215,6 +216,7 @@ FROM ( , subq_1.ds__extract_day AS metric_time__extract_day , subq_1.ds__extract_dow AS metric_time__extract_dow , subq_1.ds__extract_doy AS metric_time__extract_doy + , subq_1.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -229,6 +231,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(DAY_OF_WEEK FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_1 ) subq_2 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Trino/test_metric_time_only__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Trino/test_metric_time_only__plan0.sql index 3c0778b8c2..50c5d8dd99 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Trino/test_metric_time_only__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Trino/test_metric_time_only__plan0.sql @@ -15,6 +15,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -26,6 +27,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -40,6 +42,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(DAY_OF_WEEK FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Trino/test_metric_time_quarter_alone__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Trino/test_metric_time_quarter_alone__plan0.sql index d18942fc1e..0396f7bb24 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Trino/test_metric_time_quarter_alone__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Trino/test_metric_time_quarter_alone__plan0.sql @@ -15,6 +15,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -26,6 +27,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -40,6 +42,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(DAY_OF_WEEK FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Trino/test_metric_time_with_other_dimensions__plan0.sql b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Trino/test_metric_time_with_other_dimensions__plan0.sql index 1c5714bc87..e8b4477546 100644 --- a/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Trino/test_metric_time_with_other_dimensions__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_time_without_metrics.py/SqlQueryPlan/Trino/test_metric_time_with_other_dimensions__plan0.sql @@ -143,6 +143,7 @@ FROM ( , subq_1.ds__extract_day , subq_1.ds__extract_dow , subq_1.ds__extract_doy + , subq_1.ds__martian_day , subq_1.ds__day AS metric_time__day , subq_1.ds__week AS metric_time__week , subq_1.ds__month AS metric_time__month @@ -154,6 +155,7 @@ FROM ( , subq_1.ds__extract_day AS metric_time__extract_day , subq_1.ds__extract_dow AS metric_time__extract_dow , subq_1.ds__extract_doy AS metric_time__extract_doy + , subq_1.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -168,6 +170,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(DAY_OF_WEEK FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_1 ) subq_2 diff --git a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/BigQuery/test_min_max_metric_time__plan0.sql b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/BigQuery/test_min_max_metric_time__plan0.sql index 9366489873..ee3b7b0a03 100644 --- a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/BigQuery/test_min_max_metric_time__plan0.sql +++ b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/BigQuery/test_min_max_metric_time__plan0.sql @@ -20,6 +20,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -31,6 +32,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -45,6 +47,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , IF(EXTRACT(dayofweek FROM time_spine_src_28006.ds) = 1, 7, EXTRACT(dayofweek FROM time_spine_src_28006.ds) - 1) AS ds__extract_dow , EXTRACT(dayofyear FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/BigQuery/test_min_max_metric_time_week__plan0.sql b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/BigQuery/test_min_max_metric_time_week__plan0.sql index a020f1aad3..373cc9f2ce 100644 --- a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/BigQuery/test_min_max_metric_time_week__plan0.sql +++ b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/BigQuery/test_min_max_metric_time_week__plan0.sql @@ -20,6 +20,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -31,6 +32,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -45,6 +47,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , IF(EXTRACT(dayofweek FROM time_spine_src_28006.ds) = 1, 7, EXTRACT(dayofweek FROM time_spine_src_28006.ds) - 1) AS ds__extract_dow , EXTRACT(dayofyear FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Databricks/test_min_max_metric_time__plan0.sql b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Databricks/test_min_max_metric_time__plan0.sql index 829d13678f..97c917a595 100644 --- a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Databricks/test_min_max_metric_time__plan0.sql +++ b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Databricks/test_min_max_metric_time__plan0.sql @@ -20,6 +20,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -31,6 +32,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -45,6 +47,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(DAYOFWEEK_ISO FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Databricks/test_min_max_metric_time_week__plan0.sql b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Databricks/test_min_max_metric_time_week__plan0.sql index 68dd51363f..9370bac234 100644 --- a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Databricks/test_min_max_metric_time_week__plan0.sql +++ b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Databricks/test_min_max_metric_time_week__plan0.sql @@ -20,6 +20,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -31,6 +32,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -45,6 +47,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(DAYOFWEEK_ISO FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Postgres/test_min_max_metric_time__plan0.sql b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Postgres/test_min_max_metric_time__plan0.sql index 0eef091ea3..375cb5e89e 100644 --- a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Postgres/test_min_max_metric_time__plan0.sql +++ b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Postgres/test_min_max_metric_time__plan0.sql @@ -20,6 +20,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -31,6 +32,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -45,6 +47,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(isodow FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Postgres/test_min_max_metric_time_week__plan0.sql b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Postgres/test_min_max_metric_time_week__plan0.sql index 7c587e39ac..086649cf24 100644 --- a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Postgres/test_min_max_metric_time_week__plan0.sql +++ b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Postgres/test_min_max_metric_time_week__plan0.sql @@ -20,6 +20,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -31,6 +32,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -45,6 +47,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(isodow FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Redshift/test_min_max_metric_time__plan0.sql b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Redshift/test_min_max_metric_time__plan0.sql index 5d35c8a3ba..e475d6cd85 100644 --- a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Redshift/test_min_max_metric_time__plan0.sql +++ b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Redshift/test_min_max_metric_time__plan0.sql @@ -20,6 +20,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -31,6 +32,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -45,6 +47,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , CASE WHEN EXTRACT(dow FROM time_spine_src_28006.ds) = 0 THEN EXTRACT(dow FROM time_spine_src_28006.ds) + 7 ELSE EXTRACT(dow FROM time_spine_src_28006.ds) END AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Redshift/test_min_max_metric_time_week__plan0.sql b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Redshift/test_min_max_metric_time_week__plan0.sql index 1bd5e2e330..b762f6151a 100644 --- a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Redshift/test_min_max_metric_time_week__plan0.sql +++ b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Redshift/test_min_max_metric_time_week__plan0.sql @@ -20,6 +20,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -31,6 +32,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -45,6 +47,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , CASE WHEN EXTRACT(dow FROM time_spine_src_28006.ds) = 0 THEN EXTRACT(dow FROM time_spine_src_28006.ds) + 7 ELSE EXTRACT(dow FROM time_spine_src_28006.ds) END AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Snowflake/test_min_max_metric_time__plan0.sql b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Snowflake/test_min_max_metric_time__plan0.sql index 6d1f296f9d..b96ac5b039 100644 --- a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Snowflake/test_min_max_metric_time__plan0.sql +++ b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Snowflake/test_min_max_metric_time__plan0.sql @@ -20,6 +20,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -31,6 +32,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -45,6 +47,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(dayofweekiso FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Snowflake/test_min_max_metric_time_week__plan0.sql b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Snowflake/test_min_max_metric_time_week__plan0.sql index 9f37f05bc2..8ec903e380 100644 --- a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Snowflake/test_min_max_metric_time_week__plan0.sql +++ b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Snowflake/test_min_max_metric_time_week__plan0.sql @@ -20,6 +20,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -31,6 +32,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -45,6 +47,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(dayofweekiso FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Trino/test_min_max_metric_time__plan0.sql b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Trino/test_min_max_metric_time__plan0.sql index 0f0357e2e0..70b6a86c5a 100644 --- a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Trino/test_min_max_metric_time__plan0.sql +++ b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Trino/test_min_max_metric_time__plan0.sql @@ -20,6 +20,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -31,6 +32,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -45,6 +47,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(DAY_OF_WEEK FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1 diff --git a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Trino/test_min_max_metric_time_week__plan0.sql b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Trino/test_min_max_metric_time_week__plan0.sql index b1f33eb2a6..d05091c102 100644 --- a/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Trino/test_min_max_metric_time_week__plan0.sql +++ b/tests_metricflow/snapshots/test_query_rendering.py/SqlQueryPlan/Trino/test_min_max_metric_time_week__plan0.sql @@ -20,6 +20,7 @@ FROM ( , subq_0.ds__extract_day , subq_0.ds__extract_dow , subq_0.ds__extract_doy + , subq_0.ds__martian_day , subq_0.ds__day AS metric_time__day , subq_0.ds__week AS metric_time__week , subq_0.ds__month AS metric_time__month @@ -31,6 +32,7 @@ FROM ( , subq_0.ds__extract_day AS metric_time__extract_day , subq_0.ds__extract_dow AS metric_time__extract_dow , subq_0.ds__extract_doy AS metric_time__extract_doy + , subq_0.ds__martian_day AS metric_time__martian_day FROM ( -- Time Spine SELECT @@ -45,6 +47,7 @@ FROM ( , EXTRACT(day FROM time_spine_src_28006.ds) AS ds__extract_day , EXTRACT(DAY_OF_WEEK FROM time_spine_src_28006.ds) AS ds__extract_dow , EXTRACT(doy FROM time_spine_src_28006.ds) AS ds__extract_doy + , time_spine_src_28006.martian_day AS ds__martian_day FROM ***************************.mf_time_spine time_spine_src_28006 ) subq_0 ) subq_1