-
Notifications
You must be signed in to change notification settings - Fork 134
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
allow _dbt_max_partition
to be disabled
#17
Comments
I am for the suggestion. Calculating |
I agree we should come out with a resolution for this in the next version of dbt. It feels relevant to ongoing and recent work around:
Here's a comment I left over on dbt-labs/dbt-core#2976, but I think this issue is the better place for discussing it:
What's not obvious to me is whether that config should be:
|
I like the idea of using the It would be even better to have it disabled by default and explicitly enabled by the model creator only when required (via a code snippet as proposed). But this seems not possible for backward compatibility reasons as the current default behavior is to compute the |
Really helpful comment by @bcolbert978 about another way we could go about this: dbt-labs/dbt-core#3666 (comment) I'm starting to think, |
Describe the feature
In dbt v0.16, dbt run will make query calls for
_dbt_max_partition
on all BigQuery partitioned incremental models.In our situation, we have many very large partitioned incremental models that have no use of
_dbt_max_partition
. However, they still have to query_dbt_max_partition
. It is very costly when the runs in production add up.Could we disable
_dbt_max_partition
for models that have no use of it?Describe alternatives you've considered
To allow the model config to disable
_dbt_max_partition
for a particular model.for example,
Additional context
This is specific to BigQuery database, and it's part of the new merge feature from dbt v0.16
Who will this benefit?
Everyone who own very large BigQuery tables for incremental runs but not using
_dbt_max_partition
The text was updated successfully, but these errors were encountered: