Skip to content

Commit

Permalink
fix(clickhouse): Add missing ON CLUSTER clause
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Apr 22, 2024
1 parent 93d69e9 commit 49473d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/migrations/clickhouse/032_libp2p_trace.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ COMMENT COLUMN meta_client_geo_autonomous_system_organization 'Autonomous system
COMMENT COLUMN meta_network_id 'Ethereum network ID',
COMMENT COLUMN meta_network_name 'Ethereum network name';

CREATE TABLE libp2p_rpc_meta_message ON CLUSTER '{cluster}' AS libp2p_rpc_meta_message_local
CREATE TABLE libp2p_rpc_meta_message ON CLUSTER '{cluster}' AS libp2p_rpc_meta_message_local
ENGINE = Distributed('{cluster}', default, libp2p_rpc_meta_message_local, rand());

CREATE TABLE libp2p_rpc_meta_subscription_local ON CLUSTER '{cluster}'
Expand Down Expand Up @@ -617,7 +617,7 @@ COMMENT COLUMN meta_client_geo_autonomous_system_organization 'Autonomous system
COMMENT COLUMN meta_network_id 'Ethereum network ID',
COMMENT COLUMN meta_network_name 'Ethereum network name';

CREATE TABLE libp2p_send_rpc AS libp2p_send_rpc_local
CREATE TABLE libp2p_send_rpc ON CLUSTER '{cluster}' AS libp2p_send_rpc_local
ENGINE = Distributed('{cluster}', default, libp2p_send_rpc_local, rand());

-- Creating local and distributed tables for libp2p_join
Expand Down

0 comments on commit 49473d6

Please sign in to comment.