Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions dbt-metricflow/dbt_metricflow/cli/mf_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,11 @@ 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",
Expand Down Expand Up @@ -231,7 +234,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,
Expand All @@ -249,7 +252,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),
)

Expand Down
Loading