-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
tests_metricflow/snapshots/test_cli_quiet.py/str/DuckDB/test_explain__result.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
test_name: test_explain | ||
test_filename: test_cli_quiet.py | ||
docstring: | ||
Test that the `--quiet` flag only shows the SQL when explaining a query. | ||
--- | ||
SELECT | ||
metric_time__day | ||
, SUM(bookings) AS bookings | ||
FROM ( | ||
SELECT | ||
DATE_TRUNC('day', ds) AS metric_time__day | ||
, 1 AS bookings | ||
FROM ***************************.fct_bookings bookings_source_src_10000 | ||
) subq_2 | ||
GROUP BY | ||
metric_time__day | ||
ORDER BY metric_time__day |
14 changes: 14 additions & 0 deletions
14
tests_metricflow/snapshots/test_cli_quiet.py/str/DuckDB/test_query__result.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
test_name: test_query | ||
test_filename: test_cli_quiet.py | ||
docstring: | ||
Test that the `--quiet` flag only shows the table when running a query. | ||
--- | ||
metric_time__day bookings | ||
------------------- ---------- | ||
2019-12-01T00:00:00 1 | ||
2019-12-18T00:00:00 10 | ||
2019-12-19T00:00:00 18 | ||
2019-12-20T00:00:00 2 | ||
2020-01-01T00:00:00 5 | ||
2020-01-02T00:00:00 9 | ||
2020-01-03T00:00:00 1 |