-
Notifications
You must be signed in to change notification settings - Fork 292
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
[doc]Fix string function documentation docs #1842
Conversation
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.
评论了前几个文件,其他的有类似的问题。麻烦统一改一波吧
|
||
#### Arguments | ||
```sql | ||
COUNT_SUBSTRINGS(str, pattern) |
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.
参数需要用尖括号包裹
COUNT_SUBSTRINGS(str, pattern) | |
COUNT_SUBSTRINGS(<str>, <pattern>) |
| str | The string to be searched. Type: STRING | | ||
| pattern | The substring to match. Type: STRING | |
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 | The string to be searched. Type: STRING | | |
| pattern | The substring to match. Type: STRING | | |
| `<str>` | The string to be searched. Type: STRING | | |
| `<pattern>` | The substring to match. Type: STRING | |
## Syntax | ||
|
||
`VARCHAR cut_to_first_significant_subdomain(VARCHAR url)` | ||
```sql | ||
VARCHAR CUT_TO_FIRST_SIGNIFICANT_SUBDOMAIN(VARCHAR url) |
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.
不要类型
VARCHAR CUT_TO_FIRST_SIGNIFICANT_SUBDOMAIN(VARCHAR url) | |
CUT_TO_FIRST_SIGNIFICANT_SUBDOMAIN(<url>) |
+----------------+ | ||
| strright(NULL, 5) | | ||
+----------------+ | ||
| 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.
这个结果表格有点儿问题?101行,表格出去了
@@ -29,14 +29,14 @@ The COUNT_SUBSTRINGS function counts the number of occurrences of a specified su | |||
## Syntax | |||
|
|||
```sql | |||
COUNT_SUBSTRINGS(str, pattern) | |||
COUNT_SUBSTRINGS(VARCHAR <str>, VARCHAR <pattern>) |
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.
参数不需要类型说明
COUNT_SUBSTRINGS(VARCHAR <str>, VARCHAR <pattern>) | |
COUNT_SUBSTRINGS(<str>, <pattern>) |
Versions
Languages
Docs Checklist