Skip to content

Deploying models into multiple datasets within BigQuery #6341

Answered by morsapaes
1cadumagalhaes asked this question in Q&A
Discussion options

You must be logged in to vote

Not an expert in the dbt-bigquery adapter, but as far as I understand from the adapter code: you should be able to use the schema configuration (which is interchangeable with dataset) to define datasets for individual sources and models; either in the config block or in dbt_project.yml.

Example (source):

models:
    stacktonic_example_project:
        marts:
            core:
                materialized: table
                +dataset: core
                +tags:
                    - "core"
                    - "daily"
            marketing:
                materialized: table
                +dataset: marketing
                +tags:
                    - "marketing"

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
5 replies
@1cadumagalhaes
Comment options

@1cadumagalhaes
Comment options

@jacopobianchini
Comment options

@1cadumagalhaes
Comment options

@jacopobianchini
Comment options

Answer selected by jtcohen6
Comment options

You must be logged in to vote
2 replies
@atd-vdeshbhratar
Comment options

@ngould
Comment options

Comment options

You must be logged in to vote
1 reply
@ruchak14
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants