mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 06:01:57 +00:00
14 lines
371 B
Plaintext
14 lines
371 B
Plaintext
|
3
|
||
|
SELECT CAST([3, 4, 5][1], \'Int32\')
|
||
|
4
|
||
|
SELECT CAST(CAST(\'[3,4,5]\', \'Array(Int64)\')[2], \'Int8\')
|
||
|
0
|
||
|
1
|
||
|
2
|
||
|
SELECT CAST(CAST(\'[1,2,3]\', \'Array(UInt64)\')[CAST(CAST([number, number], \'Array(UInt8)\')[number], \'UInt64\')], \'UInt8\')
|
||
|
FROM numbers(3)
|
||
|
3
|
||
|
SELECT CAST((3, 4, 5).1, \'Int32\')
|
||
|
4
|
||
|
SELECT CAST(CAST((3, 4, 5), \'Tuple(UInt64, UInt64, UInt64)\').1, \'Int32\')
|