-
Notifications
You must be signed in to change notification settings - Fork 29.3k
[SPARK-32193][SQL][DOCS] Update regexp usage in SQL docs #29009
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
Changes from 24 commits
bb1efa2
1459d5b
88c40fe
df22083
0436611
ed80c84
39ca87c
c3b3c89
c3546eb
77a339a
a6b4f74
664277e
fd677c9
93b1f63
a5b5474
f4556a4
6071006
596b842
dc24541
d99c869
805c8c3
c6f541b
386888a
62d2fb2
06cfd5d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,7 @@ A LIKE predicate is used to search for a specific pattern. | |
| ### Syntax | ||
|
|
||
| ```sql | ||
| [ NOT ] { LIKE search_pattern [ ESCAPE esc_char ] | RLIKE regex_pattern } | ||
| [ NOT ] { LIKE search_pattern [ ESCAPE esc_char ] | RLIKE regex_pattern | REGEXP regex_pattern} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think its okay for this PR to just update this doc.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. have updated and added examples for this usage.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Btw, this reminded me that there are still missing keywords in the SQL docs: https://issues.apache.org/jira/browse/SPARK-31753
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am glad to take this over,will work on it later :)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! That's very helpful. |
||
| ``` | ||
|
|
||
| ### Parameters | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -359,6 +359,7 @@ object FunctionRegistry { | |
| expression[StringReplace]("replace"), | ||
| expression[Overlay]("overlay"), | ||
| expression[RLike]("rlike"), | ||
| expression[RLike]("regexp", true), | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Need this? It seems hive and mysql doesn't support this though.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, let me will remove the function usage |
||
| expression[StringRPad]("rpad"), | ||
| expression[StringTrimRight]("rtrim"), | ||
| expression[Sentences]("sentences"), | ||
|
|
||
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.
We don't need this.