OpenSearch/x-pack/plugin/sql
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
..
jdbc SQL: XPack FeatureSet functionality (#35725) 2018-11-26 07:11:43 +02:00
qa SQL: Implement GREATEST and LEAST functions (#35879) 2018-11-26 18:21:36 +01:00
sql-action SQL: XPack FeatureSet functionality (#35725) 2018-11-26 07:11:43 +02:00
sql-cli SQL: XPack FeatureSet functionality (#35725) 2018-11-26 07:11:43 +02:00
sql-client SQL: XPack FeatureSet functionality (#35725) 2018-11-26 07:11:43 +02:00
sql-proto SQL: XPack FeatureSet functionality (#35725) 2018-11-26 07:11:43 +02:00
src SQL: Implement GREATEST and LEAST functions (#35879) 2018-11-26 18:21:36 +01:00
build.gradle SQL: Move qa directory into sql directory (#34496) 2018-10-30 14:54:15 -04:00