-
Notifications
You must be signed in to change notification settings - Fork 338
[doc](function)support regexp_count function #2475
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
|
||
## 返回值 | ||
|
||
- 返回正则表达式 “pattern” 在字符串 “str” 中的匹配字符数量,返回类型为 “int”。若没有字符匹配,则返回 0。 |
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.
如果 str 或者pattern 为null的时候,结果是啥?
如果 pattern 不符合正则表达式的规则定义返回是啥?
参考 https://docs.databricks.com/aws/en/sql/language-manual/functions/regexp_count 的定义
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.
如果明确了行为之后,得把这两个行为补充到测试case 章节
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
Versions
Languages
Docs Checklist