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

(fixes #744) deprecate sql_where and provide an alternative #1129

Merged
merged 2 commits into from
Dec 5, 2018

Conversation

drewbanin
Copy link
Contributor

@drewbanin drewbanin commented Nov 15, 2018

Example usage:

{{ config(materialized='incremental') }}

select * from public.events

{% if is_incremental() %}
    where dvce_created_tstamp > (select max(dvce_created_tstamp) from {{ this }})
{% endif %}

TODO:

New incremental docs are here: https://docs.getdbt.com/v0.12/docs/configuring-incremental-models

@drewbanin drewbanin force-pushed the feature/better-incremental-models branch from 29fedd3 to 21c372c Compare December 5, 2018 15:42
@drewbanin drewbanin force-pushed the feature/better-incremental-models branch from 21c372c to 80232ff Compare December 5, 2018 15:45
Copy link
Contributor

@beckjake beckjake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm :shipit:

@drewbanin drewbanin merged commit 2cd24cf into dev/grace-kelly Dec 5, 2018
@drewbanin drewbanin deleted the feature/better-incremental-models branch December 5, 2018 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants