[Feature] Allow changing the destination schema for the __dbt_tmp
tables.
#519
Labels
pkg:dbt-bigquery
Issue affects dbt-bigquery
triage:product
In Product's queue
type:enhancement
New feature request
Is this your first time submitting a feature request?
Describe the feature
make_temp_relation
will always use the schema of the target table to create the__dbt_tmp
table. Currently there's no way to change this.To keep production datasets clean, it would be ideal to have the option to specify a different dataset for temporary tables.
Additionally, in BigQuery, storage can be billed based on physical or logical bytes, but this is only defined at dataset level. Depending on the nature of the table, it might be more beneficial to set the dataset at physical or logical bytes. Sometimes, it might be beneficial to have the
__dbt_tmp
on a logical dataset while keeping the target dataset on a physicial billing. to achieve this we require having two different datasets.Without touching
make_temp_relation
and going intodbt-adapters
(alternative solution), one option could be something like the following, where we extendincremental.sql
with an extra config variable:Describe alternatives you've considered
We could move this change to the dpt-adapters instead, extending the
make_temp_relation
with an extra parametertemp_schema
. Something like:Who will this benefit?
Users in bigquery who want to optimise for storage costs and clean datasets.
Are you interested in contributing this feature?
Yes
Anything else?
No response
The text was updated successfully, but these errors were encountered: