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
+29
View File
@@ -0,0 +1,29 @@
{% macro f2dq_metric_diff(context) %}
max({{context.column_name}}) - min({{context.column_name}})
{% endmacro %}
{% macro f2dq_metric_my_custom_table_metric(context) %}
1000
{% endmacro %}
{% macro f2dq_metric_regex_test(context) %}
{{ regex_test(context.column_name, context.config.regex) }}
{% endmacro %}
{% macro regex_test(column_name, pattern) %}
coalesce(
sum(
case when {{ f2dq.regex_match_expression(column_name, pattern) }}
then 1
else 0
end
), 0
)
{% endmacro %}
{% macro f2dq_metric_my_distinct_table_rows(context) %}
with temp_table AS (
select distinct * from {{ context.table_name }}
)
select coalesce(count(*), 0) FROM temp_table
{% endmacro %}