-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
ESQL: review FunctionInfo for all functions #106346
Comments
Pinging @elastic/es-analytical-engine (Team:Analytics) |
As #106222 (comment) does not complain about the inconsistence for |
I think the best approach for |
@fang-xing-esql I think the
Meaning:
|
Description
#106222 revealed the fact that the information outputted by
show functions
is inconsistent in at least 4 functions.show functions | where name == \"coalesce\" or name == \"case\" or name == \"greatest\" or name == \"least\" or name == \"concat\" | keep name, variadic, optionalArgs, arg*
case
has at least two required arguments. So,optionalArgs
is correctish. ButargNames
is not:[condition, rest]
, it should be[condition, value, rest]
. IfargNames
has three values ("rest" representing the "variadic" part of the arguments) thenoptionalArgs
should be[false, false, true]
.concat
has one required arguments.optionalArgs
is wrong, as well: if it shows two arguments, then the second one should betrue
(the variadic, optional part).coalesce
has one required argument. This means that[false, false]
is wrong as well. It should either be[false]
or[false, true]
(to follow the logic from the two statements above). The same wrong output is forgreatest
andleast
.The text was updated successfully, but these errors were encountered: