@@ -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