Elasticsearch: SQL: support for ODBC timedate functions

Created on 28 Jan 2019  路  6Comments  路  Source: elastic/elasticsearch

Drivers are meant to report support for the functions implemented by the driver+data source.

Out of the timedate group, we are missing still the following:

  • [x] CURRENT_DATE
  • [x] CURRENT_TIME
  • [x] CURDATE
  • [x] CURTIME
  • [x] DATE_TRUNC
  • [x] DATE_PART
  • [x] NOW
  • [x] TIMESTAMPADD
  • [x] TIMESTAMPDIFF
  • [x] TODAY

See https://docs.microsoft.com/en-us/sql/odbc/reference/appendixes/time-date-and-interval-functions for details.

:Query LanguageSQL >enhancement

Most helpful comment

All listed functions are implemented.

All 6 comments

Pinging @elastic/es-search

High-level view over the functions support: https://github.com/elastic/elasticsearch/issues/30007

@matriv can you please look into adding the current variants for SQL DATE?

@bpintea NOW() is already implemented (alias to CURRENT_TIMESTAMP())

Introducing CURRENT_TIME/CURTIME requires to introduce the TIME data type first: #38174

All listed functions are implemented.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Praveen82 picture Praveen82  路  3Comments

dawi picture dawi  路  3Comments

ttaranov picture ttaranov  路  3Comments

abtpst picture abtpst  路  3Comments

DhairyashilBhosale picture DhairyashilBhosale  路  3Comments