We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe15244 commit be287a7Copy full SHA for be287a7
dbt-redshift/src/dbt/include/redshift/macros/materializations/functions/scalar.sql
@@ -14,3 +14,14 @@
14
{%- endfor %}
15
{{ args | join(', ') }}
16
{% endmacro %}
17
+
18
+{% macro redshift__scalar_function_volatility_sql() %}
19
+ {% if model.config.get('volatility') == 'deterministic' %}
20
+ IMMUTABLE
21
+ {% elif model.config.get('volatility') == 'stable' %}
22
+ {% do exceptions.raise_compiler_error("`Stable` function volatility is not supported for Snowflake") %}
23
+ {% else %}
24
+ {# At this point, either they've set `non-deterministic` or they've set nothing. In either case, we default to VOLATILE #}
25
+ VOLATILE
26
+ {% endif %}
27
+{% endmacro %}
0 commit comments