Skip to content

Commit

Permalink
fixup! Align Dataflow Plans
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Nov 8, 2024
1 parent fbc9c9f commit 08c3e00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions metricflow/dataflow/builder/dataflow_plan_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1735,7 +1735,7 @@ def _build_pre_aggregation_plan(
queried_linkable_specs: Optional[LinkableSpecSet] = None,
distinct: bool = False,
) -> DataflowPlanNode:
# TODO: docstring
"""Adds standard pre-aggegation steps after building source node and before aggregation."""
output_node = source_node
if join_targets:
output_node = JoinOnEntitiesNode.create(left_node=output_node, join_targets=join_targets)
Expand All @@ -1762,7 +1762,7 @@ def _build_pre_aggregation_plan(
output_node = self._build_semi_additive_join_node(
measure_properties=measure_properties,
queried_linkable_specs=queried_linkable_specs,
current_node=output_node,
parent_node=output_node,
)

output_node = FilterElementsNode.create(
Expand All @@ -1775,7 +1775,7 @@ def _build_semi_additive_join_node(
self,
measure_properties: MeasureSpecProperties,
queried_linkable_specs: LinkableSpecSet,
current_node: DataflowPlanNode,
parent_node: DataflowPlanNode,
) -> SemiAdditiveJoinNode:
non_additive_dimension_spec = measure_properties.non_additive_dimension_spec
assert (
Expand All @@ -1799,7 +1799,7 @@ def _build_semi_additive_join_node(
LinklessEntitySpec.from_element_name(name) for name in non_additive_dimension_spec.window_groupings
)
return SemiAdditiveJoinNode.create(
parent_node=current_node,
parent_node=parent_node,
entity_specs=window_groupings,
time_dimension_spec=time_dimension_spec,
agg_by_function=non_additive_dimension_spec.window_choice,
Expand Down

0 comments on commit 08c3e00

Please sign in to comment.