-
Notifications
You must be signed in to change notification settings - Fork 503
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
Updated functions documentation #4232
Updated functions documentation #4232
Conversation
… added missing functions Signed-off-by: Matthew Wells <[email protected]>
Signed-off-by: Matthew Wells <[email protected]>
Signed-off-by: Matthew Wells <[email protected]>
Updated documentation of arithmetic functions
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.
thanks!
Signed-off-by: Matthew Wells <[email protected]>
Signed-off-by: Matthew Wells <[email protected]>
Thank you, @matthewryanwells, @acarbonetto, and @Yury-Fridlyand! This needs to be backported to all versions 1.3 and up, correct? |
Signed-off-by: Matthew Wells <[email protected]>
Signed-off-by: Matthew Wells <[email protected]>
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.
Looks good, please test the boolean functions and make sure that they are supported in V2
Signed-off-by: Matthew Wells <[email protected]>
@kolchfa-aws the documentation changes made by me, @acarbonetto, and @Yury-Fridlyand are for version 2.8 and above. |
Thank you, @matthewryanwells! Do you mind surrounding all the function names in the first column with tic marks to make the PR pass the linter? |
Signed-off-by: Matthew Wells <[email protected]>
Signed-off-by: Matthew Wells <[email protected]>
@kolchfa-aws I have added the tics to the function names, and also went through each and every query example works as written |
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.
Thanks so much for your contribution, @matthewryanwells!
_search-plugins/sql/functions.md
Outdated
% | `number [op] number -> number` | `SELECT 1 % 100 FROM my-index LIMIT 1` | ||
| Function | Specification | Example | | ||
|:---------|:-----------------------------------------------------------------|:------------------------------------------------------------------------------------| | ||
| abs | `abs(number T) -> T` | `SELECT abs(0.5)` | |
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.
| abs | `abs(number T) -> T` | `SELECT abs(0.5)` | | |
| `abs` | `abs(number T) -> T` | `SELECT abs(0.5)` | |
* Updated documentation of arithmetic functions, correct some mistakes, added missing functions Signed-off-by: Matthew Wells <[email protected]> * Added a few missing variable definitions Signed-off-by: Matthew Wells <[email protected]> * Updated arithmetic operators documentation to include symbol Signed-off-by: Matthew Wells <[email protected]> * removed unneeded SELECT and LIMIT Signed-off-by: Matthew Wells <[email protected]> * reformated table Signed-off-by: Matthew Wells <[email protected]> * updated data types of functions and made some corrections Signed-off-by: Matthew Wells <[email protected]> * removed missing brackets, fixed incorrect ifnull documentation Signed-off-by: Matthew Wells <[email protected]> * fixed more minor mistakes and confirmed all function examples work Signed-off-by: Matthew Wells <[email protected]> * added ticks to all function names to get it to pass the linter Signed-off-by: Matthew Wells <[email protected]> --------- Signed-off-by: Matthew Wells <[email protected]> (cherry picked from commit 2e6016c) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Updated documentation of arithmetic functions, correct some mistakes, added missing functions * Added a few missing variable definitions * Updated arithmetic operators documentation to include symbol * removed unneeded SELECT and LIMIT * reformated table * updated data types of functions and made some corrections * removed missing brackets, fixed incorrect ifnull documentation * fixed more minor mistakes and confirmed all function examples work * added ticks to all function names to get it to pass the linter --------- (cherry picked from commit 2e6016c) Signed-off-by: Matthew Wells <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Updated documentation of arithmetic functions, correct some mistakes, added missing functions Signed-off-by: Matthew Wells <[email protected]> * Added a few missing variable definitions Signed-off-by: Matthew Wells <[email protected]> * Updated arithmetic operators documentation to include symbol Signed-off-by: Matthew Wells <[email protected]> * removed unneeded SELECT and LIMIT Signed-off-by: Matthew Wells <[email protected]> * reformated table Signed-off-by: Matthew Wells <[email protected]> * updated data types of functions and made some corrections Signed-off-by: Matthew Wells <[email protected]> * removed missing brackets, fixed incorrect ifnull documentation Signed-off-by: Matthew Wells <[email protected]> * fixed more minor mistakes and confirmed all function examples work Signed-off-by: Matthew Wells <[email protected]> * added ticks to all function names to get it to pass the linter Signed-off-by: Matthew Wells <[email protected]> --------- Signed-off-by: Matthew Wells <[email protected]>
* Updated documentation of arithmetic functions, correct some mistakes, added missing functions Signed-off-by: Matthew Wells <[email protected]> * Added a few missing variable definitions Signed-off-by: Matthew Wells <[email protected]> * Updated arithmetic operators documentation to include symbol Signed-off-by: Matthew Wells <[email protected]> * removed unneeded SELECT and LIMIT Signed-off-by: Matthew Wells <[email protected]> * reformated table Signed-off-by: Matthew Wells <[email protected]> * updated data types of functions and made some corrections Signed-off-by: Matthew Wells <[email protected]> * removed missing brackets, fixed incorrect ifnull documentation Signed-off-by: Matthew Wells <[email protected]> * fixed more minor mistakes and confirmed all function examples work Signed-off-by: Matthew Wells <[email protected]> * added ticks to all function names to get it to pass the linter Signed-off-by: Matthew Wells <[email protected]> --------- Signed-off-by: Matthew Wells <[email protected]> Signed-off-by: Melissa Vagi <[email protected]>
This reverts commit 4b2fd6c. Signed-off-by: Melissa Vagi <[email protected]>
* Updated documentation of arithmetic functions, correct some mistakes, added missing functions Signed-off-by: Matthew Wells <[email protected]> * Added a few missing variable definitions Signed-off-by: Matthew Wells <[email protected]> * Updated arithmetic operators documentation to include symbol Signed-off-by: Matthew Wells <[email protected]> * removed unneeded SELECT and LIMIT Signed-off-by: Matthew Wells <[email protected]> * reformated table Signed-off-by: Matthew Wells <[email protected]> * updated data types of functions and made some corrections Signed-off-by: Matthew Wells <[email protected]> * removed missing brackets, fixed incorrect ifnull documentation Signed-off-by: Matthew Wells <[email protected]> * fixed more minor mistakes and confirmed all function examples work Signed-off-by: Matthew Wells <[email protected]> * added ticks to all function names to get it to pass the linter Signed-off-by: Matthew Wells <[email protected]> --------- Signed-off-by: Matthew Wells <[email protected]>
Description
There were a few mistakes in the function documentation that I have fixed.
I also made a few general improvements to the readability of the code.
Issues Resolved
This PR is not associated with any issues
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.