ClickHouse/dbms/tests/queries/0_stateless/00653_monotonic_integer_cast.sql

5 lines
205 B
MySQL
Raw Normal View History

2018-12-20 11:42:45 +00:00
drop table if exists test.table;
create table test.table (val Int32) engine = MergeTree order by val;
insert into test.table values (-2), (0), (2);
select count() from test.table where toUInt64(val) == 0;