mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 09:22:05 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
290 lines
6.8 KiB
Plaintext
290 lines
6.8 KiB
Plaintext
[1,1,1,1,2,3]
|
|
[1,1,1,1,2,3]
|
|
same as arrayEnumerateUniq:
|
|
[1,1,2] =
|
|
[1,1,2]
|
|
[1,1,2]
|
|
[1,1,1] =
|
|
[1,1,1]
|
|
[1,1,1]
|
|
[1,1,1] =
|
|
[1,1,1]
|
|
[1,1,1]
|
|
[1,1,1] =
|
|
[1,1,1]
|
|
[1,1,1]
|
|
[1,2,1] =
|
|
[1,2,1]
|
|
[1,2,1]
|
|
[1,2,1] =
|
|
[1,2,1]
|
|
[1,2,1]
|
|
1,..,2
|
|
[[1,1,1],[2,3,2],[2]] =
|
|
[[1,1,1],[2,3,2],[2]]
|
|
[[1,1,2],[3,2,4],[1]] =
|
|
[[1,1,2],[3,2,4],[1]]
|
|
[[1,2,3],[4,5,6],[1]] =
|
|
[[1,2,3],[4,5,6],[1]]
|
|
[[1,1,1],[1,2,2],[1]] =
|
|
[[1,1,1],[1,2,2],[1]]
|
|
[[1,1,1],[2,3,2],[1]] =
|
|
[[1,1,1],[2,3,2],[1]]
|
|
[[1,1,1],[1,2,1],[2]] =
|
|
[[1,1,1],[1,2,1],[2]]
|
|
[[1,1,1],[1,2,1],[1]] =
|
|
[[1,1,1],[1,2,1],[1]]
|
|
[[1,1,2],[1,1,2],[1]] =
|
|
[[1,1,2],[1,1,2],[1]]
|
|
[[1,1,2],[1,1,2],[1]] =
|
|
[[1,1,2],[1,1,2],[1]]
|
|
[[1,2,3],[1,2,3],[1]] =
|
|
[[1,2,3],[1,2,3],[1]]
|
|
[[1,1,1],[1,2,1],[1]] =
|
|
[[1,1,1],[1,2,1],[1]]
|
|
[[1,1,1],[1,1,1],[1]] =
|
|
[[1,1,1],[1,1,1],[1]]
|
|
[[1,1,2],[1,1,2],[1]] =
|
|
[[1,1,2],[1,1,2],[1]]
|
|
[[1,1,1],[2,3,2],[1]] =
|
|
[[1,1,1],[2,3,2],[1]]
|
|
2,..,2
|
|
[[1,1,1],[1,2,1],[1]] =
|
|
[[1,1,1],[1,2,1],[1]]
|
|
[[1,1,2],[1,1,2],[1]] =
|
|
[[1,1,2],[1,1,2],[1]]
|
|
[[1,1,1],[1,1,1],[1]] =
|
|
[[1,1,1],[1,1,1],[1]]
|
|
[[1,1,1],[1,2,1],[1]] =
|
|
[[1,1,1],[1,2,1],[1]]
|
|
[[1,1,1],[1,2,1],[1]] =
|
|
[[1,1,1],[1,2,1],[1]]
|
|
[[1,1,2],[1,1,2],[1]] =
|
|
[[1,1,2],[1,1,2],[1]]
|
|
[[1,2,3],[1,2,3],[1]] =
|
|
[[1,2,3],[1,2,3],[1]]
|
|
[[1,2,3],[1,2,3],[1]] =
|
|
[[1,2,3],[1,2,3],[1]]
|
|
more:
|
|
[[[1,1,1],[1,1,1],[1,1,1]],[[1,1,1],[2,2,2],[1,1,1]],[[1,1]]]
|
|
[[[1,1,1],[1,1,1],[1,1,1]],[[1,1,1],[2,2,2],[1,1,1]],[[1,1]]]
|
|
[[[1,1,1],[1,1,1],[1,1,1]],[[1,1,1],[1,1,1],[1,1,1]],[[1,1]]]
|
|
[[[1,1,1],[2,2,2],[3,3,3]],[[1,1,1],[2,2,2],[3,3,3]],[[1,1]]]
|
|
[[[1,1,1],[2,2,2],[3,3,3]],[[4,4,4],[5,5,5],[6,6,6]],[[7,7]]]
|
|
[[[1,1,1],[2,2,2],[3,3,3]],[[4,4,4],[5,5,5],[6,6,6]],[[7,7]]]
|
|
---------Dense
|
|
[1,2,1,3]
|
|
[1,2,1,3]
|
|
[[[1,2,3],[1,2,3],[1,2,3]],[[1,2,3],[1,2,3],[1,2,3]],[[1,2]]]
|
|
[[[1,2,3],[1,2,3],[1,2,3]],[[1,2,3],[1,2,3],[1,2,3]],[[1,2]]]
|
|
[[[1,2,3],[1,2,3],[1,2,3]],[[1,2,3],[1,2,3],[1,2,3]],[[1,2]]]
|
|
[[1,1,1],[1,1,1],[1]]
|
|
[[1,1,1],[1,1,1],[2]]
|
|
[1,1,2]
|
|
---------table
|
|
[1,1,1] [1,1,1] [[1,1,1],[1,1,1],[1]] [[1,1,1],[1,1,1],[1]]
|
|
[1,2,3] [2,2,1] [[1,2,3,4],[2,2,1],[3]] [[1,2,4,4],[2,2,1],[3]]
|
|
[1,2,3] [4,5,6] [[7,8,9],[10,11,12],[13]] [[14,15,16],[17,18,19],[20]]
|
|
[21,22,24] [22,22,21] [[21,22,23,24],[22,22,21],[23]] [[21,22,25,24],[22,22,21],[23]]
|
|
[31,32,33] [32,32,31] [[31,32,33,34],[32,32,31],[33]] [[31,32,34,34],[32,32,31],[33]]
|
|
[41,42,43] [42,42,41] [[41,42,43,44],[42,42,41],[43]] [[41,42,44,44],[42,42,41],[43]]
|
|
---------GO1
|
|
1,a1,1 [1,2,3]
|
|
1,a1,1 [1,1,1]
|
|
1,a1,1 [1,1,1]
|
|
1,a1,1 [1,1,1]
|
|
1,a1,1 [1,1,1]
|
|
1,a1,1 [1,1,1]
|
|
1,a2,1 [1,2,3]
|
|
1,a2,1 [1,2,1]
|
|
1,a2,1 [1,1,1]
|
|
1,a2,1 [1,2,1]
|
|
1,a2,1 [1,2,1]
|
|
1,a2,1 [1,2,1]
|
|
1,a3,1 [1,2,1]
|
|
1,a3,1 [1,1,1]
|
|
1,a3,1 [1,1,1]
|
|
1,a3,1 [1,1,1]
|
|
1,a3,1 [1,1,1]
|
|
1,a3,1 [1,1,1]
|
|
1,a4,1 [1,2,1]
|
|
1,a4,1 [1,1,1]
|
|
1,a4,1 [1,1,1]
|
|
1,a4,1 [1,1,1]
|
|
1,a4,1 [1,1,1]
|
|
1,a4,1 [1,1,1]
|
|
arrayEnumerateUniqRanked(1,a1,1,a2,1) =
|
|
1,a1,1,a2,1 [1,2,3]
|
|
1,a1,1,a2,1 [1,1,1]
|
|
1,a1,1,a2,1 [1,1,1]
|
|
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],[],[],[],[1],[1]]
|
|
[[1],[],[1]]
|
|
[[1],[],[],[1]]
|
|
[[1],[],[],[1],[1]]
|
|
-- no order
|
|
[[],[1,2,3,4]] [[],[1,1,1,1]]
|
|
[[3,4,5]] [[1,1,1]]
|
|
-- order no arr
|
|
[[1,2,3,4]] [[1,1,1,1]]
|
|
[[3,4,5]] [[1,1,1]]
|
|
-- order two arr
|
|
[[],[1,2,3,4]] [[],[1,1,1,1]]
|
|
[[],[3,4,5]] [[],[1,1,1]]
|
|
-- order non empt
|
|
[[3,4,5]] [[1,1,1]]
|
|
[[6],[1,2,3,4]] [[1],[1,1,1,1]]
|
|
-- order
|
|
[[],[1,2,3,4]] [[],[1,1,1,1]]
|
|
[[3,4,5]] [[1,1,1]]
|
|
--
|
|
[[1,1,1,1],[1,1,1,1]]
|
|
[[],[1,1,1,1],[1,1,1,1]]
|
|
[[],[1,1,1,1],[],[],[1,1,1,1]]
|
|
[[1,1,1,1],[],[],[1,1,1,1]]
|
|
[[1],[1]]
|
|
[[],[1],[1]]
|
|
[[],[4]] [[],[1]]
|
|
[[4]] [[1]]
|
|
--
|
|
[[],[1,2,3,4]] [[],[1,1,1,1]]
|
|
[[],[3,4,5]] [[],[1,1,1]]
|
|
--
|
|
[[],[1,2,3,4]] [[],[1,1,1,1]]
|
|
[[3,4,5]] [[1,1,1]]
|
|
--
|
|
[[],[],[1,2,3,4]] [[],[],[1,1,1,1]]
|
|
[[3,4,5]] [[1,1,1]]
|
|
--
|
|
[[],[],[1,2,3,4]] [[],[],[1,1,1,1]]
|
|
[[],[],[3,4,5]] [[],[],[1,1,1]]
|
|
--
|
|
[[],[],[1,2,1,4]] [[],[],[1,1,2,1]]
|
|
[[],[],[3,4,5,4]] [[],[],[1,1,1,2]]
|
|
--
|
|
a1,a2 n []
|
|
a1,a2 n []
|
|
a1,a2 n [1]
|
|
a1,a2 n [1]
|
|
a1,a2 1 []
|
|
a1,a2 1 []
|
|
a1,a2 1 [1]
|
|
a1,a2 1 [1]
|
|
a1,a2 n2 []
|
|
a1,a2 n2 []
|
|
a1,a2 n2 [1,1]
|
|
a1,a2 n2 [1,1]
|
|
a1,a2 n2 [1,1]
|
|
a1,a2 n2 [1,1]
|
|
a1,a2 12 []
|
|
a1,a2 12 []
|
|
a1,a2 12 [1,2]
|
|
a1,a2 12 [1,2]
|
|
a1,a2 12 [1,2]
|
|
a1,a2 12 [1,2]
|
|
1 2019-06-06 1 1 1 1 1 1 [] [] []
|
|
1 2019-06-06 -1 1 1 1 1 1 [] [] []
|
|
1 2019-06-06 1 1 1 2 1 1 [] [] []
|
|
1 2019-06-06 1 1 1 2 2 1 [1,2,3,4] [1001,1002,1003,1004] [1,1,1,1]
|
|
1 2019-06-06 1 2 1 1 3 1 [3,4,5] [2001,2002,2003] [1,1,1]
|
|
1 2019-06-06 1 3 2 1 4 1 [5,6] [3001,3002] [1,1]
|
|
1 2019-06-06 1 3 2 1 5 0 [] [] []
|
|
1 2019-06-06 1 4 2 1 5 1 [1,2] [1001,1002] [1,1]
|
|
1 2019-06-06 1 4 2 1 5 0 [1,2] [1002,1003] [1,1]
|
|
1 2019-06-06 1 4 2 1 6 0 [3] [2001] [1]
|
|
--
|
|
1 2019-06-06 1 1 1 1 1 1 [] [] []
|
|
1 2019-06-06 -1 1 1 1 1 1 [] [] []
|
|
1 2019-06-06 1 1 1 2 1 1 [] [] []
|
|
1 2019-06-06 1 1 1 2 2 1 [1,2,3,4] [1001,1002,1003,1004] [1,1,1,1]
|
|
1 2019-06-06 1 2 1 1 3 1 [3,4,5] [2001,2002,2003] [1,1,1]
|
|
1 2019-06-06 1 3 2 1 4 1 [5,6] [3001,3002] [1,1]
|
|
1 2019-06-06 1 3 2 1 5 0 [] [] []
|
|
1 2019-06-06 1 4 2 1 5 1 [1,2] [1001,1002] [1,1]
|
|
1 2019-06-06 1 4 2 1 5 0 [1,2] [1002,1003] [1,1]
|
|
1 2019-06-06 1 4 2 1 6 0 [3] [2001] [1]
|
|
-- empty
|
|
[[1],[],[2]]
|
|
[[1],[],[2]]
|
|
[[1],[],[2],[],[3],[],[4],[],[5],[],[6],[],[7],[],[8],[],[9]]
|
|
[[],[1],[],[2],[],[3],[],[4],[],[5],[],[6],[],[7],[],[8]]
|
|
[[1],[2],[],[3]]
|
|
-- empty corner
|
|
[[],[1],[]] [[],[1],[]]
|
|
[[1]] [[1]]
|