Skip to content

Commit

Permalink
Stop evaluating nodees if you find one with 0 joins
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Oct 10, 2023
1 parent c274045 commit 34f4d4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions metricflow/dataflow/builder/dataflow_plan_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ def _find_measure_recipe(
# this is going to be the lowest cost solution.
if len(evaluation.join_recipes) == 0:
logger.info("Not evaluating other nodes since we found one that doesn't require joins")
break

logger.info(f"Found {len(node_to_evaluation)} candidate measure nodes.")

Expand Down

0 comments on commit 34f4d4f

Please sign in to comment.