SELECT name
FROM cluster('test_cluster_two_shards_localhost', 'system', 'databases')
┌─name───────────────────────────┐
│ _temporary_and_external_tables │
│ default │
│ dist │
│ system │
└────────────────────────────────┘
┌─name───────────────────────────┐
│ _temporary_and_external_tables │
│ default │
│ demo │
│ system │
│ tutorial │
└────────────────────────────────┘
9 rows in set. Elapsed: 0.019 sec.
with clusterAllReplicas()
:) select name from clusterAllReplicas('test_cluster_two_shards_localhost','system','databases') ;
SELECT name
FROM clusterAllReplicas('test_cluster_two_shards_localhost', 'system', 'databases')
┌─name───────────────────────────┐
│ _temporary_and_external_tables │
│ default │
│ dist │
│ system │
└────────────────────────────────┘
┌─name───────────────────────────┐
│ _temporary_and_external_tables │
│ default │
│ demo │
│ system │
│ tutorial │
└────────────────────────────────┘
9 rows in set. Elapsed: 0.007 sec.
--
You received this message because you are subscribed to the Google Groups "ClickHouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clickhouse+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clickhouse/b93b830e-5e6f-40ed-a8bc-52287c3a2f8fo%40googlegroups.com.
SELECT name
FROM clusterAllReplicas('[SELECT name from system.cluster], 'system', 'databases');
SELECT FQDN(), hostName(), *
FROM clusterAllReplicas('[SELECT name from system.cluster], 'system', 'databases');
To unsubscribe from this group and stop receiving emails from it, send an email to click...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to click...@googlegroups.com.