diff --git a/macros/dbt_expectations/regexp_instr.sql b/macros/dbt_expectations/regexp_instr.sql index f653430..9ceaf6f 100644 --- a/macros/dbt_expectations/regexp_instr.sql +++ b/macros/dbt_expectations/regexp_instr.sql @@ -2,6 +2,6 @@ {# Parameters `position`, `occurrence`, and `is_raw` are therefore ignored #} {# To match behavior of regexp_instr(), we need to return >0 when pattern is found and 0 when pattern is not found #} -{% macro athena__regexp_instr(source_value, regexp, position, occurrence, is_raw) %} +{% macro athena__regexp_instr(source_value, regexp, position, occurrence, is_raw, flags) %} cast( regexp_like( cast( {{ source_value }} as varchar ), '{{ regexp }}' ) as int ) {% endmacro %}