-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
deprecate sql_where #744
Comments
@jthandy I'm thinking about a better way to handle incremental models. I think that the general pattern in place currently is a good one, but we could make it a lot simpler with a macro. I figure we can provide this
-- models/some_model.sql
{{ config(materialized='incremental') }}
select * from public.events
{% if is_incremental() %}
where dvce_created_tstamp > (select max(dvce_created_tstamp) from {{ this }})
{% endif %} This is just some sugar over the existing implementation, but it also helps dbt avoid doing any queries at parse-time Very happy to iterate on this -- keen to hear your thoughts! cc @clrcrl |
i just wanted to get people to stop using a bad feature we built in 2016 so this is beyond my wildest dreams :D I have literally nothing to add to this--love it. |
So as I mentioned to @drewbanin in person, I also love this! |
I'm with you @clrcrl -- |
…mental-models (fixes #744) deprecate sql_where and provide an alternative
See also:
The
sql_where
config isn't actually useful and people shouldn't use it. We should:sql_where
is providedsql_where
no longer requiredThe text was updated successfully, but these errors were encountered: