OpenSearch/docs/reference/sql/functions
Marios Trivyzas 363e994171
SQL: Fix DATETIME_PARSE behaviour regarding timezones (#56158) (#56182)
Previously, when the timezone was missing from the datetime string
and the pattern, UTC was used, instead of the session defined timezone.
Moreover, if a timezone was included in the datetime string and the
pattern then this timezone was used. To have a consistent behaviour
the resulting datetime will always be converted to the session defined
timezone, e.g.:
```
SELECT DATETIME_PARSE('2020-05-04 10:20:30.123 +02:00', 'HH:mm:ss dd/MM/uuuu VV') AS datetime;
```
with `time_zone` set to `-03:00` will result in
```
2020-05-04T05:20:40.123-03:00
```

Follows: #54960
(cherry picked from commit 8810ed03a209cc8fe1bad309a81e85b56a39da27)
2020-05-05 12:08:39 +02:00
..
aggs.asciidoc [DOCS] Remove Wikipedia link from `SUM_OF_SQUARES` SQL function docs (#52398) 2020-04-20 09:59:59 -04:00
conditional.asciidoc SQL: document the use of a filter on _routing (#52355) 2020-02-14 19:00:26 +02:00
date-time.asciidoc SQL: Fix DATETIME_PARSE behaviour regarding timezones (#56158) (#56182) 2020-05-05 12:08:39 +02:00
geo.asciidoc SQL: document the use of a filter on _routing (#52355) 2020-02-14 19:00:26 +02:00
grouping.asciidoc SQL: Use calendar_interval of 1d for HISTOGRAMs with 1 DAY intervals (#52749) (#52771) 2020-02-25 18:44:02 +02:00
index.asciidoc SQL: Implement DATETIME_PARSE function for parsing strings (#54960) (#55035) 2020-04-10 01:16:29 +02:00
like-rlike.asciidoc [DOCS] SQL: Update link for supported regex in `RLIKE` docs (#55830) 2020-04-28 09:25:51 -04:00
math.asciidoc SQL: document the use of a filter on _routing (#52355) 2020-02-14 19:00:26 +02:00
operators.asciidoc [DOCS] Remove unneeded options from `[source,sql]` code blocks (#42759) 2019-05-31 13:05:13 -04:00
search.asciidoc SQL: document the use of a filter on _routing (#52355) 2020-02-14 19:00:26 +02:00
string.asciidoc SQL: document the use of a filter on _routing (#52355) 2020-02-14 19:00:26 +02:00
system.asciidoc SQL: document the use of a filter on _routing (#52355) 2020-02-14 19:00:26 +02:00
type-conversion.asciidoc SQL: document the use of a filter on _routing (#52355) 2020-02-14 19:00:26 +02:00