2018-06-07 20:37:16 +00:00
|
|
|
hello
|
|
|
|
hello
|
|
|
|
hello
|
|
|
|
hello
|
|
|
|
hello
|
|
|
|
hello
|
|
|
|
hello
|
|
|
|
hello
|
2018-10-15 15:10:34 +00:00
|
|
|
1970-01-01 00:00:01
|
2020-04-08 08:18:35 +00:00
|
|
|
CREATE TABLE default.cast
|
|
|
|
(
|
2020-06-01 23:41:41 +00:00
|
|
|
`x` UInt8,
|
2020-12-04 02:15:44 +00:00
|
|
|
`e` Enum8('hello' = 1, 'world' = 2) DEFAULT cast(x, 'Enum8(\'hello\' = 1, \'world\' = 2)')
|
2020-04-08 08:18:35 +00:00
|
|
|
)
|
|
|
|
ENGINE = MergeTree
|
|
|
|
ORDER BY e
|
|
|
|
SETTINGS index_granularity = 8192
|
2019-04-15 09:30:45 +00:00
|
|
|
x UInt8
|
2020-12-04 02:15:44 +00:00
|
|
|
e Enum8(\'hello\' = 1, \'world\' = 2) DEFAULT cast(x, \'Enum8(\\\'hello\\\' = 1, \\\'world\\\' = 2)\')
|
2018-06-07 20:37:16 +00:00
|
|
|
1 hello
|