Skip to content

Commit 6cc34a5

Browse files
committed
Remove legacy block loader test infrastructure
1 parent 26e2261 commit 6cc34a5

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

server/src/test/java/org/elasticsearch/index/mapper/TextFieldMapperTests.java

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,4 +1314,35 @@ public void testEmpty() throws Exception {
13141314
assertFalse(dv.advanceExact(3));
13151315
});
13161316
}
1317+
1318+
// public void testBlockLoaderFromParentColumnReader() throws IOException {
1319+
// testBlockLoaderFromParent(true, randomBoolean());
1320+
// }
1321+
//
1322+
// public void testBlockLoaderParentFromRowStrideReader() throws IOException {
1323+
// testBlockLoaderFromParent(false, randomBoolean());
1324+
// }
1325+
//
1326+
// private void testBlockLoaderFromParent(boolean columnReader, boolean syntheticSource) throws IOException {
1327+
// boolean storeParent = randomBoolean();
1328+
// KeywordFieldSyntheticSourceSupport kwdSupport = new KeywordFieldSyntheticSourceSupport(null, storeParent, null, false);
1329+
// SyntheticSourceExample example = kwdSupport.example(5);
1330+
// CheckedConsumer<XContentBuilder, IOException> buildFields = b -> {
1331+
// b.startObject("field");
1332+
// {
1333+
// example.mapping().accept(b);
1334+
// b.startObject("fields").startObject("sub");
1335+
// {
1336+
// b.field("type", "text");
1337+
// }
1338+
// b.endObject().endObject();
1339+
// }
1340+
// b.endObject();
1341+
// };
1342+
// XContentBuilder mapping = mapping(buildFields);
1343+
// MapperService mapper = syntheticSource ? createSytheticSourceMapperService(mapping) : createMapperService(mapping);
1344+
// BlockReaderSupport blockReaderSupport = getSupportedReaders(mapper, "field.sub");
1345+
// var sourceLoader = mapper.mappingLookup().newSourceLoader(null, SourceFieldMetrics.NOOP);
1346+
// testBlockLoader(columnReader, example, blockReaderSupport, sourceLoader);
1347+
// }
13171348
}

0 commit comments

Comments
 (0)