-
Notifications
You must be signed in to change notification settings - Fork 9
Description
What do I have
I have a dbt risingwave project with the following models
-- mv_A
{{
config(
materialized="materialized_view",
zero_downtime={'enabled': true},
)
}}
select *, 'EEE' as dummy_column
from {{ ref('xxxx') }}-- mv_B
{{
config(
materialized="materialized_view",
zero_downtime={'enabled': true},
)
}}
select dummy_column
from {{ ref('mv_A') }}-- tbl_C
{{
config(
materialized = 'table_with_connector',
)
}}
CREATE TABLE {{ this }} (
dummy_column string primary key
) ON CONFLICT DO UPDATE IF NOT NULL-- sink_D
{{ config(materialized="sink") }}
CREATE SINK {{ this }}
into {{ ref('tbl_C') }} FROM {{ ref('mv_B') }};I deploy the pipeline with dbt run, and everything works as expected
What do I do
I want to change the value of dummy column from EEE to FFF. So I updated the config of mv_A, and use dbt run --vars 'zero_downtime: true' to update the view by swap.
What do I see
mv_A and ``mv_Bare updated correctly, and the value of my dummy column is nowFFF`. But the dummy column in my `tbl_C` is still `EEE`, which is not updated.
I check the definition SQL of the tbl_C, and it is "definition":"CREATE SINK "dev"."dbt"."sink_D" INTO "dev"."dbt_vip"."tbl_C" FROM "dev"."dbt"."mv_B_dbt_zero_down_tmp_20251023T165835_277545+0000"" Look like we don't update the source of the table.
What do I expect
I want the definition of tbl_C is also updated to use the new mv_B, not the one being swapped out.