ClickHouse/tests/queries/0_stateless/01852_cast_operator_4.reference

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
472 B
Plaintext
Raw Normal View History

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
2022-02-07 15:02:19 +00:00
WITH [3, 4, 5] AS x
SELECT CAST(x[1], \'Int32\')
3
SELECT CAST((3, 4, 5).1, \'Int32\')
4
SELECT CAST(CAST((3, 4, 5), \'Tuple(UInt64, UInt64, UInt64)\').1, \'Int32\')
2022-02-07 15:02:19 +00:00
3
WITH (3, 4, 5) AS x
SELECT CAST(x.1, \'Int32\')