Skip to content

An experimental dbt package for BigQuery offering several materializations.

Notifications You must be signed in to change notification settings

logicoffee/dbt-bigquery-extras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

dbt-bigquery-extras

This is an experimental package for my study.

custom materialization

load

LOAD DATA statement as a model. Model body isn't needed.

{{
    config(
        materialized = 'load'
        load_options = {
            'uris': [
                'gs://bucket/dir1/*.parquet',
                'gs://bucket/dir2/*.parquet'
            ],
            'format': 'parquet',
        },
    )
}}

table_snapshot

CREATE SNAPSHOT TABLE statement as a model. Model body isn't needed.

The snapshot materialization is already implemented in here. It's used in the dbt snapshot command. To prevent duplication, I named it table_snapshot.

{{
    config(
        materialized = 'table_snapshot',
        source_table = 'my_schema.source_table'
    )
}}

table_clone

CREATE TABLE CLONE statement as a model. Model body isn't needed.

The clone materialization is already implemented in here. It's used in defer. To prevent duplication, I named it table_clone.

{{
    config(
        materialized = 'table_clone',
        source_table = 'my_schema.source_table'
    )
}}

About

An experimental dbt package for BigQuery offering several materializations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published