mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +00:00
Added test.
This commit is contained in:
parent
7b8c1657a5
commit
8234a430a0
@ -0,0 +1 @@
|
|||||||
|
some_field_value 1
|
@ -0,0 +1,5 @@
|
|||||||
|
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;
|
Loading…
Reference in New Issue
Block a user