Skip to content

Commit

Permalink
add closing parenthesis (#4785)
Browse files Browse the repository at this point in the history
## What are you changing in this pull request and why?
This PR adds closing parenthesis to the JDBC query examples.
  • Loading branch information
mirnawong1 authored Jan 23, 2024
2 parents faf80d1 + fd56b99 commit 3c5d782
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 @@ -338,7 +338,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 @@ -363,7 +363,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 @@ -374,7 +374,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 @@ -385,7 +385,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 @@ -396,7 +396,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 3c5d782

Please sign in to comment.