Skip to content
Snippets Groups Projects
Commit 622aa78d authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

fix get query for histogram

parent af9492b3
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,7 @@ public class VariablesApi {
String histogramGroupings = data.getString("histogram_groupings");
MiningQuery query = new MiningQuery();
query.getVariables().add(new Variable(code));
query.setVariables(query.getVariables().add(new Variable(code)));
List<String> groupings = Arrays.asList(histogramGroupings.split(","));
query.getGrouping().addAll(groupings.stream().map(Variable::new).collect(Collectors.toList()));
query.setAlgorithm(new Algorithm("histograms", "Histograms", false));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment