You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`length`| Returns the number of characters in a string (not byte length). |`string` (the string whose length is to be calculated) | INT32 | length(string) |
778
-
|`upper`| Converts all letters in a string to uppercase. | string | String | upper(string) |
779
-
|`lower`| Converts all letters in a string to lowercase. | string | String | lower(string) |
780
-
|`trim`| Removes specified leading and/or trailing characters from a string. **Parameters:** - `specification` (optional): Specifies which side to trim: - `BOTH`: Removes characters from both sides (default). - `LEADING`: Removes characters from the beginning. - `TRAILING`: Removes characters from the end. - `trimcharacter` (optional): Character to be removed (default is whitespace). - `string`: The target string. | string | String | trim([[ specification ][ trimcharacter ] FROM ] string) Example:`trim('!' FROM '!foo!');` —— `'foo'`|
781
-
|`strpos`| Returns the position of the first occurrence of `subStr` in `sourceStr`. **Notes:** - Position starts at `1`. - Returns `0` if `subStr` is not found. - Positioning is based on characters, not byte arrays. |`sourceStr` (string to be searched), `subStr` (substring to find) | INT32 | strpos(sourceStr, subStr) |
782
-
|`starts_with`| Checks if `sourceStr` starts with the specified `prefix`. |`sourceStr`, `prefix`| Boolean | starts_with(sourceStr, prefix) |
783
-
|`ends_with`| Checks if `sourceStr` ends with the specified `suffix`. |`sourceStr`, `suffix`| Boolean | ends_with(sourceStr, suffix) |
784
-
|`concat`| Concatenates `string1, string2, ..., stringN`. Equivalent to the `||` operator. |`string`, `text`| String | concat(str1, str2, ...) or str1 \|\| str2 ... |
785
-
|`strcmp`| Compares two strings lexicographically. **Returns:** - `-1` if `str1 < str2` - `0` if `str1 = str2` - `1` if `str1 > str2` - `NULL` if either `str1` or `str2` is `NULL`|`string1`, `string2`| INT32 | strcmp(str1, str2) |
786
-
|`replace`| Removes all occurrences of `search` in `string`. |`string`, `search`| String | replace(string, search) |
787
-
|`replace`| Replaces all occurrences of `search` in `string` with `replace`. |`string`, `search`, `replace`| String | replace(string, search, replace) |
788
-
|`substring`| Extracts a substring from `start_index` to the end of the string. **Notes:** - `start_index` starts at `1`. - Returns `NULL` if input is `NULL`. - Throws an error if `start_index` is greater than string length. |`string`, `start_index`| String | substring(string from start_index)or substring(string, start_index) |
789
-
|`substring`| Extracts a substring of `length` characters starting from `start_index`. **Notes:** - `start_index` starts at `1`. - Returns `NULL` if input is `NULL`. - Throws an error if `start_index` is greater than string length. - Throws an error if `length` is negative. - If `start_index + length` exceeds `int.MAX`, an overflow error may occur. |`string`, `start_index`, `length`| String | substring(string from start_index for length) or substring(string, start_index, length) |
775
+
| Function Name | Description | Input| Output | Usage |
|`length`| Returns the number of characters in a string (not byte length). |`string` (the string whose length is to be calculated)| INT32 | length(string) |
778
+
|`upper`| Converts all letters in a string to uppercase. | string| String | upper(string) |
779
+
|`lower`| Converts all letters in a string to lowercase. | string| String | lower(string) |
780
+
|`trim`| Removes specified leading and/or trailing characters from a string. **Parameters:** - `specification` (optional): Specifies which side to trim: - `BOTH`: Removes characters from both sides (default). - `LEADING`: Removes characters from the beginning. - `TRAILING`: Removes characters from the end. - `trimcharacter` (optional): Character to be removed (default is whitespace). - `string`: The target string. | string | String | trim([[ specification ][ trimcharacter ] FROM ] string) Example:`trim('!' FROM '!foo!');` —— `'foo'`|
781
+
|`strpos`| Returns the position of the first occurrence of `subStr` in `sourceStr`. **Notes:** - Position starts at `1`. - Returns `0` if `subStr` is not found. - Positioning is based on characters, not byte arrays. |`sourceStr` (string to be searched), `subStr` (substring to find) | INT32 | strpos(sourceStr, subStr) |
782
+
|`starts_with`| Checks if `sourceStr` starts with the specified `prefix`. |`sourceStr`, `prefix`| Boolean | starts_with(sourceStr, prefix) |
783
+
|`ends_with`| Checks if `sourceStr` ends with the specified `suffix`. |`sourceStr`, `suffix`| Boolean | ends_with(sourceStr, suffix) |
784
+
|`concat`| Concatenates `string1, string2, ..., stringN`. Equivalent to the `\|\|` operator.|`string`, `text`| String | concat(str1, str2, ...) or str1 \|\| str2 ... |
785
+
|`strcmp`| Compares two strings lexicographically. **Returns:** - `-1` if `str1 < str2` - `0` if `str1 = str2` - `1` if `str1 > str2` - `NULL` if either `str1` or `str2` is `NULL`|`string1`, `string2`| INT32 | strcmp(str1, str2) |
786
+
|`replace`| Removes all occurrences of `search` in `string`. |`string`, `search`| String | replace(string, search) |
787
+
|`replace`| Replaces all occurrences of `search` in `string` with `replace`. |`string`, `search`, `replace`| String | replace(string, search, replace) |
788
+
|`substring`| Extracts a substring from `start_index` to the end of the string. **Notes:** - `start_index` starts at `1`. - Returns `NULL` if input is `NULL`. - Throws an error if `start_index` is greater than string length. |`string`, `start_index`| String | substring(string from start_index)or substring(string, start_index) |
789
+
|`substring`| Extracts a substring of `length` characters starting from `start_index`. **Notes:** - `start_index` starts at `1`. - Returns `NULL` if input is `NULL`. - Throws an error if `start_index` is greater than string length. - Throws an error if `length` is negative. - If `start_index + length` exceeds `int.MAX`, an overflow error may occur. |`string`, `start_index`, `length`| String | substring(string from start_index for length) or substring(string, start_index, length) |
0 commit comments