Skip to content

Commit 1686c32

Browse files
authored
SQL: Rename SQL type DATE to DATETIME (#37395)
* SQL: Rename SQL data type DATE to DATETIME SQL data type DATE has only the date part (e.g.: 2019-01-14) without any time information. Previously the SQL type DATE was referring to the ES DATE which contains also the time part along with TZ information. To conform with SQL data types the data type `DATE` is renamed to `DATETIME`, since it includes also the time, as a new runtime SQL `DATE` data type will be introduced down the road, which only contains the date part and meets the SQL standard. Closes: #36440 * Address comments
1 parent b6e5cca commit 1686c32

File tree

56 files changed

+315
-309
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+315
-309
lines changed

docs/reference/sql/endpoints/rest.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Which returns:
6868
{"name": "author", "type": "text"},
6969
{"name": "name", "type": "text"},
7070
{"name": "page_count", "type": "short"},
71-
{"name": "release_date", "type": "date"}
71+
{"name": "release_date", "type": "datetime"}
7272
],
7373
"rows": [
7474
["Peter F. Hamilton", "Pandora's Star", 768, "2004-03-02T00:00:00.000Z"],
@@ -186,7 +186,7 @@ Douglas Adams |The Hitchhiker's Guide to the Galaxy|180 |1979-10-12T
186186
In addition to the `query` and `cursor` fields, the request can
187187
contain `fetch_size` and `time_zone`. `fetch_size` is a hint for how
188188
many results to return in each page. SQL might chose to return more
189-
or fewer results though. `time_zone` is the time zone to use for date
190-
functions and date parsing. `time_zone` defaults to `utc` and can take
189+
or fewer results though. `time_zone` is the time zone to use for datetime
190+
functions and datetime parsing. `time_zone` defaults to `utc` and can take
191191
any values documented
192192
http://www.joda.org/joda-time/apidocs/org/joda/time/DateTimeZone.html[here].

0 commit comments

Comments
 (0)