Skip to content

Commit

Permalink
Add exports to saved queries
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewshaver committed Nov 8, 2023
1 parent 5b8991c commit 2803e7f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions website/docs/docs/build/saved-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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
Expand Down

0 comments on commit 2803e7f

Please sign in to comment.