Skip to content

Commit

Permalink
Raise appropriate error if time constraint is used without metric_time
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Jan 30, 2024
1 parent a28e227 commit 556a458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metricflow/dataflow/builder/dataflow_plan_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ def _build_aggregated_measure_from_measure_source_node(
if (
cumulative_metric_adjusted_time_constraint is not None
and time_range_constraint is not None
and queried_agg_time_dimension_specs
and queried_linkable_specs.contains_metric_time
):
cumulative_metric_constrained_node = ConstrainTimeRangeNode(
unaggregated_measure_node, time_range_constraint
Expand Down

0 comments on commit 556a458

Please sign in to comment.