2020-11-11 15:29:36 +00:00
|
|
|
CREATE TABLE default.cast1
|
2020-04-08 08:18:35 +00:00
|
|
|
(
|
2020-06-01 23:41:41 +00:00
|
|
|
`x` UInt8,
|
2020-04-08 08:18:35 +00:00
|
|
|
`e` Enum8('hello' = 1, 'world' = 2) DEFAULT CAST(x, 'Enum8(\'hello\' = 1, \'world\' = 2)')
|
|
|
|
)
|
2020-08-26 17:45:20 +00:00
|
|
|
ENGINE = ReplicatedMergeTree('/clickhouse/tables/test_00643/cast', 'r1')
|
2020-04-08 08:18:35 +00:00
|
|
|
ORDER BY e
|
|
|
|
SETTINGS index_granularity = 8192
|
2019-04-15 09:30:45 +00:00
|
|
|
x UInt8
|
|
|
|
e Enum8(\'hello\' = 1, \'world\' = 2) DEFAULT CAST(x, \'Enum8(\\\'hello\\\' = 1, \\\'world\\\' = 2)\')
|
2018-06-07 20:49:59 +00:00
|
|
|
1 hello
|
|
|
|
1 hello
|