Skip to content

Commit

Permalink
fix bug where multiple facets are missing and are assigned a higher f…
Browse files Browse the repository at this point in the history
…acet ordinal then the existing facets
  • Loading branch information
mdavis95 committed Apr 15, 2023
1 parent e2255ed commit df53c93
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public void handleFacets(OrdinalConsumer ordinalConsumer) {
if (ordinalBuffer.hasRemaining()) {
int storedDimOrdinal = -1;
int storedOrdinalLengthForDim = 0;
outer:
for (int requestedDimOrdinal : requestDimensionOrdinals) {

while (storedDimOrdinal < requestedDimOrdinal) {
Expand All @@ -26,7 +27,7 @@ public void handleFacets(OrdinalConsumer ordinalConsumer) {
}

if (!ordinalBuffer.hasRemaining()) {
break;
break outer;
}

storedDimOrdinal = ordinalBuffer.get();
Expand Down

0 comments on commit df53c93

Please sign in to comment.