Skip to content

Commit 83f3da5

Browse files
committed
Fix unstructured data validation to use case-insensitive result matching
1 parent 175de3a commit 83f3da5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

macros/edr/tests/test_validate_unstructured_data.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
select *
4444
from unstructured_data_validation
45-
where result like '%false%'
45+
where lower(result) like '%false%'
4646
{% endmacro %}
4747

4848
{% macro databricks__generate_unstructured_data_validation(model, column_name, prompt_template, llm_model_name='databricks-meta-llama-3-3-70b-instruct') %}
@@ -57,13 +57,13 @@
5757

5858
select *
5959
from unstructured_data_validation
60-
where result like '%false%'
60+
where lower(result) like '%false%'
6161
{% endmacro %}
6262

6363

6464
{% macro bigquery__generate_unstructured_data_validation(model, column_name, prompt_template, llm_model_name='flash15_model') %}
6565
with unstructured_data_validation as (
66-
SELECT ml_generate_text_llm_result as
66+
SELECT ml_generate_text_llm_result as result
6767
FROM
6868
ML.GENERATE_TEXT(
6969
MODEL `{{model.schema}}.{{llm_model_name}}`,
@@ -78,5 +78,5 @@
7878

7979
select *
8080
from unstructured_data_validation
81-
where result like '%false%'
81+
where lower(result) like '%false%'
8282
{% endmacro %}

0 commit comments

Comments
 (0)