-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Description
While respecting the Elasticsearch type naming, Es-SQL has a DATE type which in practice is a DateTime.
However this clashes with the SQL type DATE causing a lot of confusion especially when migrating.
Several options were discussed going forward:
- rename date
Rename date to datetime. This adds more meaning to the content however breaks the convention that it maps the elasticsearch date type.
On the upside there's no collision with the SQL types and allows the SQL date type if needed.
- rename date to
timestamp
This is a variant of 1 however it follows the SQL terminology which might be both confusing and clear.
- don't expose ES types in the queries
Prevent the problem from exposing by not allowing the user to create the ES data types (typically through CAST - CAST ('1' AS KEYWORD). This will impact testing and be asymmetric since such types are returned as results. Further more, the confusion around date remains since it shows up in the table description.