OpenSearch/docs/reference/sql
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
..
appendix SQL: Implement CURRENT_TIME/CURTIME functions (#40662) 2019-04-04 11:45:20 +02:00
endpoints SQL: Fix DATETIME_PARSE behaviour regarding timezones (#56158) (#56182) 2020-05-05 12:08:39 +02:00
functions SQL: Fix DATETIME_PARSE behaviour regarding timezones (#56158) (#56182) 2020-05-05 12:08:39 +02:00
language QL: constant_keyword support (#53241) (#53602) 2020-03-16 18:06:31 +02:00
concepts.asciidoc [DOCS] Replaces CCS terms with attributes (#40076) 2019-03-15 07:57:51 -07:00
getting-started.asciidoc [DOCS] Replace "// CONSOLE" comments with [source,console] (#46159) (#46332) 2019-09-05 10:11:25 -04:00
index.asciidoc [DOCS] Edits 7.3 release highlights (#45066) 2019-07-31 15:49:27 -07:00
limitations.asciidoc SQL: Implement scripting inside aggs (#55241) (#55371) 2020-04-17 12:41:22 +02:00
overview.asciidoc SQL: remove beta marker from documentation (#38661) 2019-02-10 00:09:58 +02:00
security.asciidoc [DOCS] Remove unneeded options from `[source,sql]` code blocks (#42759) 2019-05-31 13:05:13 -04:00