From ff81ccae79895b7c9dbbb0045fca3a65ce209c61 Mon Sep 17 00:00:00 2001 From: carlosdelest Date: Mon, 28 Oct 2024 16:36:35 +0100 Subject: [PATCH] Fix EsqlCapabilities to refer to correctly refer to snapshot builds --- .../org/elasticsearch/xpack/esql/action/EsqlCapabilities.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java index 816a875f697ff..58568f6ab9531 100644 --- a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java +++ b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java @@ -360,12 +360,12 @@ public enum Cap { /** * QSTR function */ - QSTR_FUNCTION(true), + QSTR_FUNCTION(Build.current().isSnapshot()), /** * MATCH function */ - MATCH_FUNCTION(true), + MATCH_FUNCTION(Build.current().isSnapshot()), /** * Don't optimize CASE IS NOT NULL function by not requiring the fields to be not null as well.