-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL: Perform type verification for comparison operators #49636
Comments
Pinging @elastic/es-search (:Search/SQL) |
Maybe as a bonus check if the Postgres behaviour could be followed:
|
@matriv Does that work in where clauses too, like |
We probably still want to support queries like these: But the following tests, currently asserting success, would need to be changed/dropped:
|
|
@elastic/es-ql |
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Currently
BinaryOperators
only check whether both types are resolved yet it doesn't check whether the types are actually compatible.This means
123 > 'foo'
is allowed despite being a numeric vs string comparison which is incorrect.The text was updated successfully, but these errors were encountered: