dbt-labs / dbt-athena

The athena adapter plugin for dbt (https://getdbt.com)
https://dbt-athena.github.io
Apache License 2.0
228 stars 100 forks source link

[Feature] Assign LFTags to source tables #706

Closed rstml closed 3 months ago

rstml commented 3 months ago

Is this your first time submitting a feature request?

Describe the feature

I'd like to manage all LF-Tags associations centrally, inside of the dbt project, including LF-Tags for the source tables. See for the context.

Describe alternatives you've considered

I tried to to add tags to dbt_project.yml as described here but it had no impact:

models:
  bronze:
    demo_transactions:
      +lf_tags_config:
        enabled: true
        tags:
          'Group:Team1': 'true'

Who will this benefit?

Anyone who has source tables defined in dbt. This would help centralise LFTags management across all tables.

Are you interested in contributing this feature?

Yes. I'm new to dbt and dbt adaptors. A few pointers would help to get started with.

Anything else?

I'm already using dbt-athena-external-tables. Is it better idea to implement this functionality in this module?

rstml commented 3 months ago

I've implemented this through dbt-external-tables macro as mentioned in the ticket. If anyone is interested, here's the source code: https://github.com/rstml/dbt-external-tables-athena