Skip to content

Commit

Permalink
Fix MissingValues ordinal traversal and MultiOrdinalsTests tests
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Redko <[email protected]>
  • Loading branch information
reta committed Dec 19, 2024
1 parent df31192 commit b780ac5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@ public long nextOrd() throws IOException {
final long ord = values.nextOrd();
if (ord < insertedOrd) {
return ord;
} else if (ord == SortedSetDocValues.NO_MORE_DOCS /* no more docs */) {
return SortedSetDocValues.NO_MORE_DOCS;
} else {
return ord + 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ private void assertEquals(SortedSetDocValues docs, long[][] ordinalPlan) throws
for (long ord : ords) {
assertThat(docs.nextOrd(), equalTo(ord));
}
assertThat(docs.nextOrd(), equalTo(SortedSetDocValues.NO_MORE_DOCS));
assertThat(docs.nextOrd(), equalTo((long) SortedSetDocValues.NO_MORE_DOCS));
}
}
}
Expand Down

0 comments on commit b780ac5

Please sign in to comment.