Skip to content

Commit

Permalink
Fix bug when query is only static
Browse files Browse the repository at this point in the history
  • Loading branch information
magbak committed Feb 17, 2024
1 parent 8923996 commit edf3adb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions chrontext/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ polars = {version="0.35.4", features=["lazy", "concat_str", "unique_counts", "gr
tokio = {version="1.18.2", features=["rt-multi-thread", "rt"]}
log = "0.4.17"
#spargebra = { path = "../../spargebra", features = ["rdf-star"]}
#query_processing = { path = "../../query_processing"}
query_processing = { git = "https://github.com/DataTreehouse/query_processing"}
representation = { git = "https://github.com/DataTreehouse/representation"}
spargebra = { git = "https://github.com/DataTreehouse/spargebra", features = ["rdf-star"]}
Expand Down
5 changes: 5 additions & 0 deletions chrontext/src/combiner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ impl Combiner {
self.execute_static_query(&static_query, None).await?;
let new_time_series_queries =
self.prepper.prepare(&query, &mut new_solution_mappings);
// Combination assumes there is something to combine!
// If there are no time series queries, we are done.
if new_time_series_queries.is_empty() {
return Ok(new_solution_mappings)
}
solution_mappings = Some(new_solution_mappings);
time_series_queries = Some(new_time_series_queries);
} else {
Expand Down

0 comments on commit edf3adb

Please sign in to comment.