2023-02-21 20:50:24 +00:00
-- { echoOn }
2023-12-07 16:17:10 +00:00
SELECT shardNum() AS shard_num, sum(1) as rows FROM remote('127.{1,2}', system, one) GROUP BY _shard_num ORDER BY _shard_num;
2022-01-10 18:21:24 +00:00
1 1
2 1
2023-12-07 16:17:10 +00:00
SELECT shardNum() AS shard_num, sum(1) as rows FROM remote('127.{1,2}', system, one) GROUP BY shard_num ORDER BY shard_num;
2022-01-10 18:21:24 +00:00
1 1
2 1
2023-12-07 16:17:10 +00:00
SELECT _shard_num AS shard_num, sum(1) as rows FROM remote('127.{1,2}', system, one) GROUP BY _shard_num ORDER BY _shard_num;
2022-01-10 18:21:24 +00:00
1 1
2 1
2023-12-07 16:17:10 +00:00
SELECT _shard_num AS shard_num, sum(1) as rows FROM remote('127.{1,2}', system, one) GROUP BY shard_num ORDER BY shard_num;
2022-01-10 18:21:24 +00:00
1 1
2 1
2023-12-07 16:17:10 +00:00
SELECT a._shard_num AS shard_num, sum(1) as rows FROM remote('127.{1,2}', system, one) a GROUP BY shard_num ORDER BY shard_num;
2022-01-10 18:21:24 +00:00
1 1
2023-12-07 16:17:10 +00:00
2 1
2023-03-13 11:01:18 +00:00
SELECT _shard_num FROM remote('127.1', system.one) AS a INNER JOIN (SELECT _shard_num FROM system.one) AS b USING (dummy); -- { serverError UNSUPPORTED_METHOD, UNKNOWN_IDENTIFIER }