-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
redo migrations for histos as drop/creates
- Loading branch information
1 parent
d794edd
commit 917c7a0
Showing
63 changed files
with
761 additions
and
418 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS oximeter.measurements_histogrami8_local ON CLUSTER oximeter_cluster SYNC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS oximeter.measurements_histogrami8 ON CLUSTER oximeter_cluster SYNC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
CREATE TABLE IF NOT EXISTS oximeter.measurements_histogrami8_local ON CLUSTER oximeter_cluster | ||
( | ||
timeseries_name String, | ||
timeseries_key UInt64, | ||
start_time DateTime64(9, 'UTC'), | ||
timestamp DateTime64(9, 'UTC'), | ||
bins Array(Int8), | ||
counts Array(UInt64), | ||
min Int8, | ||
max Int8, | ||
sum_of_samples Int64, | ||
squared_mean Float64, | ||
p50_marker_heights Array(Float64), | ||
p50_marker_positions Array(UInt64), | ||
p50_desired_marker_positions Array(Float64), | ||
p90_marker_heights Array(Float64), | ||
p90_marker_positions Array(UInt64), | ||
p90_desired_marker_positions Array(Float64), | ||
p99_marker_heights Array(Float64), | ||
p99_marker_positions Array(UInt64), | ||
p99_desired_marker_positions Array(Float64) | ||
) | ||
ENGINE = ReplicatedMergeTree('/clickhouse/tables/{shard}/measurements_histogrami8_local', '{replica}') | ||
ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) | ||
TTL toDateTime(timestamp) + INTERVAL 30 DAY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
CREATE TABLE IF NOT EXISTS oximeter.measurements_histogrami8 ON CLUSTER oximeter_cluster | ||
( | ||
timeseries_name String, | ||
timeseries_key UInt64, | ||
start_time DateTime64(9, 'UTC'), | ||
timestamp DateTime64(9, 'UTC'), | ||
bins Array(Int8), | ||
counts Array(UInt64), | ||
min Int8, | ||
max Int8, | ||
sum_of_samples Int64, | ||
squared_mean Float64, | ||
p50_marker_heights Array(Float64), | ||
p50_marker_positions Array(UInt64), | ||
p50_desired_marker_positions Array(Float64), | ||
p90_marker_heights Array(Float64), | ||
p90_marker_positions Array(UInt64), | ||
p90_desired_marker_positions Array(Float64), | ||
p99_marker_heights Array(Float64), | ||
p99_marker_positions Array(UInt64), | ||
p99_desired_marker_positions Array(Float64) | ||
) | ||
ENGINE = Distributed('oximeter_cluster', 'oximeter', 'measurements_histogrami8_local', xxHash64(splitByChar(':', timeseries_name)[1])); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS oximeter.measurements_histogramu8_local ON CLUSTER oximeter_cluster SYNC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS oximeter.measurements_histogramu8 ON CLUSTER oximeter_cluster SYNC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
CREATE TABLE IF NOT EXISTS oximeter.measurements_histogramu8_local ON CLUSTER oximeter_cluster | ||
( | ||
timeseries_name String, | ||
timeseries_key UInt64, | ||
start_time DateTime64(9, 'UTC'), | ||
timestamp DateTime64(9, 'UTC'), | ||
bins Array(UInt8), | ||
counts Array(UInt64), | ||
min UInt8, | ||
max UInt8, | ||
sum_of_samples Int64, | ||
squared_mean Float64, | ||
p50_marker_heights Array(Float64), | ||
p50_marker_positions Array(UInt64), | ||
p50_desired_marker_positions Array(Float64), | ||
p90_marker_heights Array(Float64), | ||
p90_marker_positions Array(UInt64), | ||
p90_desired_marker_positions Array(Float64), | ||
p99_marker_heights Array(Float64), | ||
p99_marker_positions Array(UInt64), | ||
p99_desired_marker_positions Array(Float64) | ||
) | ||
ENGINE = ReplicatedMergeTree('/clickhouse/tables/{shard}/measurements_histogramu8_local', '{replica}') | ||
ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) | ||
TTL toDateTime(timestamp) + INTERVAL 30 DAY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
CREATE TABLE IF NOT EXISTS oximeter.measurements_histogramu8 ON CLUSTER oximeter_cluster | ||
( | ||
timeseries_name String, | ||
timeseries_key UInt64, | ||
start_time DateTime64(9, 'UTC'), | ||
timestamp DateTime64(9, 'UTC'), | ||
bins Array(UInt8), | ||
counts Array(UInt64), | ||
min UInt8, | ||
max UInt8, | ||
sum_of_samples Int64, | ||
squared_mean Float64, | ||
p50_marker_heights Array(Float64), | ||
p50_marker_positions Array(UInt64), | ||
p50_desired_marker_positions Array(Float64), | ||
p90_marker_heights Array(Float64), | ||
p90_marker_positions Array(UInt64), | ||
p90_desired_marker_positions Array(Float64), | ||
p99_marker_heights Array(Float64), | ||
p99_marker_positions Array(UInt64), | ||
p99_desired_marker_positions Array(Float64) | ||
) | ||
ENGINE = Distributed('oximeter_cluster', 'oximeter', 'measurements_histogramu8_local', xxHash64(splitByChar(':', timeseries_name)[1])); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS oximeter.measurements_histogrami16_local ON CLUSTER oximeter_cluster SYNC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS oximeter.measurements_histogrami16 ON CLUSTER oximeter_cluster SYNC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
CREATE TABLE IF NOT EXISTS oximeter.measurements_histogrami16_local ON CLUSTER oximeter_cluster | ||
( | ||
timeseries_name String, | ||
timeseries_key UInt64, | ||
start_time DateTime64(9, 'UTC'), | ||
timestamp DateTime64(9, 'UTC'), | ||
bins Array(Int16), | ||
counts Array(UInt64), | ||
min Int16, | ||
max Int16, | ||
sum_of_samples Int64, | ||
squared_mean Float64, | ||
p50_marker_heights Array(Float64), | ||
p50_marker_positions Array(UInt64), | ||
p50_desired_marker_positions Array(Float64), | ||
p90_marker_heights Array(Float64), | ||
p90_marker_positions Array(UInt64), | ||
p90_desired_marker_positions Array(Float64), | ||
p99_marker_heights Array(Float64), | ||
p99_marker_positions Array(UInt64), | ||
p99_desired_marker_positions Array(Float64) | ||
) | ||
ENGINE = ReplicatedMergeTree('/clickhouse/tables/{shard}/measurements_histogrami16_local', '{replica}') | ||
ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) | ||
TTL toDateTime(timestamp) + INTERVAL 30 DAY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
CREATE TABLE IF NOT EXISTS oximeter.measurements_histogrami16 ON CLUSTER oximeter_cluster | ||
( | ||
timeseries_name String, | ||
timeseries_key UInt64, | ||
start_time DateTime64(9, 'UTC'), | ||
timestamp DateTime64(9, 'UTC'), | ||
bins Array(Int16), | ||
counts Array(UInt64), | ||
min Int16, | ||
max Int16, | ||
sum_of_samples Int64, | ||
squared_mean Float64, | ||
p50_marker_heights Array(Float64), | ||
p50_marker_positions Array(UInt64), | ||
p50_desired_marker_positions Array(Float64), | ||
p90_marker_heights Array(Float64), | ||
p90_marker_positions Array(UInt64), | ||
p90_desired_marker_positions Array(Float64), | ||
p99_marker_heights Array(Float64), | ||
p99_marker_positions Array(UInt64), | ||
p99_desired_marker_positions Array(Float64) | ||
) | ||
ENGINE = Distributed('oximeter_cluster', 'oximeter', 'measurements_histogrami16_local', xxHash64(splitByChar(':', timeseries_name)[1])); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS oximeter.measurements_histogramu16_local ON CLUSTER oximeter_cluster SYNC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS oximeter.measurements_histogramu16 ON CLUSTER oximeter_cluster SYNC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
CREATE TABLE IF NOT EXISTS oximeter.measurements_histogramu16_local ON CLUSTER oximeter_cluster | ||
( | ||
timeseries_name String, | ||
timeseries_key UInt64, | ||
start_time DateTime64(9, 'UTC'), | ||
timestamp DateTime64(9, 'UTC'), | ||
bins Array(UInt16), | ||
counts Array(UInt64), | ||
min UInt16, | ||
max UInt16, | ||
sum_of_samples Int64, | ||
squared_mean Float64, | ||
p50_marker_heights Array(Float64), | ||
p50_marker_positions Array(UInt64), | ||
p50_desired_marker_positions Array(Float64), | ||
p90_marker_heights Array(Float64), | ||
p90_marker_positions Array(UInt64), | ||
p90_desired_marker_positions Array(Float64), | ||
p99_marker_heights Array(Float64), | ||
p99_marker_positions Array(UInt64), | ||
p99_desired_marker_positions Array(Float64) | ||
) | ||
ENGINE = ReplicatedMergeTree('/clickhouse/tables/{shard}/measurements_histogramu16_local', '{replica}') | ||
ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) | ||
TTL toDateTime(timestamp) + INTERVAL 30 DAY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
CREATE TABLE IF NOT EXISTS oximeter.measurements_histogramu16 ON CLUSTER oximeter_cluster | ||
( | ||
timeseries_name String, | ||
timeseries_key UInt64, | ||
start_time DateTime64(9, 'UTC'), | ||
timestamp DateTime64(9, 'UTC'), | ||
bins Array(UInt16), | ||
counts Array(UInt64), | ||
min UInt16, | ||
max UInt16, | ||
sum_of_samples Int64, | ||
squared_mean Float64, | ||
p50_marker_heights Array(Float64), | ||
p50_marker_positions Array(UInt64), | ||
p50_desired_marker_positions Array(Float64), | ||
p90_marker_heights Array(Float64), | ||
p90_marker_positions Array(UInt64), | ||
p90_desired_marker_positions Array(Float64), | ||
p99_marker_heights Array(Float64), | ||
p99_marker_positions Array(UInt64), | ||
p99_desired_marker_positions Array(Float64) | ||
) | ||
ENGINE = Distributed('oximeter_cluster', 'oximeter', 'measurements_histogramu16_local', xxHash64(splitByChar(':', timeseries_name)[1])); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS oximeter.measurements_histogrami32_local ON CLUSTER oximeter_cluster SYNC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS oximeter.measurements_histogrami32 ON CLUSTER oximeter_cluster SYNC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
CREATE TABLE IF NOT EXISTS oximeter.measurements_histogrami32_local ON CLUSTER oximeter_cluster | ||
( | ||
timeseries_name String, | ||
timeseries_key UInt64, | ||
start_time DateTime64(9, 'UTC'), | ||
timestamp DateTime64(9, 'UTC'), | ||
bins Array(Int32), | ||
counts Array(UInt64), | ||
min Int32, | ||
max Int32, | ||
sum_of_samples Int64, | ||
squared_mean Float64, | ||
p50_marker_heights Array(Float64), | ||
p50_marker_positions Array(UInt64), | ||
p50_desired_marker_positions Array(Float64), | ||
p90_marker_heights Array(Float64), | ||
p90_marker_positions Array(UInt64), | ||
p90_desired_marker_positions Array(Float64), | ||
p99_marker_heights Array(Float64), | ||
p99_marker_positions Array(UInt64), | ||
p99_desired_marker_positions Array(Float64) | ||
) | ||
ENGINE = ReplicatedMergeTree('/clickhouse/tables/{shard}/measurements_histogrami32_local', '{replica}') | ||
ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) | ||
TTL toDateTime(timestamp) + INTERVAL 30 DAY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
CREATE TABLE IF NOT EXISTS oximeter.measurements_histogrami32 ON CLUSTER oximeter_cluster | ||
( | ||
timeseries_name String, | ||
timeseries_key UInt64, | ||
start_time DateTime64(9, 'UTC'), | ||
timestamp DateTime64(9, 'UTC'), | ||
bins Array(Int32), | ||
counts Array(UInt64), | ||
min Int32, | ||
max Int32, | ||
sum_of_samples Int64, | ||
squared_mean Float64, | ||
p50_marker_heights Array(Float64), | ||
p50_marker_positions Array(UInt64), | ||
p50_desired_marker_positions Array(Float64), | ||
p90_marker_heights Array(Float64), | ||
p90_marker_positions Array(UInt64), | ||
p90_desired_marker_positions Array(Float64), | ||
p99_marker_heights Array(Float64), | ||
p99_marker_positions Array(UInt64), | ||
p99_desired_marker_positions Array(Float64) | ||
) | ||
ENGINE = Distributed('oximeter_cluster', 'oximeter', 'measurements_histogrami32_local', xxHash64(splitByChar(':', timeseries_name)[1])); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS oximeter.measurements_histogramu32_local ON CLUSTER oximeter_cluster SYNC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS oximeter.measurements_histogramu32 ON CLUSTER oximeter_cluster SYNC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
CREATE TABLE IF NOT EXISTS oximeter.measurements_histogramu32_local ON CLUSTER oximeter_cluster | ||
( | ||
timeseries_name String, | ||
timeseries_key UInt64, | ||
start_time DateTime64(9, 'UTC'), | ||
timestamp DateTime64(9, 'UTC'), | ||
bins Array(UInt32), | ||
counts Array(UInt64), | ||
min UInt32, | ||
max UInt32, | ||
sum_of_samples Int64, | ||
squared_mean Float64, | ||
p50_marker_heights Array(Float64), | ||
p50_marker_positions Array(UInt64), | ||
p50_desired_marker_positions Array(Float64), | ||
p90_marker_heights Array(Float64), | ||
p90_marker_positions Array(UInt64), | ||
p90_desired_marker_positions Array(Float64), | ||
p99_marker_heights Array(Float64), | ||
p99_marker_positions Array(UInt64), | ||
p99_desired_marker_positions Array(Float64) | ||
) | ||
ENGINE = ReplicatedMergeTree('/clickhouse/tables/{shard}/measurements_histogramu32_local', '{replica}') | ||
ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) | ||
TTL toDateTime(timestamp) + INTERVAL 30 DAY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
CREATE TABLE IF NOT EXISTS oximeter.measurements_histogramu32 ON CLUSTER oximeter_cluster | ||
( | ||
timeseries_name String, | ||
timeseries_key UInt64, | ||
start_time DateTime64(9, 'UTC'), | ||
timestamp DateTime64(9, 'UTC'), | ||
bins Array(UInt32), | ||
counts Array(UInt64), | ||
min UInt32, | ||
max UInt32, | ||
sum_of_samples Int64, | ||
squared_mean Float64, | ||
p50_marker_heights Array(Float64), | ||
p50_marker_positions Array(UInt64), | ||
p50_desired_marker_positions Array(Float64), | ||
p90_marker_heights Array(Float64), | ||
p90_marker_positions Array(UInt64), | ||
p90_desired_marker_positions Array(Float64), | ||
p99_marker_heights Array(Float64), | ||
p99_marker_positions Array(UInt64), | ||
p99_desired_marker_positions Array(Float64) | ||
) | ||
ENGINE = Distributed('oximeter_cluster', 'oximeter', 'measurements_histogramu32_local', xxHash64(splitByChar(':', timeseries_name)[1])); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS oximeter.measurements_histogrami64_local ON CLUSTER oximeter_cluster SYNC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS oximeter.measurements_histogrami64 ON CLUSTER oximeter_cluster SYNC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
CREATE TABLE IF NOT EXISTS oximeter.measurements_histogrami64_local ON CLUSTER oximeter_cluster | ||
( | ||
timeseries_name String, | ||
timeseries_key UInt64, | ||
start_time DateTime64(9, 'UTC'), | ||
timestamp DateTime64(9, 'UTC'), | ||
bins Array(Int64), | ||
counts Array(UInt64), | ||
min Int64, | ||
max Int64, | ||
sum_of_samples Int64, | ||
squared_mean Float64, | ||
p50_marker_heights Array(Float64), | ||
p50_marker_positions Array(UInt64), | ||
p50_desired_marker_positions Array(Float64), | ||
p90_marker_heights Array(Float64), | ||
p90_marker_positions Array(UInt64), | ||
p90_desired_marker_positions Array(Float64), | ||
p99_marker_heights Array(Float64), | ||
p99_marker_positions Array(UInt64), | ||
p99_desired_marker_positions Array(Float64) | ||
) | ||
ENGINE = ReplicatedMergeTree('/clickhouse/tables/{shard}/measurements_histogrami64_local', '{replica}') | ||
ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) | ||
TTL toDateTime(timestamp) + INTERVAL 30 DAY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
CREATE TABLE IF NOT EXISTS oximeter.measurements_histogrami64 ON CLUSTER oximeter_cluster | ||
( | ||
timeseries_name String, | ||
timeseries_key UInt64, | ||
start_time DateTime64(9, 'UTC'), | ||
timestamp DateTime64(9, 'UTC'), | ||
bins Array(Int64), | ||
counts Array(UInt64), | ||
min Int64, | ||
max Int64, | ||
sum_of_samples Int64, | ||
squared_mean Float64, | ||
p50_marker_heights Array(Float64), | ||
p50_marker_positions Array(UInt64), | ||
p50_desired_marker_positions Array(Float64), | ||
p90_marker_heights Array(Float64), | ||
p90_marker_positions Array(UInt64), | ||
p90_desired_marker_positions Array(Float64), | ||
p99_marker_heights Array(Float64), | ||
p99_marker_positions Array(UInt64), | ||
p99_desired_marker_positions Array(Float64) | ||
) | ||
ENGINE = Distributed('oximeter_cluster', 'oximeter', 'measurements_histogrami64_local', xxHash64(splitByChar(':', timeseries_name)[1])); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS oximeter.measurements_histogramu64_local ON CLUSTER oximeter_cluster SYNC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS oximeter.measurements_histogramu64 ON CLUSTER oximeter_cluster SYNC; |
Oops, something went wrong.