Skip to content

Commit 45e9352

Browse files
authored
docs: Fix the examples for char_length() and character_length() (#18808)
## Which issue does this PR close? - Closes N/A. ## Rationale for this change The examples for `char_length()` and `character_length()` are swapped at https://datafusion.apache.org/user-guide/expressions.html#string-expressions ## What changes are included in this PR? Swap the examples to fix the issue. ## Are these changes tested? No. Only docs are touched. ## Are there any user-facing changes? No Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
1 parent b2e99fc commit 45e9352

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/user-guide/expressions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ select log(-1), log(0), sqrt(-1);
179179
| ascii(character) | Returns a numeric representation of the character (`character`). Example: `ascii('a') -> 97` |
180180
| bit_length(text) | Returns the length of the string (`text`) in bits. Example: `bit_length('spider') -> 48` |
181181
| btrim(text, characters) | Removes all specified characters (`characters`) from both the beginning and the end of the string (`text`). Example: `btrim('aabchelloccb', 'abc') -> hello` |
182-
| char_length(text) | Returns number of characters in the string (`text`). The same as `character_length` and `length`. Example: `character_length('lion') -> 4` |
183-
| character_length(text) | Returns number of characters in the string (`text`). The same as `char_length` and `length`. Example: `char_length('lion') -> 4` |
182+
| char_length(text) | Returns number of characters in the string (`text`). The same as `character_length` and `length`. Example: `char_length('lion') -> 4` |
183+
| character_length(text) | Returns number of characters in the string (`text`). The same as `char_length` and `length`. Example: `character_length('lion') -> 4` |
184184
| concat(value1, [value2 [, ...]]) | Concatenates the text representations (`value1, [value2 [, ...]]`) of all the arguments. NULL arguments are ignored. Example: `concat('aaa', 'bbc', NULL, 321) -> aaabbc321` |
185185
| concat_ws(separator, value1, [value2 [, ...]]) | Concatenates the text representations (`value1, [value2 [, ...]]`) of all the arguments with the separator (`separator`). NULL arguments are ignored. `concat_ws('/', 'path', 'to', NULL, 'my', 'folder', 123) -> path/to/my/folder/123` |
186186
| chr(integer) | Returns a character by its numeric representation (`integer`). Example: `chr(90) -> 8` |

0 commit comments

Comments
 (0)