From 87f82b8d02160cf8b3a50228a0df1ae4363675c7 Mon Sep 17 00:00:00 2001 From: Courtney Holcomb Date: Mon, 9 Oct 2023 20:05:42 -0700 Subject: [PATCH] Rename variable --- metricflow/dataflow/builder/dataflow_plan_builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(