mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-05 23:31:24 +00:00
11 lines
539 B
MySQL
11 lines
539 B
MySQL
|
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;
|