mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-07 21:48:39 +00:00
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
31 lines
849 B
Plaintext
31 lines
849 B
Plaintext
[role="xpack"]
|
|
[testenv="basic"]
|
|
[[sql-functions]]
|
|
== Functions and Operators
|
|
|
|
beta[]
|
|
|
|
{es-sql} provides a comprehensive set of built-in operators and functions:
|
|
|
|
* <<sql-operators, Operators>>
|
|
* <<sql-functions-aggs, Aggregate>>
|
|
* <<sql-functions-grouping, Grouping>>
|
|
* <<sql-functions-datetime, Date-Time>>
|
|
* <<sql-functions-search, Full-Text Search>>
|
|
* <<sql-functions-math, Mathematical>>
|
|
* <<sql-functions-string, String>>
|
|
* <<sql-functions-type-conversion,Type Conversion>>
|
|
* <<sql-functions-conditional, Conditional>>
|
|
* <<sql-functions-system, System>>
|
|
|
|
include::operators.asciidoc[]
|
|
include::aggs.asciidoc[]
|
|
include::grouping.asciidoc[]
|
|
include::date-time.asciidoc[]
|
|
include::search.asciidoc[]
|
|
include::math.asciidoc[]
|
|
include::string.asciidoc[]
|
|
include::type-conversion.asciidoc[]
|
|
include::conditional.asciidoc[]
|
|
include::system.asciidoc[]
|