ESQL: function/operator to check if any value of a multivalue field matches #120782
Labels
:Analytics/ES|QL
AKA ESQL
>enhancement
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Description
There are use cases where we want to check if a multvalued field e.g. contains a particular value. Currently, the
==
operator does not support this as a multivalue for either of the operands results in anull
(mentioned in the docs, too).One workaround is to use
MV_EXPAND
, but this changes the number of rows and loses information about which values were once part of the same multvalue. This was, for instance, not adequate for (this SIEM case).What we probably need is something like an
any_equals
function (andall_equals
, most likely) - or some sort ofANY
/ALL
modifiers, e.g.WHERE ANY mv_field == "single_value"
. (The exact semantics ofANY
/ALL
are unclear in case we compose multiple operators/functions, though.)The text was updated successfully, but these errors were encountered: