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 f88a31c commit 4daf9d5Copy full SHA for 4daf9d5
macros/utils/cross_db_utils/contains.sql
@@ -30,4 +30,16 @@
30
lower({{ string }}) like lower('%{{ string_to_search }}%') then true
31
else false end
32
{%- endif %}
33
+{% endmacro %}
34
+
35
+{% macro athena__contains(string, string_to_search, case_sensitive) %}
36
+ {%- if case_sensitive %}
37
+ case when
38
+ {{ string }} like '%{{ string_to_search }}%' then true
39
+ else false end
40
+ {%- else %}
41
42
+ lower({{ string }}) like lower('%{{ string_to_search }}%') then true
43
44
+ {%- endif %}
45
{% endmacro %}
0 commit comments