ClickHouse/tests/queries/0_stateless/00643_cast_zookeeper.reference

13 lines
394 B
Plaintext
Raw Normal View History

2020-11-11 15:29:36 +00:00
CREATE TABLE default.cast1
(
2020-06-01 23:41:41 +00:00
`x` UInt8,
`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')
ORDER BY e
SETTINGS index_granularity = 8192
x UInt8
e Enum8(\'hello\' = 1, \'world\' = 2) DEFAULT CAST(x, \'Enum8(\\\'hello\\\' = 1, \\\'world\\\' = 2)\')
1 hello
1 hello