elasticsearch/docs/reference/sql
Marios Trivyzas 8810ed03a2
SQL: Fix DATETIME_PARSE behaviour regarding timezones (#56158)
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
2020-05-05 11:13:47 +02:00
..
appendix SQL: Implement CURRENT_TIME/CURTIME functions (#40662) 2019-04-03 19:35:37 +02:00
endpoints SQL: Fix DATETIME_PARSE behaviour regarding timezones (#56158) 2020-05-05 11:13:47 +02:00
functions SQL: Fix DATETIME_PARSE behaviour regarding timezones (#56158) 2020-05-05 11:13:47 +02:00
language QL: constant_keyword support (#53241) 2020-03-16 15:22:42 +02:00
concepts.asciidoc [DOCS] Replaces CCS terms with attributes (#40076) 2019-03-15 07:54:45 -07:00
getting-started.asciidoc Remove types from BulkRequest (#46983) 2019-10-07 13:29:12 +01:00
index.asciidoc SQL: Spec tests now use classpath discovery (#40388) 2019-03-25 15:22:59 +02:00
limitations.asciidoc SQL: Implement scripting inside aggs (#55241) 2020-04-17 11:22:06 +02:00
overview.asciidoc SQL: remove beta marker from documentation (#38661) 2019-02-10 00:09:03 +02:00
security.asciidoc [DOCS] Remove unneeded options from [source,sql] code blocks (#42759) 2019-05-31 13:03:41 -04:00