From 933803a61ecb19968bad0a7659af8de82719f901 Mon Sep 17 00:00:00 2001 From: Paul Yang Date: Fri, 21 Feb 2025 15:32:20 -0800 Subject: [PATCH] Update snapshots. --- .../str/DuckDB/test_explain__result.txt | 17 +++++++++++++++++ .../str/DuckDB/test_query__result.txt | 14 ++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 tests_metricflow/snapshots/test_cli_quiet.py/str/DuckDB/test_explain__result.txt create mode 100644 tests_metricflow/snapshots/test_cli_quiet.py/str/DuckDB/test_query__result.txt diff --git a/tests_metricflow/snapshots/test_cli_quiet.py/str/DuckDB/test_explain__result.txt b/tests_metricflow/snapshots/test_cli_quiet.py/str/DuckDB/test_explain__result.txt new file mode 100644 index 000000000..00f8205d8 --- /dev/null +++ b/tests_metricflow/snapshots/test_cli_quiet.py/str/DuckDB/test_explain__result.txt @@ -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 diff --git a/tests_metricflow/snapshots/test_cli_quiet.py/str/DuckDB/test_query__result.txt b/tests_metricflow/snapshots/test_cli_quiet.py/str/DuckDB/test_query__result.txt new file mode 100644 index 000000000..d10fd322e --- /dev/null +++ b/tests_metricflow/snapshots/test_cli_quiet.py/str/DuckDB/test_query__result.txt @@ -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