Skip to content

Commit 61299b7

Browse files
authored
Merge pull request ClickHouse#79995 from ClickHouse/ncb/splitbychar-test
few more test cases for splitByChar
2 parents 9ca9187 + eb5008f commit 61299b7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
['1','2','3']
2+
['1','2','3']
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
select splitByChar(',', '1,2,3');
2+
select splitByChar('+', '1+2+3');
3+
-- splitByChar accepts only 1 byte length characters. Test for some special characters that are not necessarily single byte.
4+
select splitByChar('×', '1x2x3'); -- { serverError BAD_ARGUMENTS }
5+
select splitByChar('', '€1,2,3'); -- { serverError BAD_ARGUMENTS }
6+
select splitByChar('', '• 1,2,3'); -- { serverError BAD_ARGUMENTS }

0 commit comments

Comments
 (0)