Open luigidellaquila opened 7 months ago
Pinging @elastic/es-analytical-engine (Team:Analytics)
@craigtaverner Can you take this one?
I'm investigating this, but it turns out that if we do a type check up-front, for example say that int_range cannot be matched to a keyword field, then we rule out some queries that currently work. If the keyword field actually contains an integer, such that Integer.parseInt does not throw an exception, then the query will work. Since that is a per-row decision, and a type check is at the query level, we need to decide between two options:
Reproducible on the tests dataset with
The match field for
ages_policy
isage_range
, that is aninteger_range
We should probably have a more strict validation for these cases and return a more descriptive error message