Skip to content

Commit e497966

Browse files
authored
Update splitting-merging-functions.md
Seems splitByChar can only accept single-byte separator. ``` SELECT splitByChar('€', '123') AS result ``` The result is ``` Received exception from server (version 25.4.1): Code: 36. DB::Exception: Received from localhost:9000. DB::Exception: Illegal separator for function splitByChar. Must be exactly one byte.: In scope SELECT splitByChar('€', '123') AS result. (BAD_ARGUMENTS) ```
1 parent f0d54df commit e497966

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/en/sql-reference/functions/splitting-merging-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ splitByChar(separator, s[, max_substrings]))
2121

2222
**Arguments**
2323

24-
- `separator` — The separator which should contain exactly one character. [String](../data-types/string.md).
24+
- `separator` — The separator must be a single-byte character. [String](../data-types/string.md).
2525
- `s` — The string to split. [String](../data-types/string.md).
2626
- `max_substrings` — An optional `Int64` defaulting to 0. If `max_substrings` > 0, the returned array will contain at most `max_substrings` substrings, otherwise the function will return as many substrings as possible.
2727

0 commit comments

Comments
 (0)