mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-05 15:21:43 +00:00
35 lines
996 B
Plaintext
35 lines
996 B
Plaintext
0.10000000000000000000000000000000000000
|
|
SELECT CAST(\'0.1\', \'Decimal(38, 38)\') AS c
|
|
[1,2,3]
|
|
SELECT CAST(\'[1, 2, 3]\', \'Array(UInt32)\') AS c
|
|
abc
|
|
SELECT CAST(\'abc\', \'FixedString(3)\') AS c
|
|
123
|
|
SELECT CAST(\'123\', \'String\') AS c
|
|
1
|
|
SELECT CAST(\'1\', \'Int8\') AS c
|
|
[1,2,3]
|
|
SELECT CAST([1, 1 + 1, 1 + 2], \'Array(UInt32)\') AS c
|
|
2010-10-10
|
|
SELECT CAST(\'2010-10-10\', \'Date\') AS c
|
|
2010-10-10 00:00:00
|
|
SELECT CAST(\'2010-10-10\', \'DateTime\') AS c
|
|
['2010-10-10','2010-10-10']
|
|
SELECT CAST(\'[\\\'2010-10-10\\\', \\\'2010-10-10\\\']\', \'Array(Date)\')
|
|
3
|
|
SELECT CAST(1 + 2, \'UInt32\') AS c
|
|
0.5
|
|
SELECT CAST(CAST(\'0.1\', \'Decimal(4, 4)\') * 5, \'Float64\') AS c
|
|
0 UInt8
|
|
SELECT
|
|
CAST(number, \'UInt8\') AS c,
|
|
toTypeName(c)
|
|
FROM numbers(1)
|
|
1970-01-11
|
|
SELECT CAST((((0 + 1) + 2) + 3) + 4, \'Date\') AS c
|
|
0.6000
|
|
SELECT CAST((CAST(\'0.1\', \'Decimal(4, 4)\') + CAST(\'0.2\', \'Decimal(4, 4)\')) + CAST(\'0.3\', \'Decimal(4, 4)\'), \'Decimal(4, 4)\') AS c
|
|
[1]
|
|
[[1,2,3],[],[1]]
|
|
[[],[]]
|