Skip to content

Commit

Permalink
Fixed regression in aggr clause
Browse files Browse the repository at this point in the history
  • Loading branch information
vpinna80 committed May 13, 2024
1 parent 35f3305 commit 3dca74c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ protected VTLValue evalOnDataset(MetadataRepository repo, DataSet dataset, VTLVa
else if (dp.size() == 1)
{
DataSetMetadata srcMeta = dataset.getMetadata();
builder = builder.add(getCompFor(srcMeta.getMeasures().iterator().next(), repo, srcMeta), dp.values().iterator().next());
builder = builder.add(getCompFor(srcMeta.getMeasures().iterator().next(), repo, (DataSetMetadata) metadata), dp.values().iterator().next());
}
else
throw new IllegalStateException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,7 @@ protected Stream<DataPoint> streamDataPoints()
{
createCache(keys, groupCollector);

return Utils.getStream(cache)
.map(splitting((k, v) -> finisher.apply(v, k)));
return Utils.getStream(cache).map(splitting((k, v) -> finisher.apply(v, k)));
}

private synchronized void createCache(Set<DataStructureComponent<Identifier, ?, ?>> keys,
Expand Down

0 comments on commit 3dca74c

Please sign in to comment.