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.
2 parents 2c1cf73 + 5fb3976 commit a4d4a52Copy full SHA for a4d4a52
macros/dbt_expectations/regexp_instr.sql
@@ -2,6 +2,6 @@
2
{# Parameters `position`, `occurrence`, and `is_raw` are therefore ignored #}
3
{# To match behavior of regexp_instr(), we need to return >0 when pattern is found and 0 when pattern is not found #}
4
5
-{% macro athena__regexp_instr(source_value, regexp, position, occurrence, is_raw) %}
+{% macro athena__regexp_instr(source_value, regexp, position, occurrence, is_raw, flags) %}
6
cast( regexp_like( cast( {{ source_value }} as varchar ), '{{ regexp }}' ) as int )
7
{% endmacro %}
0 commit comments