ClickHouse/tests/queries/0_stateless/01305_nullable-prewhere_bug.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
351 B
MySQL
Raw Normal View History

2020-06-11 16:40:44 +00:00
drop table if exists data;
CREATE TABLE data (ts DateTime, field String, num_field Nullable(Float64)) ENGINE = MergeTree() PARTITION BY ts ORDER BY ts;
insert into data values(toDateTime('2020-05-14 02:08:00'),'some_field_value',7.);
SELECT field, countIf(num_field > 6.0) FROM data PREWHERE (num_field>6.0) GROUP BY field;
drop table if exists data;