ClickHouse/tests/queries/0_stateless/01605_key_condition_enum_int.sql
2020-12-18 16:10:54 +08:00

5 lines
197 B
SQL

drop table if exists enum;
create table enum engine MergeTree order by enum as select cast(1, 'Enum8(\'zero\'=0, \'one\'=1)') AS enum;
select * from enum where enum = 1;
drop table if exists enum;