infinitelambda / dbt-tags

Tag-based masking policies management in Snowflake ❄️ 🏷️
https://dbt-tags.iflambda.com/latest
Apache License 2.0
12 stars 3 forks source link

feat: add macro to apply tags to source columns in on-run-end hook #16

Closed bsuryachandra closed 3 days ago

bsuryachandra commented 1 month ago

resolves #15

This is a:

All pull requests from community contributors should target the main branch (default).

Description & motivation

This PR introduces a new macro, apply_source_column_tags, which applies tags to the columns of all source tables. The macro can be used in the on-run-end hook to automate tagging source columns. It operates similarly to the existing apply_column_tags macro but is specifically designed for source tables.

The purpose of this change is to provide a streamlined method for applying tags to source columns, improving metadata management and enhancing data traceability. By tagging both models and source columns uniformly, it becomes easier to manage important or sensitive data within the data pipeline.

Checklist