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

How to add refresh rate in config for materialized views in dataform ? #1392

Open
Rstar1998 opened this issue Oct 31, 2022 · 4 comments
Open

Comments

@Rstar1998
Copy link

Also in addition to this , is there any precise documentation where we can lookup what all key values we can put in config for tables , view etc

@astorrs
Copy link

astorrs commented Oct 31, 2022

We had discussed having that when support for materialized views was first added (#1302) but I'm not sure if it was ever implemented. @BenBirt ?

@BenBirt
Copy link
Collaborator

BenBirt commented Nov 1, 2022

No, we haven't added that yet unfortunately.

Probably the best place to see what options are available is: https://docs.dataform.co/reference#ITableConfig

@Ekrekr
Copy link
Contributor

Ekrekr commented Feb 13, 2023

@canberkkoparal canberkkoparal self-assigned this Feb 15, 2023
@canberkkoparal
Copy link
Contributor

It is possible to achieve this using using bigquery.additionalOptions since #1335
example config:

config { 
    type: "view",
    materialized: true,
    bigquery: {
        additionalOptions: {
            enable_refresh: "true",
            refresh_interval_minutes: "30"
        }
    }
}

would produce sql with OPTIONS(enable_refresh=true, refresh_interval_minutes=30)
One important thing is these are not type/validty checked in anyway, so you would not get any errors until execution (i.e. it would compile)
Here's our documentation and available options for 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

5 participants