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