mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
test for #8546
This commit is contained in:
parent
f3087c61ad
commit
f7f1c1b267
@ -0,0 +1,6 @@
|
||||
30
|
||||
30
|
||||
10
|
||||
10
|
||||
3
|
||||
3
|
@ -0,0 +1,16 @@
|
||||
CREATE TABLE IF NOT EXISTS topXtest(A Int64) ENGINE = Memory;
|
||||
INSERT INTO topXtest SELECT number FROM numbers(100);
|
||||
INSERT INTO topXtest SELECT number FROM numbers(30);
|
||||
INSERT INTO topXtest SELECT number FROM numbers(10);
|
||||
|
||||
SELECT length(topK(30)(A)) FROM topXtest;
|
||||
SELECT length(topK(30)(A)) FROM remote('localhost,127.0.0.1', currentDatabase(), topXtest);
|
||||
|
||||
SELECT length(topK(A)) FROM topXtest;
|
||||
SELECT length(topK(A)) FROM remote('localhost,127.0.0.1', currentDatabase(), topXtest);
|
||||
|
||||
SELECT length(topK(3)(A)) FROM topXtest;
|
||||
SELECT length(topK(3)(A)) FROM remote('localhost,127.0.0.1', currentDatabase(), topXtest);
|
||||
|
||||
DROP TABLE topXtest;
|
||||
|
Loading…
Reference in New Issue
Block a user