Skip to content

Commit

Permalink
Reset cached results on merge. (#175)
Browse files Browse the repository at this point in the history
Must reset cached results on merge for refinement.
  • Loading branch information
claygoddard authored Dec 6, 2023
1 parent 6812c80 commit 6f786dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public void merge(Object facetResult, Context mcontext) {
} else {
aggregate.union(subHLL);
}
answer = -1;
}

private long getLong() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ public void merge(Object facetResult, Context mcontext) {
} else {
digest.add(subDigest);
}
sortVal = null;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public void merge(Object facetResult, Context mcontext) {
shardsMissingSum += unique - valsListed;
shardsMissingMax = Math.max(shardsMissingMax, unique - valsListed);
// TODO: somehow get & use the count in the bucket?
answer = -1;
}

private long getLong() {
Expand Down

0 comments on commit 6f786dd

Please sign in to comment.