From 2803e7f2b931dcf6bdbd71690387103e0946f516 Mon Sep 17 00:00:00 2001 From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com> Date: Wed, 8 Nov 2023 15:32:41 -0500 Subject: [PATCH] Add exports to saved queries --- website/docs/docs/build/saved-queries.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/website/docs/docs/build/saved-queries.md b/website/docs/docs/build/saved-queries.md index 39a4b2e52fd..9badb95d3fd 100644 --- a/website/docs/docs/build/saved-queries.md +++ b/website/docs/docs/build/saved-queries.md @@ -21,6 +21,7 @@ To define a saved query, refer to the following specification: | `metrics` | The metrics included in the saved query. | Required | | `group_bys` | The value displayed in downstream tools. | Required | | `where` | Filter applied to the query. | Optional | +| `exports`| Export query as materialization. | Optional | The following is an example of a saved query: @@ -36,6 +37,12 @@ saved_query: - Dimension('listing__capacity_latest') where: - "{{ Dimension('listing__capacity_latest') }} > 3" + exports: + - name: my_query + config: + export_as: table # options: table, view - FUTURE: incremental_table, window_table, file + schema: my_schema # [optional - DEFAULT to deployment schema] + alias: some_table_name # [optional - DEFAULT to export name] ``` ### FAQs