-
Notifications
You must be signed in to change notification settings - Fork 25.8k
SQL: Introduce proper SQL DATE type #37340
Copy link
Copy link
Closed
Labels
Description
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).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.