mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 10:31:57 +00:00
Update test
This commit is contained in:
parent
dea8d366c9
commit
861237f225
@ -1,23 +1,23 @@
|
||||
0 groups, zero matches
|
||||
[]
|
||||
[[],[]]
|
||||
1 group, multiple matches, String and FixedString
|
||||
[['hello','world']]
|
||||
[['hello','world']]
|
||||
[['hello','world']]
|
||||
[['hello','world']]
|
||||
[['hello','world']]
|
||||
[['hello','world']]
|
||||
[['hello'],['world']]
|
||||
[['hello'],['world']]
|
||||
[['hello'],['world']]
|
||||
[['hello'],['world']]
|
||||
[['hello'],['world']]
|
||||
[['hello'],['world']]
|
||||
mutiple groups, multiple matches
|
||||
[['abc','def','ghi','"jkl mno"'],['111','222','333','"444 foo bar"']]
|
||||
[['abc','111'],['def','222'],['ghi','333'],['"jkl mno"','"444 foo bar"']]
|
||||
big match
|
||||
0 1 0 []
|
||||
0 0 0 []
|
||||
260 1 1 [156]
|
||||
520 1 3 [156,156,156]
|
||||
lots of matches
|
||||
0 1 0 0
|
||||
0 0 0 0
|
||||
260 1 260 260
|
||||
520 1 520 520
|
||||
lots of groups
|
||||
0 100 0 []
|
||||
0 0 0 []
|
||||
260 100 2 [1,1]
|
||||
520 100 5 [1,1,1,1,1]
|
||||
|
@ -22,7 +22,7 @@ SELECT extractAllGroups('abc=111, def=222, ghi=333 "jkl mno"="444 foo bar"', '("
|
||||
|
||||
SELECT 'big match';
|
||||
SELECT
|
||||
length(haystack), length(matches), length(matches[1]), arrayMap((x) -> length(x), matches[1])
|
||||
length(haystack), length(matches[1]), length(matches), arrayMap((x) -> length(x), arrayMap(x -> x[1], matches))
|
||||
FROM (
|
||||
SELECT
|
||||
repeat('abcdefghijklmnopqrstuvwxyz', number * 10) AS haystack,
|
||||
@ -32,7 +32,7 @@ FROM (
|
||||
|
||||
SELECT 'lots of matches';
|
||||
SELECT
|
||||
length(haystack), length(matches), length(matches[1]), arrayReduce('sum', arrayMap((x) -> length(x), matches[1]))
|
||||
length(haystack), length(matches[1]), length(matches), arrayReduce('sum', arrayMap((x) -> length(x), arrayMap(x -> x[1], matches)))
|
||||
FROM (
|
||||
SELECT
|
||||
repeat('abcdefghijklmnopqrstuvwxyz', number * 10) AS haystack,
|
||||
@ -42,7 +42,7 @@ FROM (
|
||||
|
||||
SELECT 'lots of groups';
|
||||
SELECT
|
||||
length(haystack), length(matches), length(matches[1]), arrayMap((x) -> length(x), matches[1])
|
||||
length(haystack), length(matches[1]), length(matches), arrayMap((x) -> length(x), arrayMap(x -> x[1], matches))
|
||||
FROM (
|
||||
SELECT
|
||||
repeat('abcdefghijklmnopqrstuvwxyz', number * 10) AS haystack,
|
||||
|
Loading…
Reference in New Issue
Block a user