Skip to content

Commit 99ccce2

Browse files
committed
Set the new schema for the faulty measurements table
1 parent c27deba commit 99ccce2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/cluster-migration/schema.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ CREATE TABLE IF NOT EXISTS faulty_measurements ON CLUSTER oonidata_cluster
220220
(
221221
`ts` DateTime64(3, 'UTC'),
222222
`type` String,
223+
`measurement_uid` String,
223224
-- geoip lookup result for the probe IP
224225
`probe_cc` String,
225226
`probe_asn` UInt32,
@@ -230,4 +231,4 @@ ENGINE = ReplicatedReplacingMergeTree (
230231
'/clickhouse/{cluster}/tables/ooni/faulty_measurements/{shard}',
231232
'{replica}'
232233
)
233-
ORDER BY (ts, type, probe_cc, probe_asn);
234+
ORDER BY (ts, type, probe_cc, probe_asn, measurement_uid);

0 commit comments

Comments
 (0)