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:
@@ -0,0 +1,20 @@
|
||||
|
||||
{% macro to_big_integer(field) %}
|
||||
cast (round({{field}} * 1000) as integer) as {{field}}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro clean_table_name(field) %}
|
||||
upper(
|
||||
{{-
|
||||
f2dq.clean_blacklist(
|
||||
f2dq.split_and_return_nth_value(field, '.', 3),
|
||||
['"', '`'],
|
||||
''
|
||||
)
|
||||
-}}
|
||||
)
|
||||
{% endmacro %}
|
||||
|
||||
{% macro clean_column_name(field) %}
|
||||
case when ({{ field }} = '' or {{ field }} is null ) then '---' else upper({{field}}) end
|
||||
{% endmacro %}
|
||||
Reference in New Issue
Block a user