Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/tools/clickhouse_create_block_failures_table.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE TABLE orchestrator.block_failures (
CREATE TABLE block_failures (
`chain_id` UInt256,
`block_number` UInt256,
`last_error_timestamp` UInt64 CODEC(Delta, ZSTD),
Expand Down
2 changes: 1 addition & 1 deletion internal/tools/clickhouse_create_blocks_table.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE TABLE base.blocks (
CREATE TABLE blocks (
`chain_id` UInt256,
`number` UInt256,
`timestamp` UInt64 CODEC(Delta, ZSTD),
Expand Down
4 changes: 2 additions & 2 deletions internal/tools/clickhouse_create_logs_table.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE TABLE base.logs (
CREATE TABLE logs (
`chain_id` UInt256,
`block_number` UInt256,
`block_hash` FixedString(66),
Expand All @@ -19,6 +19,6 @@ CREATE TABLE base.logs (
INDEX idx_block_hash block_hash TYPE bloom_filter GRANULARITY 1,
INDEX idx_address address TYPE bloom_filter GRANULARITY 1,
INDEX idx_topic0 topic_0 TYPE bloom_filter GRANULARITY 1,
) ENGINE = SharedReplacingMergeTree(insert_timestamp, is_deleted)
) ENGINE = ReplacingMergeTree(insert_timestamp, is_deleted)
ORDER BY (chain_id, transaction_hash, log_index, block_hash)
SETTINGS allow_experimental_replacing_merge_with_cleanup = 1;
2 changes: 1 addition & 1 deletion internal/tools/clickhouse_create_staging_table.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE TABLE staging.block_data (
CREATE TABLE block_data (
`chain_id` UInt256,
`block_number` UInt256,
`data` String,
Expand Down
2 changes: 1 addition & 1 deletion internal/tools/clickhouse_create_traces_table.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE TABLE base.traces (
CREATE TABLE traces (
`chain_id` UInt256,
`block_number` UInt256,
`block_hash` FixedString(66),
Expand Down
2 changes: 1 addition & 1 deletion internal/tools/clickhouse_create_transactions_table.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE TABLE base.transactions (
CREATE TABLE transactions (
`chain_id` UInt256,
`hash` FixedString(66),
`nonce` UInt64,
Expand Down
Loading