From fa1b56750c9635d503418104799a9b4ef8ce0a5b Mon Sep 17 00:00:00 2001 From: keerthi-kamarthi Date: Tue, 16 Jun 2026 15:21:44 -0500 Subject: [PATCH 1/2] Minor Where Param updates --- dbt-metricflow/dbt_metricflow/cli/mf_sql.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dbt-metricflow/dbt_metricflow/cli/mf_sql.py b/dbt-metricflow/dbt_metricflow/cli/mf_sql.py index a77f5f761f..64be619ae3 100644 --- a/dbt-metricflow/dbt_metricflow/cli/mf_sql.py +++ b/dbt-metricflow/dbt_metricflow/cli/mf_sql.py @@ -187,8 +187,9 @@ def _build_fast_path_engine(manifest_source: str, dialect: str) -> MetricFlowEng @click.option( "--where", type=str, - default=None, - help=("SQL-like where statement string. Example: \"{{ Dimension('order_id__revenue') }} > 100\""), + multiple=True, + default=(), + help=("SQL-like where statement string. Repeat for multiple conditions (ANDed together). Example: \"{{ Dimension('order_id__revenue') }} > 100\""), ) @click.option( "--start-time", @@ -231,7 +232,7 @@ def cli( # noqa: D103 dialect: str, metrics: str, group_by: str, - where: Optional[str], + where: Sequence[str], start_time: Optional[str], end_time: Optional[str], order: str, @@ -249,7 +250,7 @@ def cli( # noqa: D103 limit=limit, time_constraint_start=_parse_optional_datetime(start_time), time_constraint_end=_parse_optional_datetime(end_time), - where_constraints=[where] if where else None, + where_constraints=list(where) if where else None, order_by_names=_parse_csv(order), ) From 53089660260ecc9a85d3805e201eb7ab98c661ad Mon Sep 17 00:00:00 2001 From: keerthi-kamarthi Date: Tue, 16 Jun 2026 15:36:43 -0500 Subject: [PATCH 2/2] lint fix --- dbt-metricflow/dbt_metricflow/cli/mf_sql.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dbt-metricflow/dbt_metricflow/cli/mf_sql.py b/dbt-metricflow/dbt_metricflow/cli/mf_sql.py index 64be619ae3..301172ac65 100644 --- a/dbt-metricflow/dbt_metricflow/cli/mf_sql.py +++ b/dbt-metricflow/dbt_metricflow/cli/mf_sql.py @@ -189,7 +189,9 @@ def _build_fast_path_engine(manifest_source: str, dialect: str) -> MetricFlowEng type=str, multiple=True, default=(), - help=("SQL-like where statement string. Repeat for multiple conditions (ANDed together). Example: \"{{ Dimension('order_id__revenue') }} > 100\""), + help=( + "SQL-like where statement string. Repeat for multiple conditions (ANDed together). Example: \"{{ Dimension('order_id__revenue') }} > 100\"" + ), ) @click.option( "--start-time",