mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
10 lines
473 B
SQL
10 lines
473 B
SQL
select arrayReduce('leastSqr', [1, 2, 3, 4], [100, 110, 120, 130]);
|
|
select arrayReduce('leastSqr', [1, 2, 3, 4], [100, 110, 120, 131]);
|
|
select arrayReduce('leastSqr', [-1, -2, -3, -4], [-100, -110, -120, -130]);
|
|
select arrayReduce('leastSqr', [5, 5.1], [6, 6.1]);
|
|
select arrayReduce('leastSqr', [0], [0]);
|
|
select arrayReduce('leastSqr', [3, 4], [3, 3]);
|
|
select arrayReduce('leastSqr', [3, 3], [3, 4]);
|
|
select arrayReduce('leastSqr', emptyArrayUInt8(), emptyArrayUInt8());
|
|
|