Skip to content

SQL: Introduce proper SQL DATE type #37340

@costin

Description

@costin

In the spirit of #36440, ES SQL should be able to support a proper, date-only data type. As ANSI SQL already defines one through DATE once #36440 complete, ES SQL could have DataType.DATE added to describe a DATE only type.

Being a new date-time type, all date-related functionalities would need to take it into account:

a. grouping and histograms
The latter in particular should have the minimum interval of 1 day
b. date-time functions
As most work on the date component this is mainly a validation task
c. date-time math
Adding or extracting an interval. Worth looking into whether DATE-DATE makes sense or whether we should add a date function (e.g. DATE_DIFF).

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions