mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Accept nullable for JIT function
This commit is contained in:
parent
a0e91fc9f6
commit
7d3c677921
@ -0,0 +1,2 @@
|
||||
0.6363636363636362
|
||||
0.6363636363636362
|
18
dbms/tests/queries/0_stateless/01072_nullable_jit.sql
Normal file
18
dbms/tests/queries/0_stateless/01072_nullable_jit.sql
Normal file
@ -0,0 +1,18 @@
|
||||
DROP TABLE IF EXISTS foo;
|
||||
|
||||
CREATE TABLE foo (
|
||||
id UInt32,
|
||||
a Float64,
|
||||
b Float64,
|
||||
c Float64,
|
||||
d Float64
|
||||
) Engine = MergeTree()
|
||||
PARTITION BY id
|
||||
ORDER BY id;
|
||||
|
||||
INSERT INTO foo VALUES (1, 0.5, 0.2, 0.3, 0.8);
|
||||
|
||||
SELECT divide(sum(a) + sum(b), nullIf(sum(c) + sum(d), 0)) FROM foo SETTINGS compile_expressions = 1, min_count_to_compile = 0;
|
||||
SELECT divide(sum(a) + sum(b), nullIf(sum(c) + sum(d), 0)) FROM foo SETTINGS compile_expressions = 1, min_count_to_compile = 0;
|
||||
|
||||
DROP TABLE foo;
|
Loading…
Reference in New Issue
Block a user