From c9418ff1a89bf39c82567ceab0f6cf88d8ebad4d Mon Sep 17 00:00:00 2001 From: Jordan Stein Date: Tue, 23 Jan 2024 10:19:00 -0800 Subject: [PATCH] add closing parenthesis --- website/docs/docs/dbt-cloud-apis/sl-jdbc.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/website/docs/docs/dbt-cloud-apis/sl-jdbc.md b/website/docs/docs/dbt-cloud-apis/sl-jdbc.md index 97f70902c74..0927f8acc02 100644 --- a/website/docs/docs/dbt-cloud-apis/sl-jdbc.md +++ b/website/docs/docs/dbt-cloud-apis/sl-jdbc.md @@ -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"]) }} ``` @@ -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']) }} ``` @@ -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: @@ -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) ]) }} ``` @@ -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')]) }} ```