From be45461f2b8452c12cfa339d683c65a2c960380a Mon Sep 17 00:00:00 2001 From: Carlos Delgado <6339205+carlosdelest@users.noreply.github.com> Date: Tue, 29 Oct 2024 09:54:02 +0100 Subject: [PATCH] Fix EsqlCapabilities to refer to correctly refer to snapshot builds (#115791) --- .../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.