{{
config(
materialized="table",
table_type="iceberg",
post_hook="alter table model drop column to_drop"
)
}}
select 1 as id, 'to_drop' as to_drop
Previously, dbt docs generate command generated catalog.json artifact which included to_drop column as well, however it did not exist in current table version.
Current PR fixes this behaviour and stores in catalog.json file only actual columns.
Description
Remove non-current iceberg columns from catalog
Models used to test - Optional
Previously,
dbt docs generate
command generatedcatalog.json
artifact which includedto_drop
column as well, however it did not exist in current table version. Current PR fixes this behaviour and stores incatalog.json
file only actual columns.Checklist