ESQL: Perform common expression identification and extraction #103301
Labels
:Analytics/ES|QL
AKA ESQL
>enhancement
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Description
Non-trivial queries can end up with the same expression declared (typically inside the filter) inside a command and sometimes across commands:
WHERE length(concat(substring(field, 1, 3), "abc"))>10 AND substring(field, 1,3) IS NOT NULL
In such cases executing the expression only once
concat(substring(field, 1,3)
is desirable to avoid redundant work.The text was updated successfully, but these errors were encountered: