From 2549f8d200c114c13bc75a648c4d1041b4f42188 Mon Sep 17 00:00:00 2001 From: Drew Tate Date: Thu, 21 Mar 2024 18:18:33 +0100 Subject: [PATCH] [8.13] [ES|QL] case only requires two parameters (#179011) (#179165) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Backport This will backport the following commits from `main` to `8.13`: - [[ES|QL] case only requires two parameters (#179011)](https://github.com/elastic/kibana/pull/179011) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) --- packages/kbn-monaco/src/esql/lib/ast/definitions/functions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kbn-monaco/src/esql/lib/ast/definitions/functions.ts b/packages/kbn-monaco/src/esql/lib/ast/definitions/functions.ts index 325fb7cfeae3c..8ffe574f91013 100644 --- a/packages/kbn-monaco/src/esql/lib/ast/definitions/functions.ts +++ b/packages/kbn-monaco/src/esql/lib/ast/definitions/functions.ts @@ -592,7 +592,7 @@ export const evalFunctionsDefinitions: FunctionDefinition[] = [ { name: 'condition', type: 'boolean' }, { name: 'value', type: 'any' }, ], - minParams: 3, + minParams: 2, returnType: 'any', examples: [ `from index | eval type = case(languages <= 1, "monolingual", languages <= 2, "bilingual", "polyglot")`,