add event _time to sources/snapshots/models/seeds#6384
add event _time to sources/snapshots/models/seeds#6384mirnawong1 merged 17 commits intoadd-event-timefrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| @@ -168,6 +168,24 @@ Configurations can be applied to snapshots using [YAML syntax](/docs/build/snaps | |||
|
|
|||
| <File name='dbt_project.yml'> | |||
|
|
|||
There was a problem hiding this comment.
grace mentioned event_time is supported for anythign that is ref-able. since snapshot is, i added event_time to it
| Sources only support one configuration, [`enabled`](/reference/resource-configs/enabled). | ||
| <VersionBlock lastVersion="1.8"> | ||
|
|
||
| Sources supports [`enabled`](/reference/resource-configs/enabled) and [`meta`](/reference/resource-configs/meta). |
There was a problem hiding this comment.
currently the doc mentions source only supports enabled. but other pages show that it supports meta, and not event_time.
|
|
||
| <VersionBlock lastVersion="1.8"> | ||
|
|
||
| Configuring an [`event_time`](/reference/resource-configs/event-time) for a source is only available in dbt Cloud Versionless or dbt Core versions 1.9 and later. |
There was a problem hiding this comment.
added an example here, does that make sense? tried to keep it with the clickstream example.
| </File> | ||
|
|
||
| In this example, the `event_time` is set to `event_timestamp`, which has the exact time each clickstream event happened. | ||
| Not only is this required for the [incremental microbatching strategy]((/docs/build/incremental-microbatch)), but when you compare data across [CI and production](/docs/deploy/advanced-ci#considerations) environments, dbt will use `event_timestamp` to filter and match data by this event-based timeframe, ensuring that only overlapping timeframes are compared. |
There was a problem hiding this comment.
Hiya @mirnawong1
This link takes me to a page not found.
I think this is the correct link: /docs/build/incremental-microbatch (I think it might be the double brackets causing the issue)
Kind Regards
Natalie
There was a problem hiding this comment.
thanks so much @nataliefiann , ok i fixed the link! it was the double parenthesis and also the #considerations is wrong - it should be/docs/deploy/advanced-ci#speeding-up-comparisons instead! great catch!
nataliefiann
left a comment
There was a problem hiding this comment.
Hiya @mirnawong1
Thanks for creating this doc. There was one error on the page. The microbatch link in line 279 took me to a page not found. I think this may be because of the double brackets.
Kind Regards
Natalie
this pr adds the
event_timeconfig to snapshots/seeds/sources/models pages since it's now supported.this also updates the sources config page as it only mentioned that 'enabled' is supported, but it looks like enabled, event_time, and meta are supported for sources.
this pr will merge into #6383
🚀 Deployment available! Here are the direct links to the updated files: