Open DavidfNZ opened 1 year ago
When fetching tag references (TAG_REFERENCES_ALL_COLUMNS function), Snowflake treats tables and views as the same. So it should be only the 'alter table' statements that need fixing. Probably easiest to toggle this based on the dbt model config (res.node.config.materialized == 'view') rather than doing information schema queries to determine which it is.
yes i've done a bit of investigation and that was my conclusion as well. so can pass that attribute thru to the routine that generates the ALTER atatement
We have a need to be able to apply column tags to either tables or views (particularly views in the serving layer).