ClickHouse/dbms/tests/queries/0_stateless/00917_least_sqr.sql

10 lines
473 B
MySQL
Raw Normal View History

2019-03-13 07:22:57 +00:00
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]);
2019-04-05 13:32:25 +00:00
select arrayReduce('leastSqr', emptyArrayUInt8(), emptyArrayUInt8());