Skip to content

Commit

Permalink
alter unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg committed Oct 16, 2024
1 parent 3bcf058 commit 17d3059
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public abstract class BlockSourceReader implements BlockLoader.RowStrideReader {

// _ignored_source is needed ofr synthetic source is needed for, in case stored source (default) is used,
// then it just doesn't get loaded.
private static final StoredFieldsSpec NEEDS_SOURCE_AND_IGNORED_SOURCE = new StoredFieldsSpec(
static final StoredFieldsSpec NEEDS_SOURCE_AND_IGNORED_SOURCE = new StoredFieldsSpec(
true,
false,
Set.of(IgnoredSourceFieldMapper.NAME)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private void loadBlock(LeafReaderContext ctx, Consumer<TestBlock> test) throws I
BlockLoader loader = new BlockSourceReader.BytesRefsBlockLoader(valueFetcher, lookup);
assertThat(loader.columnAtATimeReader(ctx), nullValue());
BlockLoader.RowStrideReader reader = loader.rowStrideReader(ctx);
assertThat(loader.rowStrideStoredFieldSpec(), equalTo(StoredFieldsSpec.NEEDS_SOURCE));
assertThat(loader.rowStrideStoredFieldSpec(), equalTo(BlockSourceReader.NEEDS_SOURCE_AND_IGNORED_SOURCE));
BlockLoaderStoredFieldsFromLeafLoader storedFields = new BlockLoaderStoredFieldsFromLeafLoader(
StoredFieldLoader.fromSpec(loader.rowStrideStoredFieldSpec()).getLoader(ctx, null),
loader.rowStrideStoredFieldSpec().requiresSource() ? SourceLoader.FROM_STORED_SOURCE.leaf(ctx.reader(), null) : null
Expand Down

0 comments on commit 17d3059

Please sign in to comment.