mirror of https://github.com/buster-so/buster.git
hotfix: stored values search, case insensitive
This commit is contained in:
parent
d16f3296b2
commit
2c4f66da6e
|
@ -1390,10 +1390,11 @@ async fn inject_prefound_values_into_yml(
|
||||||
.iter()
|
.iter()
|
||||||
.filter(|found_val| {
|
.filter(|found_val| {
|
||||||
// Match based on db, schema, table (model name), and column (dimension name)
|
// Match based on db, schema, table (model name), and column (dimension name)
|
||||||
found_val.database_name == *model_database_name
|
// Case-insensitive comparison
|
||||||
&& found_val.schema_name == *model_schema_name
|
found_val.database_name.to_lowercase() == model_database_name.to_lowercase()
|
||||||
&& found_val.table_name == model_name
|
&& found_val.schema_name.to_lowercase() == model_schema_name.to_lowercase()
|
||||||
&& found_val.column_name == dim_name
|
&& 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())
|
.map(|found_val| found_val.value.clone())
|
||||||
.collect::<std::collections::HashSet<_>>() // Deduplicate
|
.collect::<std::collections::HashSet<_>>() // Deduplicate
|
||||||
|
|
Loading…
Reference in New Issue