From 2c4f66da6ee06abd9c68e1836bc5b29538361080 Mon Sep 17 00:00:00 2001 From: dal Date: Fri, 9 May 2025 17:01:24 -0600 Subject: [PATCH] hotfix: stored values search, case insensitive --- .../tools/categories/file_tools/search_data_catalog.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/api/libs/agents/src/tools/categories/file_tools/search_data_catalog.rs b/api/libs/agents/src/tools/categories/file_tools/search_data_catalog.rs index 5f35b4c88..fc050352e 100644 --- a/api/libs/agents/src/tools/categories/file_tools/search_data_catalog.rs +++ b/api/libs/agents/src/tools/categories/file_tools/search_data_catalog.rs @@ -1390,10 +1390,11 @@ async fn inject_prefound_values_into_yml( .iter() .filter(|found_val| { // Match based on db, schema, table (model name), and column (dimension name) - found_val.database_name == *model_database_name - && found_val.schema_name == *model_schema_name - && found_val.table_name == model_name - && found_val.column_name == dim_name + // Case-insensitive comparison + found_val.database_name.to_lowercase() == model_database_name.to_lowercase() + && found_val.schema_name.to_lowercase() == model_schema_name.to_lowercase() + && found_val.table_name.to_lowercase() == model_name.to_lowercase() + && found_val.column_name.to_lowercase() == dim_name.to_lowercase() }) .map(|found_val| found_val.value.clone()) .collect::>() // Deduplicate