Skip to content

Commit

Permalink
add closing parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
Jstein77 committed Jan 23, 2024
1 parent 2efde10 commit c9418ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions website/docs/docs/dbt-cloud-apis/sl-jdbc.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ where="{{ Dimension('metric_time').grain('month') }} >= '2017-03-09' AND {{ Dim
select * from {{
semantic_layer.query(metrics=['food_order_amount', 'order_gross_profit'],
group_by=[Dimension('metric_time').grain('month'),'customer__customer_type'],
where=["{{ Dimension('metric_time').grain('month') }} >= '2017-03-09'", "{{ Dimension('customer__customer_type' }} in ('new')", "{{ Entity('order_id') }} = 10"]
where=["{{ Dimension('metric_time').grain('month') }} >= '2017-03-09'", "{{ Dimension('customer__customer_type') }} in ('new')", "{{ Entity('order_id') }} = 10"])
}}
```
Expand All @@ -313,7 +313,7 @@ select * from {{
semantic_layer.query(metrics=['food_order_amount', 'order_gross_profit'],
group_by=[Dimension('metric_time')],
limit=10,
order_by=['order_gross_profit']
order_by=['order_gross_profit'])
}}
```
Expand All @@ -324,7 +324,7 @@ select * from {{
semantic_layer.query(metrics=['food_order_amount', 'order_gross_profit'],
group_by=[Dimension('metric_time')],
limit=10,
order_by=[-'order_gross_profit']
order_by=[-'order_gross_profit'])
}}
```
If you are ordering by an object that's been operated on (e.g., change granularity), or you are using the full object notation, descending order must look like:
Expand All @@ -334,7 +334,7 @@ select * from {{
semantic_layer.query(metrics=['food_order_amount', 'order_gross_profit'],
group_by=[Dimension('metric_time').grain('week')],
limit=10,
order_by=[Metric('order_gross_profit').descending(True), Dimension('metric_time').grain('week').descending(True) ]
order_by=[Metric('order_gross_profit').descending(True), Dimension('metric_time').grain('week').descending(True) ])
}}
```
Expand All @@ -345,7 +345,7 @@ select * from {{
semantic_layer.query(metrics=['food_order_amount', 'order_gross_profit'],
group_by=[Dimension('metric_time').grain('week')],
limit=10,
order_by=[Metric('order_gross_profit'), Dimension('metric_time').grain('week')]
order_by=[Metric('order_gross_profit'), Dimension('metric_time').grain('week')])
}}
```
Expand Down

0 comments on commit c9418ff

Please sign in to comment.