mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-06 22:42:22 +00:00
a5eb1aa22f
Fixes #52755 and #52895
116 lines
1.8 KiB
Plaintext
116 lines
1.8 KiB
Plaintext
== arrayRotateLeft
|
|
[3,4,5,1,2]
|
|
[4,5,1,2,3]
|
|
[4,5,1,2,3]
|
|
['l','l','o','H','e']
|
|
[[[5,6],[7,8]],[[1,2],[3,4]]]
|
|
|
|
== arrayRotateRight
|
|
[4,5,1,2,3]
|
|
[3,4,5,1,2]
|
|
[3,4,5,1,2]
|
|
['l','o','H','e','l']
|
|
[[[5,6],[7,8]],[[1,2],[3,4]]]
|
|
|
|
== arrayShiftLeft
|
|
[4,5,0,0,0]
|
|
[0,0,0,1,2]
|
|
[0,0,0,0,0]
|
|
['d','e','','','']
|
|
[[5,6],[],[]]
|
|
[[[5,6],[7,8]],[]]
|
|
[4,5,7,7,7]
|
|
['d','e','foo','foo','foo']
|
|
[[5,6],[7,8],[7,8]]
|
|
[2,3,4,5,6,1000]
|
|
|
|
== arrayShiftRight
|
|
[0,0,0,1,2]
|
|
[4,5,0,0,0]
|
|
[0,0,0,0,0]
|
|
['','','','a','b']
|
|
[[],[],[1,2]]
|
|
[[],[[1,2],[3,4]]]
|
|
[7,7,7,1,2]
|
|
['foo','foo','foo','a','b']
|
|
[[7,8],[7,8],[1,2]]
|
|
[1000,1,2,3,4,5]
|
|
|
|
== table
|
|
== table with constants
|
|
-- arrayRotateLeft
|
|
[3,4,5,6,1,2]
|
|
[3,4,5,6,1,2]
|
|
[3,4,1,2]
|
|
[15,16,23,42,4,8]
|
|
[18,28,18,28,45,90,45,2,7]
|
|
[159,26,5,3,14]
|
|
-- arrayRotateRight
|
|
[5,6,1,2,3,4]
|
|
[5,6,1,2,3,4]
|
|
[3,4,1,2]
|
|
[23,42,4,8,15,16]
|
|
[90,45,2,7,18,28,18,28,45]
|
|
[26,5,3,14,159]
|
|
-- arrayShiftLeft
|
|
[4,5,6,0,0,0]
|
|
[4,5,6,0,0,0]
|
|
[4,0,0,0]
|
|
[16,23,42,0,0,0]
|
|
[28,18,28,45,90,45,0,0,0]
|
|
[26,5,0,0,0]
|
|
-- arrayShiftRight
|
|
[0,0,0,1,2,3]
|
|
[0,0,0,1,2,3]
|
|
[0,0,0,1]
|
|
[0,0,0,4,8,15]
|
|
[0,0,0,2,7,18,28,18,28]
|
|
[0,0,0,3,14]
|
|
== table with constants and defaults
|
|
-- arrayShiftLeft
|
|
[4,5,6,7,7,7]
|
|
[4,5,6,7,7,7]
|
|
[4,7,7,7]
|
|
[16,23,42,7,7,7]
|
|
[28,18,28,45,90,45,7,7,7]
|
|
[26,5,7,7,7]
|
|
-- arrayShiftRight
|
|
[7,7,7,1,2,3]
|
|
[7,7,7,1,2,3]
|
|
[7,7,7,1]
|
|
[7,7,7,4,8,15]
|
|
[7,7,7,2,7,18,28,18,28]
|
|
[7,7,7,3,14]
|
|
== table values
|
|
-- arrayRotateLeft
|
|
[3,4,5,6,1,2]
|
|
[4,5,6,1,2,3]
|
|
[4,1,2,3]
|
|
[42,4,8,15,16,23]
|
|
[90,45,2,7,18,28,18,28,45]
|
|
[14,159,26,5,3]
|
|
-- arrayRotateRight
|
|
[5,6,1,2,3,4]
|
|
[4,5,6,1,2,3]
|
|
[2,3,4,1]
|
|
[8,15,16,23,42,4]
|
|
[18,28,18,28,45,90,45,2,7]
|
|
[5,3,14,159,26]
|
|
-- arrayShiftLeft
|
|
[3,4,5,6,1,1]
|
|
[4,5,6,2,2,2]
|
|
[4,3,3,3]
|
|
[42,4,4,4,4,4]
|
|
[90,45,5,5,5,5,5,5,5]
|
|
[6,6,6,6,6]
|
|
-- arrayShiftRight
|
|
[1,1,1,2,3,4]
|
|
[2,2,2,1,2,3]
|
|
[3,3,3,1]
|
|
[4,4,4,4,4,4]
|
|
[5,5,5,5,5,5,5,2,7]
|
|
[6,6,6,6,6]
|
|
== problematic cast cases
|
|
[5]
|
|
[[]]
|