From 38761fec874fdd843f6283fe130ff64353e1ab89 Mon Sep 17 00:00:00 2001 From: Courtney Holcomb Date: Tue, 12 Sep 2023 18:40:11 -0700 Subject: [PATCH] Temp: block date part for grain to date --- metricflow/plan_conversion/dataflow_to_sql.py | 1 - 1 file changed, 1 deletion(-) diff --git a/metricflow/plan_conversion/dataflow_to_sql.py b/metricflow/plan_conversion/dataflow_to_sql.py index 84b2e0d261..1b04666460 100644 --- a/metricflow/plan_conversion/dataflow_to_sql.py +++ b/metricflow/plan_conversion/dataflow_to_sql.py @@ -1376,7 +1376,6 @@ def visit_join_to_time_spine_node(self, node: JoinToTimeSpineNode[SourceDataSetT time_granularity=metric_time_dimension_spec.time_granularity, arg=time_spine_column_select_expr ) if node.offset_to_grain: - # TODO: allow offset_to_grain w/ granularity & datepart? what's the expected behavior? # Filter down to one row per granularity period new_filter = SqlComparisonExpression( left_expr=select_expr, comparison=SqlComparison.EQUALS, right_expr=time_spine_column_select_expr