elasticsearch/docs/reference/sql/functions
Andras Palinkas f855e5235c
SQL: Implement TO_CHAR() function (#66486)
SQL: Implement the TO_CHAR() function

* The implementation is according to PostgreSQL 13 specs:
https://www.postgresql.org/docs/13/functions-formatting.html
* Tested against actual output from PostgreSQL 13 using randomized inputs
* All the Postgres formats are supported, there is also partial supports
 for the modifiers (`FM` and `TH` are supported)
* Random unit test data generator script in case we need to upgrade the
 formatter in the future
* Documentation
* Integration tests

Co-authored-by: Michał Wąsowicz <mwasowicz7@gmail.com>
Co-authored-by: Andras Palinkas <andras.palinkas@elastic.co>
2021-01-20 18:32:10 -05:00
..
aggs.asciidoc SQL: Add method args to PERCENTILE/PERCENTILE_RANK (#65026) 2020-11-24 14:17:56 -05:00
conditional.asciidoc SQL: document the use of a filter on _routing (#52355) 2020-02-14 18:58:45 +02:00
date-time.asciidoc SQL: Implement TO_CHAR() function (#66486) 2021-01-20 18:32:10 -05:00
geo.asciidoc SQL: document the use of a filter on _routing (#52355) 2020-02-14 18:58:45 +02:00
grouping.asciidoc SQL: Use calendar_interval of 1d for HISTOGRAMs with 1 DAY intervals (#52749) 2020-02-25 17:33:36 +02:00
index.asciidoc SQL: Implement TO_CHAR() function (#66486) 2021-01-20 18:32:10 -05:00
like-rlike.asciidoc SQL: Escaped wildcard (*) not accepted in LIKE (#63428) 2020-10-13 09:38:35 -04:00
math.asciidoc [DOCS] Replace Wikipedia links with attribute (#61171) 2020-08-17 09:44:24 -04:00
operators.asciidoc [DOCS] Remove unneeded options from [source,sql] code blocks (#42759) 2019-05-31 13:03:41 -04:00
search.asciidoc SQL: document the use of a filter on _routing (#52355) 2020-02-14 18:58:45 +02:00
string.asciidoc SQL: Implement TRIM function (#57518) 2020-06-03 14:24:30 +02:00
system.asciidoc SQL: document the use of a filter on _routing (#52355) 2020-02-14 18:58:45 +02:00
type-conversion.asciidoc SQL: document the use of a filter on _routing (#52355) 2020-02-14 18:58:45 +02:00