SPARQL: there should be no group if there is no solution in a GROUP BY

See #189
pull/190/head
Tpt 3 years ago
parent ec1720f018
commit d0b8fe1a23
  1. 7
      lib/src/sparql/eval.rs

@ -616,10 +616,9 @@ impl SimpleEvaluator {
); );
} }
}); });
if accumulators_for_group.is_empty() { if accumulators_for_group.is_empty() && key_mapping.is_empty() {
// There is always at least one group // There is always a single group if there is no GROUP BY
accumulators_for_group accumulators_for_group.insert(Vec::new(), Vec::new());
.insert(vec![None; key_mapping.len()], Vec::default());
} }
let accumulator_variables = accumulator_variables.clone(); let accumulator_variables = accumulator_variables.clone();
Box::new( Box::new(

Loading…
Cancel
Save