Skip to content

Commit

Permalink
Skip non-supported calculation method
Browse files Browse the repository at this point in the history
Signed-off-by: Wei-Chun, Chang <[email protected]>
  • Loading branch information
wcchang1115 committed Sep 4, 2023
1 parent fb1bbdc commit 0616ac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions piperider_cli/dbtutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,10 @@ def _create_metric(name, filter=None, alias=None):
f"Dimension of foreign entities is not supported.")
statistics.add_field_one('nosupport')
return None
if m.calculation_method == 'median':
if m.calculation_method in ['sum_boolean', 'count_distinct', 'median', 'percentile']:
console.print(
f"[[bold yellow]Skip[/bold yellow]] Metric '{metric.get('name')}'. "
f"Aggregation type 'median' is not supported.")
f"Aggregation type '{m.calculation_method}' is not supported.")
statistics.add_field_one('nosupport')
return None

Expand Down

0 comments on commit 0616ac3

Please sign in to comment.