-
Notifications
You must be signed in to change notification settings - Fork 25.6k
SQL: [docs] Add documentation for COALESCE #35740
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
Conversation
|
Pinging @elastic/es-search-aggs |
astefan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left two comments.
| ---- | ||
| COALESCE ( expression<1>, expression<2>, ... ) | ||
| ---- | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enumerating the parameters should happen in a section called Input. Also, there has to be an Output section. Something like:
==== `COALESCE`
.Synopsis:
[source, sql]
--------------------------------------------------
COALESCE ( expression<1>, expression<2>, ... )
--------------------------------------------------
*Input*:
<1> 1st expression
<2> 2nd expression
....
*Output*: one expression or `null`
.Description:
Returns the first of its arguments that is not null.
If all arguments are null, then it returns `null`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I would add in the description (to enforce the ... in the parameters list), that the function can take an arbitrary number of arguments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The statement about arbitrary number of arguments is there. Please, ignore my comment.
|
@astefan Thank you! pushed fixup. |
astefan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
costin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Backported to |
Follows: #35253