OpenSearch/x-pack
Marios Trivyzas 3f7cae3f0d
SQL: Implement GREATEST and LEAST functions (#35879)
Add GREATEST(expr1, expr2, ... exprN) and LEAST(expr1, expr2, exprN)
functions which are in the family of CONDITIONAL functions.

Implementation follows PostgreSQL behaviour, so the functions return
`NULL` when all of their arguments evaluate to `NULL`.

Renamed `CoalescePipe` and `CoalesceProcessor` to `ConditionalPipe` and
`ConditionalProcessor` respectively, to be able to reuse them for
`Greatest` and `Least` evaluations. To achieve that `ConditionalOperation`
has been added to differentiate between the functionalities at execution
time.

Closes: #35878
2018-11-26 18:21:36 +01:00
..
dev-tools
docs [DOCS] Adjust Invalidate Token REST API docs (#35622) 2018-11-21 09:32:56 +02:00
license-tools Persist generated public keys unencrypted (#34626) 2018-10-24 13:55:21 +03:00
plugin SQL: Implement GREATEST and LEAST functions (#35879) 2018-11-26 18:21:36 +01:00
qa [ML]: adjusting post backport of (#35645) (#35696) 2018-11-19 12:49:07 -06:00
test Auto skip license headers on no source (#35640) 2018-11-20 13:02:33 +02:00
transport-client
NOTICE.txt
README.md
build.gradle Merge remote-tracking branch 'upstream/master' into index-lifecycle 2018-10-29 14:03:55 -07:00

README.md

Elastic License Functionality

This directory tree contains files subject to the Elastic License. The files subject to the Elastic License are grouped in this directory to clearly separate them from files licensed under the Apache License 2.0.