Add tests for -Distinct combinator

This commit is contained in:
Sofia Antipushina 2020-05-16 03:02:55 +03:00
parent 7c6322c5b0
commit fa38cf780c
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,4 @@
499500
78
[0,1,2,3,4,5,6,7,8,9,10,11,12]
5.669227916063075e-17

View File

@ -0,0 +1,4 @@
SELECT sum(DISTINCT x) FROM (SELECT number AS x FROM system.numbers LIMIT 1000);
SELECT sum(DISTINCT x) FROM (SELECT number % 13 AS x FROM system.numbers LIMIT 1000);
SELECT groupArray(DISTINCT x) FROM (SELECT number % 13 AS x FROM system.numbers LIMIT 1000);
SELECT corrStableDistinct(DISTINCT x, y) FROM (SELECT number % 11 AS x, number % 13 AS y FROM system.numbers LIMIT 1000);