ESQL: Formalize common type conversions inside a query #104638
Labels
:Analytics/ES|QL
AKA ESQL
>enhancement
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Description
A common pattern in certain queries is to declare values as strings even though the underlying consumer expects a different type - e.g. declare dates as strings; see #104547
Instead of addressing this locally, which can be problematic as the consumer has to perform both conversion and error reporting, this is better addressed in a centralized matter:
For this to happen, the Analyzer would catch the type difference and add a synthetic conversion in place, which can then bubble up.
Note that we'd like the conversion to be applied early, in order to catch any potential failures as soon as possible.
P.S. This is a topic that occurred in SQL several times as well:
#49636
#77055
The text was updated successfully, but these errors were encountered: