Added a test #4245

This commit is contained in:
Alexey Milovidov 2019-02-11 00:29:34 +03:00
parent 47bffbf760
commit e1703eb2a0
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,2 @@
['hello','world'] ['hello','world']
['goodbye','hello'] ['hello','world']

View File

@ -0,0 +1,2 @@
SELECT topKWeighted(2)(x, weight), topK(2)(x) FROM (SELECT t.1 AS x, t.2 AS weight FROM (SELECT arrayJoin([('hello', 1), ('world', 1), ('goodbye', 1), ('abc', 1)]) AS t));
SELECT topKWeighted(2)(x, weight), topK(2)(x) FROM (SELECT t.1 AS x, t.2 AS weight FROM (SELECT arrayJoin([('hello', 1), ('world', 1), ('goodbye', 2), ('abc', 1)]) AS t));