mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 01:44:36 -04:00
* Restructure query-languages docs files for clarity (#124797) In a few previous PR's we restructured the ES|QL docs to make it possible to generate them dynamically. This PR just moves a few files around to make the query languages docs easier to work with, and a little more organized like the ES|QL docs. A bit part of this was setting up redirects to the new locations, so other repo's could correctly link to the elasticsearch docs. * After running tests, we revert a few features * Fix build.gradle and improved some generating code * After running tests * Update x-pack/plugin/esql/build.gradle
16 KiB
16 KiB
Functions and Operators [sql-functions]
Elasticsearch SQL provides a comprehensive set of built-in operators and functions:
-
CURRENT_DATE/CURDATE
CURRENT_TIME/CURTIME
CURRENT_TIMESTAMP
DATE_ADD/DATEADD/TIMESTAMP_ADD/TIMESTAMPADD
DATE_DIFF/DATEDIFF/TIMESTAMP_DIFF/TIMESTAMPDIFF
DATE_FORMAT
DATE_PARSE
DATETIME_FORMAT
DATETIME_PARSE
FORMAT
DATE_PART/DATEPART
DATE_TRUNC/DATETRUNC
DAY_OF_MONTH/DOM/DAY
DAY_OF_WEEK/DAYOFWEEK/DOW
DAY_OF_YEAR/DOY
DAY_NAME/DAYNAME
EXTRACT
HOUR_OF_DAY/HOUR
ISO_DAY_OF_WEEK/ISODAYOFWEEK/ISODOW/IDOW
ISO_WEEK_OF_YEAR/ISOWEEKOFYEAR/ISOWEEK/IWOY/IW
MINUTE_OF_DAY
MINUTE_OF_HOUR/MINUTE
MONTH_OF_YEAR/MONTH
MONTH_NAME/MONTHNAME
NOW
SECOND_OF_MINUTE/SECOND
QUARTER
TIME_PARSE
TO_CHAR
TODAY
WEEK_OF_YEAR/WEEK
YEAR