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,27 @@
version: 2
models:
- name: validated_emails
tests:
- dbt_utils.equality:
compare_model: ref('expected_validated_emails')
- name: validated_numbers
tests:
- dbt_utils.equality:
compare_model: ref('expected_validated_numbers')
- name: validated_date_and_time
tests:
- dbt_utils.equality:
compare_model: ref('expected_validated_date_and_time')
- name: validated_ips
tests:
- dbt_utils.equality:
compare_model: ref('expected_validated_ips')
- name: validated_uuids
tests:
- dbt_utils.equality:
compare_model: ref('expected_validated_uuids')
@@ -0,0 +1,14 @@
with
all_rows as (
select * from {{ ref('validate_date_and_time') }}
)
select *,
case when {{ f2dq.valid_date_eu('date_time') }} then 1 else 0 end as valid_date_eu,
case when {{ f2dq.valid_date_us('date_time') }} then 1 else 0 end as valid_date_us,
case when {{ f2dq.valid_date_inverse('date_time') }} then 1 else 0 end as valid_date_inverse,
case when {{ f2dq.valid_date_iso_8601('date_time') }} then 1 else 0 end as valid_date_iso_8601,
case when {{ f2dq.valid_time_24h('date_time') }} then 1 else 0 end as valid_time_24h,
case when {{ f2dq.valid_time_12h('date_time') }} then 1 else 0 end as valid_time_12h,
case when {{ f2dq.valid_time('date_time') }} then 1 else 0 end as valid_time
from all_rows
@@ -0,0 +1,7 @@
with
all_emails as (
select * from {{ ref('validate_emails') }}
)
select *, case when {{ f2dq.valid_email('email') }} then 1 else 0 end as email_valid
from all_emails
@@ -0,0 +1,10 @@
with
all_rows as (
select * from {{ ref('validate_ip') }}
)
select *,
case when {{ f2dq.valid_ip_v4('ip_address') }} then 1 else 0 end as valid_ip_v4,
case when {{ f2dq.valid_ip_v6('ip_address') }} then 1 else 0 end as valid_ip_v6,
case when {{ f2dq.valid_ip('ip_address') }} then 1 else 0 end as valid_ip
from all_rows
@@ -0,0 +1,13 @@
with
all_num_rows as (
select * from {{ ref('validate_numbers') }}
)
select *,
case when {{ f2dq.valid_number('number') }} then 1 else 0 end as is_number,
case when {{ f2dq.valid_number_decimal_point('number') }} then 1 else 0 end as is_number_decimal_point,
case when {{ f2dq.valid_number_decimal_comma('number') }} then 1 else 0 end as is_number_decimal_comma,
case when {{ f2dq.valid_number_percentage('number') }} then 1 else 0 end as is_percentage,
case when {{ f2dq.valid_number_percentage_point('number') }} then 1 else 0 end as is_percentage_decimal_point,
case when {{ f2dq.valid_number_percentage_comma('number') }} then 1 else 0 end as is_percentage_decimal_comma
from all_num_rows
@@ -0,0 +1,8 @@
with
all_rows as (
select * from {{ ref('validate_uuid') }}
)
select *,
case when {{ f2dq.valid_uuid('uuid') }} then 1 else 0 end as valid_uuid
from all_rows