From 03ac6992ebd0e05fd4c31d993090107991562ebd Mon Sep 17 00:00:00 2001 From: Craig Taverner Date: Wed, 22 Nov 2023 11:26:24 +0100 Subject: [PATCH] Fix compile error after rebase --- .../org/elasticsearch/index/mapper/GeoPointFieldMapper.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/index/mapper/GeoPointFieldMapper.java b/server/src/main/java/org/elasticsearch/index/mapper/GeoPointFieldMapper.java index 3f2a94b20be2b..56b65dbf84c6b 100644 --- a/server/src/main/java/org/elasticsearch/index/mapper/GeoPointFieldMapper.java +++ b/server/src/main/java/org/elasticsearch/index/mapper/GeoPointFieldMapper.java @@ -485,10 +485,12 @@ public IndexFieldData.Builder fielddataBuilder(FieldDataContext fieldDataContext @Override public BlockLoader blockLoader(BlockLoaderContext blContext) { if (hasDocValues()) { - return BlockDocValuesReader.longs(name()); + return new BlockDocValuesReader.LongsBlockLoader(name()); } // TODO: Currently we use longs in the compute engine and render to WKT in ESQL - return BlockSourceReader.longs(valueFetcher(blContext.sourcePaths(name()), nullValue, GeometryFormatterFactory.WKT)); + return new BlockSourceReader.LongsBlockLoader( + valueFetcher(blContext.sourcePaths(name()), nullValue, GeometryFormatterFactory.WKT) + ); } @Override