Initial publish of dbt_f2dq (f2dq) package v0.12.1.

Clean package repo for Gitea installs via packages.yml git URL.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
M7XBeast
2026-10-11 17:37:40 +03:00
co-authored by Cursor
commit ff096b51b5
188 changed files with 5251 additions and 0 deletions
@@ -0,0 +1,13 @@
{% macro add_duplication_context(relation, unique_cols, sort_columns) %}
select {{ dbt_utils.star(from=relation) }}
, count(*) over (
partition by {{ f2dq.comma_delimited_list(unique_cols) }}
) as f2dq_duplicate_group_row_count
, row_number() over (
partition by {{ f2dq.comma_delimited_list(unique_cols) }} {% if sort_columns %} order by {{ f2dq.comma_delimited_list(sort_columns) }} {% endif %}
) as f2dq_duplicate_group_row_number
from {{ relation }}
{% endmacro %}