Skip to content

Commit

Permalink
Mark utils functions that are not supported in Impala (#131)
Browse files Browse the repository at this point in the history
* typo fix

* mark array functions as not supported
  • Loading branch information
tovganesh committed Nov 18, 2022
1 parent 2479481 commit 1b0cb0c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dbt/include/impala/macros/utils/array_append.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% macro impala__array_append(array, new_element) -%}
{{ exceptions.raise_compiler_error("Array functions are not supported in Impala") }}
{%- endmacro %}
3 changes: 3 additions & 0 deletions dbt/include/impala/macros/utils/array_concat.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% macro impala__array_concat(array_1, array_2) -%}
{{ exceptions.raise_compiler_error("Array functions are not supported in Impala") }}
{%- endmacro %}
3 changes: 3 additions & 0 deletions dbt/include/impala/macros/utils/array_construct.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% macro impala__array_construct(inputs, data_type) -%}
{{ exceptions.raise_compiler_error("Array functions are not supported in Impala") }}
{%- endmacro %}
2 changes: 1 addition & 1 deletion dbt/include/impala/macros/utils/datediff.sql
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@

{%- else -%}

{{ exceptions.raise_compiler_error("macro datediff not implemented for datepart ~ '" ~ datepart ~ "' ~ on Spark") }}
{{ exceptions.raise_compiler_error("macro datediff not implemented for datepart ~ '" ~ datepart ~ "' ~ on Impala") }}

{%- endif -%}

Expand Down

0 comments on commit 1b0cb0c

Please sign in to comment.