From ceaf43112e3f415d88d31a7ea201f429f701f8f5 Mon Sep 17 00:00:00 2001 From: Paul Yang Date: Mon, 11 Nov 2024 16:08:01 -0800 Subject: [PATCH] Add `SqlQueryOptimizationLevel.default_level(). --- metricflow/sql/optimizer/optimization_levels.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/metricflow/sql/optimizer/optimization_levels.py b/metricflow/sql/optimizer/optimization_levels.py index f1f965d73..061e14ca1 100644 --- a/metricflow/sql/optimizer/optimization_levels.py +++ b/metricflow/sql/optimizer/optimization_levels.py @@ -23,6 +23,10 @@ class SqlQueryOptimizationLevel(Enum): O4 = "O4" O5 = "O5" + @staticmethod + def default_level() -> SqlQueryOptimizationLevel: # noqa: D102 + return SqlQueryOptimizationLevel.O4 + @dataclass(frozen=True) class SqlGenerationOptionSet: