Skip to content
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

Support BigQuery Materialized Views #18

Closed
ran-eh opened this issue Apr 10, 2020 · 40 comments
Closed

Support BigQuery Materialized Views #18

ran-eh opened this issue Apr 10, 2020 · 40 comments

Comments

@ran-eh
Copy link
Contributor

ran-eh commented Apr 10, 2020

Describe the feature

Support https://cloud.google.com/bigquery/docs/materialized-views-intro

Describe alternatives you've considered

  1. add BQ specific configuration:
{{ config(
    materialized='view',
    materialized-view='true' # default 'false
)}}
  1. create new materialization, initially for BQ only, over time perhaps implement for additional databases
{{ config(
    materialized='materialized-view',
)}}

Additional context

Some powerful stuff here https://cloud.google.com/bigquery/docs/materialized-views-intro

Who will this benefit?

BQ users

@drewbanin
Copy link
Contributor

See also dbt-labs/dbt-core#1162

I think it makes sense to have one issue per database to track the addition of materialized views in dbt. Thanks for opening this one @ran-eh!

@sungchun12
Copy link
Contributor

I highly recommend prioritizing this feature as it minimizes the need for extra incremental model logic for downstream datasets!

@drewbanin
Copy link
Contributor

Right on @sungchun12! We're excited about materialized views too!

Our plan for supporting MVs is going to be to build them in a package. This will let us get some early feedback and iterate on their implementation without waiting for the regular dbt release cadence (every ~6 weeks or so).

This is pre-alpha, but if you want to check out the current approach and progress, you can have a look over here: https://github.com/fishtown-analytics/dbt-labs-experimental-features

@tuanchris
Copy link

tuanchris commented Aug 26, 2021

@drewbanin Hi Drew, any update on this?

@drewbanin
Copy link
Contributor

@jtcohen6 what do you think - should dbt support materialized views natively?

@tuanchris for what it's worth, there is a working materialization for BQ materialized views here: https://github.com/dbt-labs/dbt-labs-experimental-features/tree/master/materialized-views/macros/bigquery . You can either add this package to your packages.yml file, or copy/paste this materialization and supporting macro code directly into the macros/ directory of your dbt project.

@slagathorr
Copy link

Just a note, this is a pretty important feature to have, especially as folks are trying to build data objects in BQ to support analytics use cases, which MVs are pretty critical for in many cases.

@jtcohen6 jtcohen6 transferred this issue from dbt-labs/dbt-core Oct 12, 2021
@jtcohen6 jtcohen6 added the type:enhancement New feature or request label Oct 12, 2021
@ian-wesley
Copy link

This would be very helpful for my current use case. Any update on when this is coming?

@var-bolt
Copy link

+1

@NoamMosko
Copy link

+1 :)

@sboyaci
Copy link

sboyaci commented Jan 17, 2022

+1

@THEdavehogue
Copy link

+1

4 similar comments
@enzorooo
Copy link

+1

@kieronellis
Copy link

+1

@pmunari
Copy link

pmunari commented Jun 24, 2022

+1

@araa47
Copy link

araa47 commented Jun 28, 2022

+1

@ytaniguchi8
Copy link

+1 :)

@Bruno1298
Copy link

+1

2 similar comments
@borislitvak
Copy link

+1

@buckybush
Copy link

+1

@gscs-data
Copy link

+2

@octavio-melo
Copy link

+1

2 similar comments
@bilus
Copy link

bilus commented Aug 10, 2022

+1

@dinigo
Copy link

dinigo commented Aug 17, 2022

+1

@willbryant
Copy link

willbryant commented Aug 17, 2022

Will you guys knock it off? The way to vote on things is to use the 👍 reaction on the description at the top, not to post comments.

@dinigo
Copy link

dinigo commented Aug 17, 2022

@willbryant : Upvotes won't prevent the issue from going "stale" and being automatically archived by the bot (which we definitely don't want).

Also upvotes wont bump the issue, so developers will not have a sense of priority.

But you can customise your subscription to prevent "alarm fatigue" (spam)
image

@marcoruggine
Copy link

+1, this is essential

@SPTKL
Copy link

SPTKL commented Oct 27, 2022

+1

@darthhash
Copy link

+1

@ee-jayson
Copy link

  • This is so needed!

@minhajpasha
Copy link

+1

4 similar comments
@dylanbhughes
Copy link

+1

@dreinon
Copy link

dreinon commented Jan 19, 2023

+1

@yuganghu
Copy link

+1

@artem110101
Copy link

+1

@techadmin-getsales
Copy link

+1

1 similar comment
@jmarbach
Copy link

+1

@kverburg
Copy link

+1

2 similar comments
@geerdink
Copy link

geerdink commented Dec 4, 2023

+1

@minghanxchiang
Copy link

+1

@dinigo
Copy link

dinigo commented Jan 16, 2024

This was implemented in dbt v1.7 dbt-labs/dbt-core#8449

Here an article from their blog
https://docs.getdbt.com/blog/announcing-materialized-views

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests