From b2cb2570c53e07b00a480aed4a0b4422beda7524 Mon Sep 17 00:00:00 2001 From: Craig Taverner Date: Wed, 30 Oct 2024 18:14:50 +0100 Subject: [PATCH] Fixed CsvTests which need to mock SearchStats properly --- .../xpack/esql/stats/DisabledSearchStats.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/stats/DisabledSearchStats.java b/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/stats/DisabledSearchStats.java index 564d34149da0e..ad54274322e1d 100644 --- a/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/stats/DisabledSearchStats.java +++ b/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/stats/DisabledSearchStats.java @@ -52,4 +52,19 @@ public byte[] max(String field, DataType dataType) { public boolean isSingleValue(String field) { return false; } + + @Override + public boolean isIndexed(String field) { + return true; + } + + @Override + public boolean hasDocValues(String field) { + return true; + } + + @Override + public boolean hasIdenticalDelegate(String field) { + return true; + } }