-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed as not planned
Labels
:Analytics/SQLSQL queryingSQL querying>enhancementTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)
Description
Currently TIME data type is internally modelled as OffsetTime which is not treated correctly by ES scripting modules which causes queries like:
SELECT count(*) FROM test GROUP BY CAST(date_created AS TIME);
and
SELECT HISTOGRAM(CAST(birth_date AS TIME), INTERVAL '10' MINUTES) as h, COUNT(*) FROM t GROUP BY h
to fail.
To correctly implement this TIME -> OffsetTime must be converted to Long for the scripting purposes and converted back to OffsetTime when values are extracted from ES response.
Metadata
Metadata
Assignees
Labels
:Analytics/SQLSQL queryingSQL querying>enhancementTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)