Skip to content

Commit

Permalink
Fix group by expression for BigQuery tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tlento committed Dec 16, 2023
1 parent df05ee9 commit c5d2971
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions metricflow/test/integration/test_cases/itest_order_limit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,15 @@ integration_test:
check_order: true
check_query: |
SELECT
{{ render_date_trunc("ds", TimeGranularity.MONTH) }} AS metric_time__month
metric_time__month
, SUM(booking_value) AS booking_value
FROM {{ source_schema }}.fct_bookings
FROM (
SELECT
{{ render_date_trunc("ds", TimeGranularity.MONTH) }} AS metric_time__month
, booking_value AS booking_value
FROM {{ source_schema }}.fct_bookings
) a
GROUP BY
{{ render_date_trunc("ds", TimeGranularity.MONTH) }}
metric_time__month
ORDER BY
metric_time__month DESC, booking_value

0 comments on commit c5d2971

Please sign in to comment.