mirror of https://github.com/buster-so/buster.git
hotfix if no syntax, generic
This commit is contained in:
parent
5939f43288
commit
17837e6486
|
@ -101,8 +101,8 @@ impl ToolExecutor for CreateMetricFilesTool {
|
||||||
|
|
||||||
let data_source_syntax = match self.agent.get_state_value("data_source_syntax").await {
|
let data_source_syntax = match self.agent.get_state_value("data_source_syntax").await {
|
||||||
Some(Value::String(syntax_str)) => syntax_str,
|
Some(Value::String(syntax_str)) => syntax_str,
|
||||||
Some(_) => bail!("Data source syntax is not a string"),
|
Some(_) => "generic".to_string(),
|
||||||
None => bail!("Data source syntax not found in agent state"),
|
None => "generic".to_string(),
|
||||||
};
|
};
|
||||||
|
|
||||||
// Collect results from processing each file concurrently
|
// Collect results from processing each file concurrently
|
||||||
|
|
|
@ -271,8 +271,8 @@ impl ToolExecutor for ModifyMetricFilesTool {
|
||||||
|
|
||||||
let data_source_dialect = match self.agent.get_state_value("data_source_syntax").await {
|
let data_source_dialect = match self.agent.get_state_value("data_source_syntax").await {
|
||||||
Some(Value::String(dialect_str)) => dialect_str,
|
Some(Value::String(dialect_str)) => dialect_str,
|
||||||
Some(_) => bail!("Data source dialect is not a string"),
|
Some(_) => "generic".to_string(),
|
||||||
None => bail!("Data source dialect not found in agent state"),
|
None => "generic".to_string(),
|
||||||
};
|
};
|
||||||
|
|
||||||
// Map to store validated dataset IDs for each successfully updated metric
|
// Map to store validated dataset IDs for each successfully updated metric
|
||||||
|
|
Loading…
Reference in New Issue