mirror of
https://github.com/FlipsideCrypto/livequery-base.git
synced 2026-02-06 11:16:44 +00:00
12 lines
470 B
SQL
12 lines
470 B
SQL
{% test test_udf(model, column_name, args, assertions) %}
|
|
{#
|
|
This is a generic test for UDFs.
|
|
The udfs are deployed using ephemeral models, so we need to
|
|
use the ephemeral model name to get the udf name.
|
|
#}
|
|
{%- set schema = model | replace("__dbt__cte__", "") -%}
|
|
{%- set schema = schema.split("__") | first -%}
|
|
{%- set udf = schema ~ "." ~ column_name -%}
|
|
|
|
{{ base_test_udf(model, udf, args, assertions) }}
|
|
{% endtest %} |