Skip to content

Commit

Permalink
Add spark identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
phamvinh1712 authored and cdiniz committed Apr 16, 2024
1 parent 9735b6e commit bc33159
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions macros/utils.sql
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@
{% endif %}
{%- endmacro %}

{% macro spark__quote_identifier(identifier) %}
{% if identifier.startswith('`') %}
{{ return(identifier) }}
{% else %}
{{ return('`' ~ identifier ~ '`') }}
{% endif %}
{% endmacro %}

{% macro bigquery__quote_identifier(identifier) %}
{% if identifier.startswith('`') %}
{{ return(identifier) }}
Expand Down

0 comments on commit bc33159

Please sign in to comment.