ClickHouse/dbms/tests/queries/1_stateful/00020_distinct_order_by_distributed.sql
2018-08-07 20:08:51 +03:00

3 lines
148 B
SQL

SET max_rows_to_sort = 10000;
SELECT count() FROM (SELECT DISTINCT PredLastVisit AS x FROM remote('127.0.0.{1,2}', test, visits) ORDER BY VisitID);