Skip to content

Commit

Permalink
Fix bug with functionally_identical comparisons on WhereConstraintNode
Browse files Browse the repository at this point in the history
  • Loading branch information
tlento committed Jun 25, 2024
1 parent d897b30 commit 922ee7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion metricflow/dataflow/nodes/where_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ def displayed_properties(self) -> Sequence[DisplayedProperty]: # noqa: D102
return tuple(super().displayed_properties) + (DisplayedProperty("where_condition", self.where),)

def functionally_identical(self, other_node: DataflowPlanNode) -> bool: # noqa: D102
return isinstance(other_node, self.__class__) and other_node.where == self.where
return (
isinstance(other_node, self.__class__)
and other_node.where == self.where
and other_node.always_apply == self.always_apply
)

def with_new_parents(self, new_parent_nodes: Sequence[DataflowPlanNode]) -> WhereConstraintNode: # noqa: D102
assert len(new_parent_nodes) == 1
Expand Down

0 comments on commit 922ee7f

Please sign in to comment.