-
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: Improve analysis/comparison of functions with optional arguments #40313
Labels
:Analytics/SQL
SQL querying
>enhancement
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Comments
Pinging @elastic/es-search |
Pinging @elastic/es-ql (Team:QL) |
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Superceded by ES|QL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
:Analytics/SQL
SQL querying
>enhancement
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
The Analyzer fails to take into account functions with optional arguments when doing basic comparisons:
ROUND(x) != ROUND(x, 0)
.This makes sense since outside a function definition, it is impossible to determine what the rules however potentially this can be formalized by extending functions to indicate whether they have optional arguments and what these are.
The issue poses a problem when trying to resolve functions based on already existing functions which have been resolved.
Related to #40242
The text was updated successfully, but these errors were encountered: