Added test.

This commit is contained in:
Nikolai Kochetov 2020-11-02 12:06:17 +03:00
parent 962a89843c
commit 85ed639f8e
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,4 @@
84
168
210
420

View File

@ -0,0 +1,10 @@
drop table if exists T;
create table T(a Nullable(Int64)) engine = Memory();
insert into T values (1), (2), (3), (4), (5);
select sumIf(42, (a % 2) = 0) from T;
select sumIf(42, (a % 2) = 0) from remote('127.0.0.{1,2}', currentDatabase(), T);
select sumIf(42, toNullable(1)) from T;
select sumIf(42, toNullable(1)) from remote('127.0.0.{1,2}', currentDatabase(), T);
-- select sumIf(42, toNullable(toInt64(1))) from T;
-- select sumIf(42, toNullable(toInt64(1))) from remote('127.0.0.{1,2}', currentDatabase(), T);
drop table if exists T;