OpenSearch/x-pack/plugin/sql/qa
Marios Trivyzas 4710a7472f
SQL: Implement FIRST/LAST aggregate functions (#37936)
FIRST and LAST can be used with one argument and work similarly to MIN
and MAX but they are implemented using a Top Hits aggregation and
therefore can also operate on keyword fields. When a second argument is
provided then they return the first/last value of the first arg when its
values are ordered ascending/descending (respectively) by the values of
the second argument. Currently because of the usage of a Top Hits
aggregation FIRST and LAST cannot be used in the HAVING clause of a
GROUP BY query to filter on the results of the aggregation.

Closes: #35639
2019-01-31 16:33:05 +02:00
..
multi-node Define constants for REST requests endpoints in tests (#37610) 2019-01-22 10:01:51 +02:00
security spelling: java script -- not JavaScript (#37057) 2019-01-31 14:09:36 +02:00
single-node Use mappings to format doc-value fields by default. (#30831) 2019-01-30 10:31:51 +01:00
src/main SQL: Implement FIRST/LAST aggregate functions (#37936) 2019-01-31 16:33:05 +02:00
build.gradle Split third party audit exclusions by type (#36763) 2019-01-07 17:24:19 +02:00