Skip to content

Commit

Permalink
fixed up udf for string uses
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhopper-dataengineers committed Aug 25, 2022
1 parent 4ca8bc1 commit a695e38
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ RETURNS {{ return_type }}
{% if preferred_language != 'sql' %}
LANGUAGE {{ preferred_language }}
{% endif %}
{% if immutable %}
IMMUTABLE
{% else %}
VOLATILE
{% endif %}

{% if preferred_language == 'python' %}
RUNTIME_VERSION = '{{ runtime_version }}'
Expand All @@ -22,10 +27,8 @@ target_path = {{ target_path }}

AS

{% if preferred_language != 'python' %}
'{{ sql }}'
{% else %}
{{ sql }}
{% endif %}
$$
{{ sql }}
$$
;
{%- endmacro -%}

0 comments on commit a695e38

Please sign in to comment.