mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 20:12:02 +00:00
18 lines
542 B
SQL
18 lines
542 B
SQL
-- Tags: no-fasttest, no-ubsan, no-msan, no-cpu-aarch64
|
|
|
|
drop table if exists dummy;
|
|
CREATE TABLE dummy ( num1 Int32, num2 Enum8('foo' = 0, 'bar' = 1, 'tar' = 2) )
|
|
ENGINE = MergeTree ORDER BY num1 as select 5, 'bar';
|
|
|
|
set compile_aggregate_expressions=1;
|
|
set min_count_to_compile_aggregate_expression=0;
|
|
|
|
-- { echoOn }
|
|
SYSTEM DROP COMPILED EXPRESSION CACHE;
|
|
SELECT minIf(num1, num1 < 5) FROM dummy GROUP BY num2;
|
|
SYSTEM DROP COMPILED EXPRESSION CACHE;
|
|
SELECT minIf(num1, num1 >= 5) FROM dummy GROUP BY num2;
|
|
-- { echoOff }
|
|
|
|
drop table dummy;
|