-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
docs: Add alternative syntax for extract, trim and substring. #13143
Conversation
@@ -124,6 +124,8 @@ fn get_btrim_doc() -> &'static Documentation { | |||
```"#) | |||
.with_standard_argument("str", Some("String")) | |||
.with_argument("trim_str", "String expression to operate on. Can be a constant, column, or function, and any combination of operators. _Default is whitespace characters._") | |||
.with_alternative_syntax("trim(BOTH trim_str FROM str)") | |||
.with_alternative_syntax("trim(trim_str FROM str)") |
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.
Does this deserve new SLT test cases?
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.
I grabbed the syntax from an slt test :)
lgtm 👍 |
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.
This looks good to me. We're pretty close!
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.
Thank you @Omega359 @findepi and @jonathanc-n
Which issue does this PR close?
Related to #13139, discussed in #13036
Rationale for this change
Complete documentation for functions with alternative syntax
What changes are included in this PR?
doc updates only
Are these changes tested?
Yes.
Are there any user-facing changes?
Documentation