mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Added a test #4245
This commit is contained in:
parent
47bffbf760
commit
e1703eb2a0
@ -0,0 +1,2 @@
|
||||
['hello','world'] ['hello','world']
|
||||
['goodbye','hello'] ['hello','world']
|
2
dbms/tests/queries/0_stateless/00840_top_k_weighted.sql
Normal file
2
dbms/tests/queries/0_stateless/00840_top_k_weighted.sql
Normal 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));
|
Loading…
Reference in New Issue
Block a user