-
Notifications
You must be signed in to change notification settings - Fork 166
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
[ADAP-693] No materialization 'materialized_view' was found for adapter bigquery! (searched types 'default' and 'bigquery') #818
Comments
+1, also experiencing this issue in DBT Cloud. 06:32:16 Began running node model.staging.stg_event__utms |
@ahenaor @jd175 is this something that has worked for you before? as far as I know, materialized views are not supported in dbt-bigquery today. However we hope to support them in the very near future! See dbt-labs/dbt-adapters#589 |
In the DBT documentation. In the section Bigquery Configurations LINK: https://docs.getdbt.com/reference/resource-configs/bigquery-configs#materialized-view They indicate that Bigquery supports materialized views and indicate how to configure this materialization. I followed the indications and later the output is the error that I write here. I'm surprised then that you tell me that DBT and the BigQuery connector really don't support materialized views. |
I had the same experience as @ahenaor - I was setting up a new model and following the BigQuery config guide. Is the guide incorrect? |
@ahenaor @jd175. I'm sorry! this was our bad. we are tracking to have materialized views shipped as part of dbt-core 1.6.0, which is currently in beta and planned for release in a few weeks. Our docs team added the functionality added the new feature, but missed adding the code to have it only show up when I can say that MVs are coming to dbt-bigquery, and I'll reach out to both of you when they're (closer) to ready! |
Hello, |
Is this a new bug in dbt-bigquery?
Current Behavior
My problem is relatively simple but I can't find a solution in the dbt documentation and in forum searches.
I try to create a materialized view in bigquery from my dbt project and get the following error message when trying to run the model:
dbt run --models raw_data.base.clientes
04:57:40 Running with dbt=1.5.2
04:57:41 Registered adapter: bigquery=1.5.3
04:57:41 Unable to do partial parsing because profile has changed
04:57:42 Found 5 models, 4 tests, 0 snapshots, 0 analyses, 362 macros, 0 operations, 0 seed files, 2 sources, 0 exposures, 0 metrics, 0 groups
04:57:42
04:57:45 Concurrency: 4 threads (target='dev')
04:57:45
04:57:45 1 of 1 START sql materialized_view model dbt.clientes .......................... [RUN]
04:57:45 1 of 1 ERROR creating sql materialized_view model dbt.clientes ................. [ERROR in 0.02s]
04:57:45
04:57:45 Finished running 1 materialized_view model in 0 hours 0 minutes and 3.53 seconds (3.53s).
04:57:45
04:57:45 Completed with 1 error and 0 warnings:
04:57:45
04:57:45 Compilation Error in model clientes (models/raw_data/base/clientes.sql)
04:57:45 No materialization 'materialized_view' was found for adapter bigquery! (searched types 'default' and 'bigquery')
04:57:45
04:57:45 Done. PASS=0 WARN=0 ERROR=1 SKIP=0 TOTAL=1
This is my model and its configuration:
`
{{
config(
materialized = 'materialized_view',
auto_refresh = true,
on_configuration_change = "apply",
alias="clientes",
schema="data_outputs",
persist_docs={"relation": true, "columns": true},
)
}}
SELECT id, identificacion, ciudad, correo, telefono
FROM {{ ref("historico_clientes") }}
QUALIFY ROW_NUMBER() OVER(PARTITION BY identificacion ORDER BY ts_store_procedure DESC) = 1
`
Expected Behavior
The expected behavior is that my model is created as materialized view in bigquery
Steps To Reproduce
dbt run --models raw_data.base.clientes
Relevant log output
No response
Environment
Additional Context
None
The text was updated successfully, but these errors were encountered: