Skip to content

Commit e6fe87a

Browse files
committed
iter
1 parent c41b1f9 commit e6fe87a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

server/src/test/java/org/elasticsearch/index/codec/tsdb/ES87TSDBDocValuesFormatTests.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,8 @@ public void testWithNoValueMultiValue() throws Exception {
420420
assertNotNull(timestampDV);
421421
var gaugeOneDV = leaf.getSortedNumericDocValues("gauge_1");
422422
assertNotNull(gaugeOneDV);
423+
var tagsDV = leaf.getSortedSetDocValues("tags");
424+
assertNotNull(tagsDV);
423425
for (int i = 0; i < numDocs; i++) {
424426
assertEquals(i, hostNameDV.nextDoc());
425427
int round = i / numDocsPerRound;
@@ -441,6 +443,13 @@ public void testWithNoValueMultiValue() throws Exception {
441443
assertTrue("unexpected gauge [" + value + "]", Arrays.binarySearch(gauge1Values, value) >= 0);
442444
}
443445
}
446+
if (tagsDV.advanceExact(i)) {
447+
for (int j = 0; j < tagsDV.docValueCount(); j++) {
448+
long ordinal = tagsDV.nextOrd();
449+
String actualTag = tagsDV.lookupOrd(ordinal).utf8ToString();
450+
assertTrue("unexpected tag [" + actualTag + "]", Arrays.binarySearch(tags, actualTag) >= 0);
451+
}
452+
}
444453
}
445454
}
446455
}

0 commit comments

Comments
 (0)