OpenSearch/docs/reference/sql
Costin Leau 6ee6bb55e2
SQL: Introduce HISTOGRAM grouping function (#36510)
Introduce Histogram grouping function for bucketing/grouping data based
 on a given range. Both date and numeric histograms are supported using
 the appropriate range declaration (numbers vs intervals).

SELECT HISTOGRAM(number, 50) AS h FROM index GROUP BY h
SELECT HISTOGRAM(date, INTERVAL 1 YEAR) AS h FROM index GROUP BY h

In addition add multiply operator for Intervals
Add docs for intervals and histogram

Fix #36509
2018-12-14 18:20:37 +02:00
..
appendix SQL: [docs] Add `beta[]` markup to all SQL pages (#36471) 2018-12-11 13:25:29 +02:00
endpoints SQL: [docs] Add `beta[]` markup to all SQL pages (#36471) 2018-12-11 13:25:29 +02:00
functions SQL: Introduce HISTOGRAM grouping function (#36510) 2018-12-14 18:20:37 +02:00
language SQL: Introduce HISTOGRAM grouping function (#36510) 2018-12-14 18:20:37 +02:00
concepts.asciidoc SQL: Introduce HISTOGRAM grouping function (#36510) 2018-12-14 18:20:37 +02:00
getting-started.asciidoc SQL: [docs] Add `beta[]` markup to all SQL pages (#36471) 2018-12-11 13:25:29 +02:00
index.asciidoc SQL: [docs] Add `beta[]` markup to all SQL pages (#36471) 2018-12-11 13:25:29 +02:00
overview.asciidoc SQL: [docs] Add `beta[]` markup to all SQL pages (#36471) 2018-12-11 13:25:29 +02:00
security.asciidoc SQL: [docs] Add `beta[]` markup to all SQL pages (#36471) 2018-12-11 13:25:29 +02:00