Skip to content

Commit

Permalink
use false for requiresMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg committed Oct 23, 2024
1 parent 4b6d288 commit 1a8cb5b
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,7 @@ private void loadFromSingleLeaf(Block[] blocks, int shard, int segment, BlockLoa
SourceLoader sourceLoader = null;
if (storedFieldsSpec.requiresSource()) {
sourceLoader = shardContexts.get(shard).newSourceLoader.get();
storedFieldsSpec = storedFieldsSpec.merge(
new StoredFieldsSpec(true, storedFieldsSpec.requiresMetadata(), sourceLoader.requiredStoredFields())
);
storedFieldsSpec = storedFieldsSpec.merge(new StoredFieldsSpec(true, false, sourceLoader.requiredStoredFields()));
}

if (rowStrideReaders.isEmpty()) {
Expand Down Expand Up @@ -393,9 +391,7 @@ private void fieldsMoved(LeafReaderContext ctx, int shard) throws IOException {
SourceLoader sourceLoader = null;
if (storedFieldsSpec.requiresSource()) {
sourceLoader = shardContexts.get(shard).newSourceLoader.get();
storedFieldsSpec = storedFieldsSpec.merge(
new StoredFieldsSpec(true, storedFieldsSpec.requiresMetadata(), sourceLoader.requiredStoredFields())
);
storedFieldsSpec = storedFieldsSpec.merge(new StoredFieldsSpec(true, false, sourceLoader.requiredStoredFields()));
}
storedFields = new BlockLoaderStoredFieldsFromLeafLoader(
StoredFieldLoader.fromSpec(storedFieldsSpec).getLoader(ctx, null),
Expand Down

0 comments on commit 1a8cb5b

Please sign in to comment.