Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exports to saved queries #4421

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading