-
Notifications
You must be signed in to change notification settings - Fork 977
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
feature: add new dynamic table paramaters #4835
Closed
HenkvanDyk
wants to merge
2
commits into
dbt-labs:current
from
HenkvanDyk:feature/dynamic-table-docs
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 | ||
---|---|---|---|---|
|
@@ -360,6 +360,10 @@ Dynamic tables are supported with the following configuration parameters: | |||
| [`on_configuration_change`](/reference/resource-configs/on_configuration_change) | `<string>` | no | `apply` | n/a | | ||||
| [`target_lag`](#target-lag) | `<string>` | yes | | alter | | ||||
| [`snowflake_warehouse`](#configuring-virtual-warehouses) | `<string>` | yes | | alter | | ||||
| [`refresh_mode`](#refresh-mode) | `<string>` | no | | n/a | | ||||
| [`initialize`](#initialize) | `<string>` | no | | n/a | | ||||
| [`comment`](#comment) | `<string>` | no | | n/a | | ||||
|
||||
|
||||
<Tabs | ||||
groupId="config-languages" | ||||
|
@@ -421,6 +425,7 @@ models: | |||
[on_configuration_change](/reference/resource-configs/on_configuration_change)="apply" | "continue" | "fail", | ||||
[target_lag](#target-lag)="downstream" | "<integer> seconds | minutes | hours | days", | ||||
[snowflake_warehouse](#configuring-virtual-warehouses)="<warehouse-name>", | ||||
[refresh_mode](#refresh-mode)="auto", | ||||
) }} | ||||
``` | ||||
|
||||
|
@@ -440,6 +445,34 @@ Snowflake allows two configuration scenarios for scheduling automatic refreshes: | |||
|
||||
Learn more about `target_lag` in Snowflake's [docs](https://docs.snowflake.com/en/user-guide/dynamic-tables-refresh#understanding-target-lag). | ||||
|
||||
|
||||
### Refresh Mode | ||||
Specifies the refresh type for the dynamic table. | ||||
- AUTO | ||||
|
||||
Enforces an incremental refresh of the dynamic table by default. If the CREATE DYNAMIC TABLE statement does not support the incremental refresh mode, the dynamic table is automatically created with the full refresh mode. | ||||
|
||||
You can verify the refresh mode using the SHOW DYNAMIC TABLES statement. The refresh_mode column shows the refresh mode in use, while the text column shows the user-specified refresh mode. | ||||
- FULL | ||||
|
||||
Enforces a full refresh of the dynamic table, even if the dynamic table can be incrementally refreshed. | ||||
- INCREMENTAL | ||||
|
||||
Enforces an incremental refresh of the dynamic table. If the query that underlies the dynamic table can’t perform an incremental refresh, dynamic table creation fails and displays an error message. | ||||
|
||||
### Initialize | ||||
Specifies the behavior of the initial refresh of the dynamic table | ||||
|
||||
- ON_CREATE | ||||
|
||||
Refreshes the dynamic table synchronously at creation. | ||||
- ON_SCHEDULE | ||||
|
||||
Refreshes the dynamic table at the next scheduled refresh. | ||||
|
||||
### Comment | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. per dbt-labs/dbt-snowflake#1081 removing
Suggested change
|
||||
Specifies a comment for the dynamic table. | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. per dbt-labs/dbt-snowflake#1081 removing
Suggested change
|
||||
|
||||
### Limitations | ||||
|
||||
As with materialized views on most data platforms, there are limitations associated with dynamic tables. Some worth noting include: | ||||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per dbt-labs/dbt-snowflake#1081 we removed
comment