diff --git a/metricflow/dataflow/builder/dataflow_plan_builder.py b/metricflow/dataflow/builder/dataflow_plan_builder.py index 2fdc8147cd..c5bb2a5469 100644 --- a/metricflow/dataflow/builder/dataflow_plan_builder.py +++ b/metricflow/dataflow/builder/dataflow_plan_builder.py @@ -560,7 +560,7 @@ def _find_measure_recipe( if len(node_to_evaluation) > 0: # All source nodes cost the same. Get evaluation with lowest number of joins. node_with_lowest_evaluation_cost = min( - node_to_evaluation, key=lambda x: len(node_to_evaluation[x].join_recipes) + node_to_evaluation, key=lambda node: len(node_to_evaluation[node].join_recipes) ) evaluation = node_to_evaluation[node_with_lowest_evaluation_cost] logger.info(