mirror of
https://github.com/FlipsideCrypto/livequery-models.git
synced 2026-02-06 10:56:46 +00:00
Some checks failed
docs_update / docs_update (push) Has been cancelled
dbt_run_dev_refresh / dev_refresh (push) Has been cancelled
integration test / ${{ matrix.environment }} (hosted, XSMALL) (push) Has been cancelled
integration test / ${{ matrix.environment }} (prod, DBT_CLOUD) (push) Has been cancelled
13 lines
471 B
SQL
13 lines
471 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 %}
|