diff --git a/oximeter/db/schema/replicated/5/up.sql b/oximeter/db/schema/replicated/5/up.sql deleted file mode 100644 index 30d9e694da..0000000000 --- a/oximeter/db/schema/replicated/5/up.sql +++ /dev/null @@ -1,279 +0,0 @@ -ALTER TABLE oximeter.measurements_histogrami8_local ON CLUSTER oximeter_cluster ADD COLUMN min Int8; -ALTER TABLE oximeter.measurements_histogrami8_local ON CLUSTER oximeter_cluster ADD COLUMN max Int8; -ALTER TABLE oximeter.measurements_histogrami8_local ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogrami8_local ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogrami8_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami8_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami8_local ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami8_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami8_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami8_local ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami8_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami8_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami8_local ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogrami8 ON CLUSTER oximeter_cluster ADD COLUMN min Int8; -ALTER TABLE oximeter.measurements_histogrami8 ON CLUSTER oximeter_cluster ADD COLUMN max Int8; -ALTER TABLE oximeter.measurements_histogrami8 ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogrami8 ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogrami8 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami8 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami8 ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami8 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami8 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami8 ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami8 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami8 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami8 ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogrami16_local ON CLUSTER oximeter_cluster ADD COLUMN min Int16; -ALTER TABLE oximeter.measurements_histogrami16_local ON CLUSTER oximeter_cluster ADD COLUMN max Int16; -ALTER TABLE oximeter.measurements_histogrami16_local ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogrami16_local ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogrami16_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami16_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami16_local ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami16_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami16_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami16_local ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami16_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami16_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami16_local ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogrami16 ON CLUSTER oximeter_cluster ADD COLUMN min Int16; -ALTER TABLE oximeter.measurements_histogrami16 ON CLUSTER oximeter_cluster ADD COLUMN max Int16; -ALTER TABLE oximeter.measurements_histogrami16 ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogrami16 ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogrami16 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami16 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami16 ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami16 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami16 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami16 ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami16 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami16 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami16 ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogrami32_local ON CLUSTER oximeter_cluster ADD COLUMN min Int32; -ALTER TABLE oximeter.measurements_histogrami32_local ON CLUSTER oximeter_cluster ADD COLUMN max Int32; -ALTER TABLE oximeter.measurements_histogrami32_local ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogrami32_local ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogrami32_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami32_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami32_local ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami32_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami32_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami32_local ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami32_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami32_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami32_local ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogrami32 ON CLUSTER oximeter_cluster ADD COLUMN min Int32; -ALTER TABLE oximeter.measurements_histogrami32 ON CLUSTER oximeter_cluster ADD COLUMN max Int32; -ALTER TABLE oximeter.measurements_histogrami32 ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogrami32 ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogrami32 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami32 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami32 ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami32 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami32 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami32 ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami32 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami32 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami32 ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogrami64_local ON CLUSTER oximeter_cluster ADD COLUMN min Int64; -ALTER TABLE oximeter.measurements_histogrami64_local ON CLUSTER oximeter_cluster ADD COLUMN max Int64; -ALTER TABLE oximeter.measurements_histogrami64_local ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogrami64_local ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogrami64_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami64_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami64_local ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami64_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami64_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami64_local ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami64_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami64_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami64_local ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogrami64 ON CLUSTER oximeter_cluster ADD COLUMN min Int64; -ALTER TABLE oximeter.measurements_histogrami64 ON CLUSTER oximeter_cluster ADD COLUMN max Int64; -ALTER TABLE oximeter.measurements_histogrami64 ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogrami64 ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogrami64 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami64 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami64 ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami64 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami64 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami64 ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami64 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami64 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami64 ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogramu8_local ON CLUSTER oximeter_cluster ADD COLUMN min UInt8; -ALTER TABLE oximeter.measurements_histogramu8_local ON CLUSTER oximeter_cluster ADD COLUMN max UInt8; -ALTER TABLE oximeter.measurements_histogramu8_local ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogramu8_local ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogramu8_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu8_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu8_local ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu8_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu8_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu8_local ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu8_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu8_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu8_local ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogramu8 ON CLUSTER oximeter_cluster ADD COLUMN min UInt8; -ALTER TABLE oximeter.measurements_histogramu8 ON CLUSTER oximeter_cluster ADD COLUMN max UInt8; -ALTER TABLE oximeter.measurements_histogramu8 ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogramu8 ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogramu8 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu8 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu8 ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu8 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu8 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu8 ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu8 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu8 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu8 ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogramu16_local ON CLUSTER oximeter_cluster ADD COLUMN min UInt16; -ALTER TABLE oximeter.measurements_histogramu16_local ON CLUSTER oximeter_cluster ADD COLUMN max UInt16; -ALTER TABLE oximeter.measurements_histogramu16_local ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogramu16_local ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogramu16_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu16_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu16_local ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu16_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu16_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu16_local ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu16_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu16_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu16_local ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogramu16 ON CLUSTER oximeter_cluster ADD COLUMN min UInt16; -ALTER TABLE oximeter.measurements_histogramu16 ON CLUSTER oximeter_cluster ADD COLUMN max UInt16; -ALTER TABLE oximeter.measurements_histogramu16 ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogramu16 ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogramu16 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu16 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu16 ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu16 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu16 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu16 ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu16 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu16 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu16 ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogramu32_local ON CLUSTER oximeter_cluster ADD COLUMN min UInt32; -ALTER TABLE oximeter.measurements_histogramu32_local ON CLUSTER oximeter_cluster ADD COLUMN max UInt32; -ALTER TABLE oximeter.measurements_histogramu32_local ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogramu32_local ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogramu32_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu32_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu32_local ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu32_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu32_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu32_local ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu32_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu32_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu32_local ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogramu32 ON CLUSTER oximeter_cluster ADD COLUMN min UInt32; -ALTER TABLE oximeter.measurements_histogramu32 ON CLUSTER oximeter_cluster ADD COLUMN max UInt32; -ALTER TABLE oximeter.measurements_histogramu32 ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogramu32 ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogramu32 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu32 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu32 ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu32 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu32 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu32 ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu32 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu32 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu32 ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogramu64_local ON CLUSTER oximeter_cluster ADD COLUMN min UNINT64; -ALTER TABLE oximeter.measurements_histogramu64_local ON CLUSTER oximeter_cluster ADD COLUMN max UNINT64; -ALTER TABLE oximeter.measurements_histogramu64_local ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogramu64_local ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogramu64_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu64_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu64_local ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu64_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu64_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu64_local ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu64_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu64_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu64_local ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogramu64 ON CLUSTER oximeter_cluster ADD COLUMN min UNINT64; -ALTER TABLE oximeter.measurements_histogramu64 ON CLUSTER oximeter_cluster ADD COLUMN max UNINT64; -ALTER TABLE oximeter.measurements_histogramu64 ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogramu64 ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogramu64 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu64 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu64 ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu64 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu64 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu64 ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu64 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu64 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu64 ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogramf32_local ON CLUSTER oximeter_cluster ADD COLUMN min Float32; -ALTER TABLE oximeter.measurements_histogramf32_local ON CLUSTER oximeter_cluster ADD COLUMN max Float32; -ALTER TABLE oximeter.measurements_histogramf32_local ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Float64; -ALTER TABLE oximeter.measurements_histogramf32_local ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogramf32_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramf32_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramf32_local ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramf32_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramf32_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramf32_local ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramf32_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramf32_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramf32_local ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogramf32 ON CLUSTER oximeter_cluster ADD COLUMN min Float32; -ALTER TABLE oximeter.measurements_histogramf32 ON CLUSTER oximeter_cluster ADD COLUMN max Float32; -ALTER TABLE oximeter.measurements_histogramf32 ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Float64; -ALTER TABLE oximeter.measurements_histogramf32 ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogramf32 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramf32 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramf32 ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramf32 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramf32 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramf32 ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramf32 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramf32 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramf32 ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogramf64_local ON CLUSTER oximeter_cluster ADD COLUMN min Float64; -ALTER TABLE oximeter.measurements_histogramf64_local ON CLUSTER oximeter_cluster ADD COLUMN max Float64; -ALTER TABLE oximeter.measurements_histogramf64_local ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Float64; -ALTER TABLE oximeter.measurements_histogramf64_local ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogramf64_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramf64_local ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramf64_local ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramf64_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramf64_local ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramf64_local ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramf64_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramf64_local ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramf64_local ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogramf64 ON CLUSTER oximeter_cluster ADD COLUMN min Float64; -ALTER TABLE oximeter.measurements_histogramf64 ON CLUSTER oximeter_cluster ADD COLUMN max Float64; -ALTER TABLE oximeter.measurements_histogramf64 ON CLUSTER oximeter_cluster ADD COLUMN sum_of_samples Float64; -ALTER TABLE oximeter.measurements_histogramf64 ON CLUSTER oximeter_cluster ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogramf64 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramf64 ON CLUSTER oximeter_cluster ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramf64 ON CLUSTER oximeter_cluster ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramf64 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramf64 ON CLUSTER oximeter_cluster ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramf64 ON CLUSTER oximeter_cluster ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramf64 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramf64 ON CLUSTER oximeter_cluster ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramf64 ON CLUSTER oximeter_cluster ADD COLUMN p99_desired_marker_positions Array(Float64); diff --git a/oximeter/db/schema/replicated/5/up01.sql b/oximeter/db/schema/replicated/5/up01.sql new file mode 100644 index 0000000000..5fd811bcbb --- /dev/null +++ b/oximeter/db/schema/replicated/5/up01.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogrami8_local ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up02.sql b/oximeter/db/schema/replicated/5/up02.sql new file mode 100644 index 0000000000..78f6bf30fc --- /dev/null +++ b/oximeter/db/schema/replicated/5/up02.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogrami8 ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up03.sql b/oximeter/db/schema/replicated/5/up03.sql new file mode 100644 index 0000000000..79208d2c45 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up03.sql @@ -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; diff --git a/oximeter/db/schema/replicated/5/up04.sql b/oximeter/db/schema/replicated/5/up04.sql new file mode 100644 index 0000000000..e0277c4ce5 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up04.sql @@ -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])); diff --git a/oximeter/db/schema/replicated/5/up05.sql b/oximeter/db/schema/replicated/5/up05.sql new file mode 100644 index 0000000000..5736e4cfce --- /dev/null +++ b/oximeter/db/schema/replicated/5/up05.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogramu8_local ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up06.sql b/oximeter/db/schema/replicated/5/up06.sql new file mode 100644 index 0000000000..485c79dd7d --- /dev/null +++ b/oximeter/db/schema/replicated/5/up06.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogramu8 ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up07.sql b/oximeter/db/schema/replicated/5/up07.sql new file mode 100644 index 0000000000..3fe9810a9e --- /dev/null +++ b/oximeter/db/schema/replicated/5/up07.sql @@ -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; diff --git a/oximeter/db/schema/replicated/5/up08.sql b/oximeter/db/schema/replicated/5/up08.sql new file mode 100644 index 0000000000..0b3ecb0313 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up08.sql @@ -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])); diff --git a/oximeter/db/schema/replicated/5/up09.sql b/oximeter/db/schema/replicated/5/up09.sql new file mode 100644 index 0000000000..5d43e5db84 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up09.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogrami16_local ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up10.sql b/oximeter/db/schema/replicated/5/up10.sql new file mode 100644 index 0000000000..ea2776fd06 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up10.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogrami16 ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up11.sql b/oximeter/db/schema/replicated/5/up11.sql new file mode 100644 index 0000000000..ac5ef4fbb9 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up11.sql @@ -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; diff --git a/oximeter/db/schema/replicated/5/up12.sql b/oximeter/db/schema/replicated/5/up12.sql new file mode 100644 index 0000000000..9a87701279 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up12.sql @@ -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])); diff --git a/oximeter/db/schema/replicated/5/up13.sql b/oximeter/db/schema/replicated/5/up13.sql new file mode 100644 index 0000000000..cfe3e278d4 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up13.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogramu16_local ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up14.sql b/oximeter/db/schema/replicated/5/up14.sql new file mode 100644 index 0000000000..4905db35c3 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up14.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogramu16 ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up15.sql b/oximeter/db/schema/replicated/5/up15.sql new file mode 100644 index 0000000000..c505bb7892 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up15.sql @@ -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; diff --git a/oximeter/db/schema/replicated/5/up16.sql b/oximeter/db/schema/replicated/5/up16.sql new file mode 100644 index 0000000000..c1d86373f5 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up16.sql @@ -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])); diff --git a/oximeter/db/schema/replicated/5/up17.sql b/oximeter/db/schema/replicated/5/up17.sql new file mode 100644 index 0000000000..741cf9bed1 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up17.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogrami32_local ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up18.sql b/oximeter/db/schema/replicated/5/up18.sql new file mode 100644 index 0000000000..b4c7888e3e --- /dev/null +++ b/oximeter/db/schema/replicated/5/up18.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogrami32 ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up19.sql b/oximeter/db/schema/replicated/5/up19.sql new file mode 100644 index 0000000000..391e77a1cf --- /dev/null +++ b/oximeter/db/schema/replicated/5/up19.sql @@ -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; diff --git a/oximeter/db/schema/replicated/5/up20.sql b/oximeter/db/schema/replicated/5/up20.sql new file mode 100644 index 0000000000..b5213c3703 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up20.sql @@ -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])); diff --git a/oximeter/db/schema/replicated/5/up21.sql b/oximeter/db/schema/replicated/5/up21.sql new file mode 100644 index 0000000000..863ebdd677 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up21.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogramu32_local ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up22.sql b/oximeter/db/schema/replicated/5/up22.sql new file mode 100644 index 0000000000..969d0ec578 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up22.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogramu32 ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up23.sql b/oximeter/db/schema/replicated/5/up23.sql new file mode 100644 index 0000000000..3b65222ab9 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up23.sql @@ -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; diff --git a/oximeter/db/schema/replicated/5/up24.sql b/oximeter/db/schema/replicated/5/up24.sql new file mode 100644 index 0000000000..e4fe8d234d --- /dev/null +++ b/oximeter/db/schema/replicated/5/up24.sql @@ -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])); diff --git a/oximeter/db/schema/replicated/5/up25.sql b/oximeter/db/schema/replicated/5/up25.sql new file mode 100644 index 0000000000..79f1337bb6 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up25.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogrami64_local ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up26.sql b/oximeter/db/schema/replicated/5/up26.sql new file mode 100644 index 0000000000..be7ac420c3 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up26.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogrami64 ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up27.sql b/oximeter/db/schema/replicated/5/up27.sql new file mode 100644 index 0000000000..716d450f18 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up27.sql @@ -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; diff --git a/oximeter/db/schema/replicated/5/up28.sql b/oximeter/db/schema/replicated/5/up28.sql new file mode 100644 index 0000000000..06e422da1a --- /dev/null +++ b/oximeter/db/schema/replicated/5/up28.sql @@ -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])); diff --git a/oximeter/db/schema/replicated/5/up29.sql b/oximeter/db/schema/replicated/5/up29.sql new file mode 100644 index 0000000000..e02de80c59 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up29.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogramu64_local ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up30.sql b/oximeter/db/schema/replicated/5/up30.sql new file mode 100644 index 0000000000..4f938b220c --- /dev/null +++ b/oximeter/db/schema/replicated/5/up30.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogramu64 ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up31.sql b/oximeter/db/schema/replicated/5/up31.sql new file mode 100644 index 0000000000..603e78e668 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up31.sql @@ -0,0 +1,25 @@ +CREATE TABLE IF NOT EXISTS oximeter.measurements_histogramu64_local ON CLUSTER oximeter_cluster +( + timeseries_name String, + timeseries_key UInt64, + start_time DateTime64(9, 'UTC'), + timestamp DateTime64(9, 'UTC'), + bins Array(UInt64), + counts Array(UInt64), + min UInt64, + max UInt64, + 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_histogramu64_local', '{replica}') +ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) +TTL toDateTime(timestamp) + INTERVAL 30 DAY; diff --git a/oximeter/db/schema/replicated/5/up32.sql b/oximeter/db/schema/replicated/5/up32.sql new file mode 100644 index 0000000000..b31d2f6279 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up32.sql @@ -0,0 +1,23 @@ +CREATE TABLE IF NOT EXISTS oximeter.measurements_histogramu64 ON CLUSTER oximeter_cluster +( + timeseries_name String, + timeseries_key UInt64, + start_time DateTime64(9, 'UTC'), + timestamp DateTime64(9, 'UTC'), + bins Array(UInt64), + counts Array(UInt64), + min UInt64, + max UInt64, + 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_histogramu64_local', xxHash64(splitByChar(':', timeseries_name)[1])); diff --git a/oximeter/db/schema/replicated/5/up33.sql b/oximeter/db/schema/replicated/5/up33.sql new file mode 100644 index 0000000000..36bb01b64b --- /dev/null +++ b/oximeter/db/schema/replicated/5/up33.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogramf32_local ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up34.sql b/oximeter/db/schema/replicated/5/up34.sql new file mode 100644 index 0000000000..00f8c60701 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up34.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogramf32 ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up35.sql b/oximeter/db/schema/replicated/5/up35.sql new file mode 100644 index 0000000000..c1ef9c505c --- /dev/null +++ b/oximeter/db/schema/replicated/5/up35.sql @@ -0,0 +1,25 @@ +CREATE TABLE IF NOT EXISTS oximeter.measurements_histogramf32_local ON CLUSTER oximeter_cluster +( + timeseries_name String, + timeseries_key UInt64, + start_time DateTime64(9, 'UTC'), + timestamp DateTime64(9, 'UTC'), + bins Array(Float32), + counts Array(UInt64), + min Float32, + max Float32, + sum_of_samples Float64, + 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_histogramf32_local', '{replica}') +ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) +TTL toDateTime(timestamp) + INTERVAL 30 DAY; diff --git a/oximeter/db/schema/replicated/5/up36.sql b/oximeter/db/schema/replicated/5/up36.sql new file mode 100644 index 0000000000..b2be89fba5 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up36.sql @@ -0,0 +1,23 @@ +CREATE TABLE IF NOT EXISTS oximeter.measurements_histogramf32 ON CLUSTER oximeter_cluster +( + timeseries_name String, + timeseries_key UInt64, + start_time DateTime64(9, 'UTC'), + timestamp DateTime64(9, 'UTC'), + bins Array(Float32), + counts Array(UInt64), + min Float32, + max Float32, + sum_of_samples Float64, + 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_histogramf32_local', xxHash64(splitByChar(':', timeseries_name)[1])); diff --git a/oximeter/db/schema/replicated/5/up37.sql b/oximeter/db/schema/replicated/5/up37.sql new file mode 100644 index 0000000000..7a1a1e19d6 --- /dev/null +++ b/oximeter/db/schema/replicated/5/up37.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogramf64_local ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up38.sql b/oximeter/db/schema/replicated/5/up38.sql new file mode 100644 index 0000000000..c643d5532c --- /dev/null +++ b/oximeter/db/schema/replicated/5/up38.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogramf64 ON CLUSTER oximeter_cluster SYNC; diff --git a/oximeter/db/schema/replicated/5/up39.sql b/oximeter/db/schema/replicated/5/up39.sql new file mode 100644 index 0000000000..703832106a --- /dev/null +++ b/oximeter/db/schema/replicated/5/up39.sql @@ -0,0 +1,25 @@ +CREATE TABLE IF NOT EXISTS oximeter.measurements_histogramf64_local ON CLUSTER oximeter_cluster +( + timeseries_name String, + timeseries_key UInt64, + start_time DateTime64(9, 'UTC'), + timestamp DateTime64(9, 'UTC'), + bins Array(Float64), + counts Array(UInt64), + min Float64, + max Float64, + sum_of_samples Float64, + 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_histogramf64_local', '{replica}') +ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) +TTL toDateTime(timestamp) + INTERVAL 30 DAY; diff --git a/oximeter/db/schema/replicated/5/up40.sql b/oximeter/db/schema/replicated/5/up40.sql new file mode 100644 index 0000000000..a18ea0ae4a --- /dev/null +++ b/oximeter/db/schema/replicated/5/up40.sql @@ -0,0 +1,23 @@ +CREATE TABLE IF NOT EXISTS oximeter.measurements_histogramf64 ON CLUSTER oximeter_cluster +( + timeseries_name String, + timeseries_key UInt64, + start_time DateTime64(9, 'UTC'), + timestamp DateTime64(9, 'UTC'), + bins Array(Float64), + counts Array(UInt64), + min Float64, + max Float64, + sum_of_samples Float64, + 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_histogramf64_local', xxHash64(splitByChar(':', timeseries_name)[1])); diff --git a/oximeter/db/schema/single-node/5/up.sql b/oximeter/db/schema/single-node/5/up.sql deleted file mode 100644 index 6f4d55392f..0000000000 --- a/oximeter/db/schema/single-node/5/up.sql +++ /dev/null @@ -1,139 +0,0 @@ -ALTER TABLE oximeter.measurements_histogrami8 ADD COLUMN min Int8; -ALTER TABLE oximeter.measurements_histogrami8 ADD COLUMN max Int8; -ALTER TABLE oximeter.measurements_histogrami8 ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogrami8 ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogrami8 ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami8 ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami8 ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami8 ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami8 ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami8 ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami8 ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami8 ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami8 ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogrami16 ADD COLUMN min Int16; -ALTER TABLE oximeter.measurements_histogrami16 ADD COLUMN max Int16; -ALTER TABLE oximeter.measurements_histogrami16 ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogrami16 ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogrami16 ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami16 ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami16 ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami16 ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami16 ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami16 ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami16 ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami16 ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami16 ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogrami32 ADD COLUMN min Int32; -ALTER TABLE oximeter.measurements_histogrami32 ADD COLUMN max Int32; -ALTER TABLE oximeter.measurements_histogrami32 ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogrami32 ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogrami32 ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami32 ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami32 ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami32 ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami32 ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami32 ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami32 ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami32 ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami32 ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogrami64 ADD COLUMN min Int64; -ALTER TABLE oximeter.measurements_histogrami64 ADD COLUMN max Int64; -ALTER TABLE oximeter.measurements_histogrami64 ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogrami64 ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogrami64 ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami64 ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami64 ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami64 ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami64 ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami64 ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogrami64 ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogrami64 ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogrami64 ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogramu8 ADD COLUMN min UInt8; -ALTER TABLE oximeter.measurements_histogramu8 ADD COLUMN max UInt8; -ALTER TABLE oximeter.measurements_histogramu8 ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogramu8 ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogramu8 ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu8 ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu8 ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu8 ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu8 ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu8 ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu8 ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu8 ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu8 ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogramu16 ADD COLUMN min UInt16; -ALTER TABLE oximeter.measurements_histogramu16 ADD COLUMN max UInt16; -ALTER TABLE oximeter.measurements_histogramu16 ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogramu16 ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogramu16 ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu16 ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu16 ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu16 ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu16 ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu16 ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu16 ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu16 ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu16 ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogramu32 ADD COLUMN min UInt32; -ALTER TABLE oximeter.measurements_histogramu32 ADD COLUMN max UInt32; -ALTER TABLE oximeter.measurements_histogramu32 ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogramu32 ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogramu32 ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu32 ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu32 ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu32 ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu32 ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu32 ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu32 ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu32 ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu32 ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogramu64 ADD COLUMN min UInt64; -ALTER TABLE oximeter.measurements_histogramu64 ADD COLUMN max UInt64; -ALTER TABLE oximeter.measurements_histogramu64 ADD COLUMN sum_of_samples Int64; -ALTER TABLE oximeter.measurements_histogramu64 ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogramu64 ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu64 ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu64 ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu64 ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu64 ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu64 ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramu64 ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramu64 ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramu64 ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogramf32 ADD COLUMN min Float32; -ALTER TABLE oximeter.measurements_histogramf32 ADD COLUMN max Float32; -ALTER TABLE oximeter.measurements_histogramf32 ADD COLUMN sum_of_samples Float64; -ALTER TABLE oximeter.measurements_histogramf32 ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogramf32 ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramf32 ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramf32 ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramf32 ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramf32 ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramf32 ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramf32 ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramf32 ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramf32 ADD COLUMN p99_desired_marker_positions Array(Float64); - -ALTER TABLE oximeter.measurements_histogramf64 ADD COLUMN min Float64; -ALTER TABLE oximeter.measurements_histogramf64 ADD COLUMN max Float64; -ALTER TABLE oximeter.measurements_histogramf64 ADD COLUMN sum_of_samples Float64; -ALTER TABLE oximeter.measurements_histogramf64 ADD COLUMN squared_mean Float64; -ALTER TABLE oximeter.measurements_histogramf64 ADD COLUMN p50_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramf64 ADD COLUMN p50_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramf64 ADD COLUMN p50_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramf64 ADD COLUMN p90_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramf64 ADD COLUMN p90_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramf64 ADD COLUMN p90_desired_marker_positions Array(Float64); -ALTER TABLE oximeter.measurements_histogramf64 ADD COLUMN p99_marker_heights Array(Float64); -ALTER TABLE oximeter.measurements_histogramf64 ADD COLUMN p99_marker_positions Array(UInt64); -ALTER TABLE oximeter.measurements_histogramf64 ADD COLUMN p99_desired_marker_positions Array(Float64); diff --git a/oximeter/db/schema/single-node/5/up01.sql b/oximeter/db/schema/single-node/5/up01.sql new file mode 100644 index 0000000000..41751aac7a --- /dev/null +++ b/oximeter/db/schema/single-node/5/up01.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogrami8; diff --git a/oximeter/db/schema/single-node/5/up02.sql b/oximeter/db/schema/single-node/5/up02.sql new file mode 100644 index 0000000000..ba9b2c1762 --- /dev/null +++ b/oximeter/db/schema/single-node/5/up02.sql @@ -0,0 +1,25 @@ +CREATE TABLE IF NOT EXISTS oximeter.measurements_histogrami8 +( + 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 = MergeTree() +ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) +TTL toDateTime(timestamp) + INTERVAL 30 DAY; diff --git a/oximeter/db/schema/single-node/5/up03.sql b/oximeter/db/schema/single-node/5/up03.sql new file mode 100644 index 0000000000..dec872f0ae --- /dev/null +++ b/oximeter/db/schema/single-node/5/up03.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogramu8; diff --git a/oximeter/db/schema/single-node/5/up04.sql b/oximeter/db/schema/single-node/5/up04.sql new file mode 100644 index 0000000000..1337a4ffe2 --- /dev/null +++ b/oximeter/db/schema/single-node/5/up04.sql @@ -0,0 +1,25 @@ +CREATE TABLE IF NOT EXISTS oximeter.measurements_histogramu8 +( + 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 = MergeTree() +ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) +TTL toDateTime(timestamp) + INTERVAL 30 DAY; diff --git a/oximeter/db/schema/single-node/5/up05.sql b/oximeter/db/schema/single-node/5/up05.sql new file mode 100644 index 0000000000..2a789beaf2 --- /dev/null +++ b/oximeter/db/schema/single-node/5/up05.sql @@ -0,0 +1 @@ +DROP TABLE oximeter.measurements_histogrami16; diff --git a/oximeter/db/schema/single-node/5/up06.sql b/oximeter/db/schema/single-node/5/up06.sql new file mode 100644 index 0000000000..7aa8fa6696 --- /dev/null +++ b/oximeter/db/schema/single-node/5/up06.sql @@ -0,0 +1,25 @@ +CREATE TABLE IF NOT EXISTS oximeter.measurements_histogrami16 +( + 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 = MergeTree() +ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) +TTL toDateTime(timestamp) + INTERVAL 30 DAY; diff --git a/oximeter/db/schema/single-node/5/up07.sql b/oximeter/db/schema/single-node/5/up07.sql new file mode 100644 index 0000000000..3fb69b754b --- /dev/null +++ b/oximeter/db/schema/single-node/5/up07.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogramu16; diff --git a/oximeter/db/schema/single-node/5/up08.sql b/oximeter/db/schema/single-node/5/up08.sql new file mode 100644 index 0000000000..cbe0aedc05 --- /dev/null +++ b/oximeter/db/schema/single-node/5/up08.sql @@ -0,0 +1,25 @@ +CREATE TABLE IF NOT EXISTS oximeter.measurements_histogramu16 +( + 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 = MergeTree() +ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) +TTL toDateTime(timestamp) + INTERVAL 30 DAY; diff --git a/oximeter/db/schema/single-node/5/up09.sql b/oximeter/db/schema/single-node/5/up09.sql new file mode 100644 index 0000000000..c57462016b --- /dev/null +++ b/oximeter/db/schema/single-node/5/up09.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogrami32; diff --git a/oximeter/db/schema/single-node/5/up10.sql b/oximeter/db/schema/single-node/5/up10.sql new file mode 100644 index 0000000000..571cdfb924 --- /dev/null +++ b/oximeter/db/schema/single-node/5/up10.sql @@ -0,0 +1,25 @@ +CREATE TABLE IF NOT EXISTS oximeter.measurements_histogrami32 +( + 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 = MergeTree() +ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) +TTL toDateTime(timestamp) + INTERVAL 30 DAY; diff --git a/oximeter/db/schema/single-node/5/up11.sql b/oximeter/db/schema/single-node/5/up11.sql new file mode 100644 index 0000000000..5029f357aa --- /dev/null +++ b/oximeter/db/schema/single-node/5/up11.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogramu32; diff --git a/oximeter/db/schema/single-node/5/up12.sql b/oximeter/db/schema/single-node/5/up12.sql new file mode 100644 index 0000000000..c430ee9046 --- /dev/null +++ b/oximeter/db/schema/single-node/5/up12.sql @@ -0,0 +1,25 @@ +CREATE TABLE IF NOT EXISTS oximeter.measurements_histogramu32 +( + 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 = MergeTree() +ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) +TTL toDateTime(timestamp) + INTERVAL 30 DAY; diff --git a/oximeter/db/schema/single-node/5/up13.sql b/oximeter/db/schema/single-node/5/up13.sql new file mode 100644 index 0000000000..a1669359ef --- /dev/null +++ b/oximeter/db/schema/single-node/5/up13.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogrami64; diff --git a/oximeter/db/schema/single-node/5/up14.sql b/oximeter/db/schema/single-node/5/up14.sql new file mode 100644 index 0000000000..bda2eab542 --- /dev/null +++ b/oximeter/db/schema/single-node/5/up14.sql @@ -0,0 +1,25 @@ +CREATE TABLE IF NOT EXISTS oximeter.measurements_histogrami64 +( + 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 = MergeTree() +ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) +TTL toDateTime(timestamp) + INTERVAL 30 DAY; diff --git a/oximeter/db/schema/single-node/5/up15.sql b/oximeter/db/schema/single-node/5/up15.sql new file mode 100644 index 0000000000..3bd8b61024 --- /dev/null +++ b/oximeter/db/schema/single-node/5/up15.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogramu64; diff --git a/oximeter/db/schema/single-node/5/up16.sql b/oximeter/db/schema/single-node/5/up16.sql new file mode 100644 index 0000000000..8d6f07c96e --- /dev/null +++ b/oximeter/db/schema/single-node/5/up16.sql @@ -0,0 +1,25 @@ +CREATE TABLE IF NOT EXISTS oximeter.measurements_histogramu64 +( + timeseries_name String, + timeseries_key UInt64, + start_time DateTime64(9, 'UTC'), + timestamp DateTime64(9, 'UTC'), + bins Array(UInt64), + counts Array(UInt64), + min UInt64, + max UInt64, + 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 = MergeTree() +ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) +TTL toDateTime(timestamp) + INTERVAL 30 DAY; diff --git a/oximeter/db/schema/single-node/5/up17.sql b/oximeter/db/schema/single-node/5/up17.sql new file mode 100644 index 0000000000..91d7743445 --- /dev/null +++ b/oximeter/db/schema/single-node/5/up17.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogramf32; diff --git a/oximeter/db/schema/single-node/5/up18.sql b/oximeter/db/schema/single-node/5/up18.sql new file mode 100644 index 0000000000..a8335944a7 --- /dev/null +++ b/oximeter/db/schema/single-node/5/up18.sql @@ -0,0 +1,25 @@ +CREATE TABLE IF NOT EXISTS oximeter.measurements_histogramf32 +( + timeseries_name String, + timeseries_key UInt64, + start_time DateTime64(9, 'UTC'), + timestamp DateTime64(9, 'UTC'), + bins Array(Float32), + counts Array(UInt64), + min Float32, + max Float32, + sum_of_samples Float64, + 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 = MergeTree() +ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) +TTL toDateTime(timestamp) + INTERVAL 30 DAY; diff --git a/oximeter/db/schema/single-node/5/up19.sql b/oximeter/db/schema/single-node/5/up19.sql new file mode 100644 index 0000000000..f690feff00 --- /dev/null +++ b/oximeter/db/schema/single-node/5/up19.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS oximeter.measurements_histogramf64; diff --git a/oximeter/db/schema/single-node/5/up20.sql b/oximeter/db/schema/single-node/5/up20.sql new file mode 100644 index 0000000000..ceed990747 --- /dev/null +++ b/oximeter/db/schema/single-node/5/up20.sql @@ -0,0 +1,25 @@ +CREATE TABLE IF NOT EXISTS oximeter.measurements_histogramf64 +( + timeseries_name String, + timeseries_key UInt64, + start_time DateTime64(9, 'UTC'), + timestamp DateTime64(9, 'UTC'), + bins Array(Float64), + counts Array(UInt64), + min Float64, + max Float64, + sum_of_samples Float64, + 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 = MergeTree() +ORDER BY (timeseries_name, timeseries_key, start_time, timestamp) +TTL toDateTime(timestamp) + INTERVAL 30 DAY; diff --git a/oximeter/db/src/oxql/point.rs b/oximeter/db/src/oxql/point.rs index eabe370e34..7805ec64be 100644 --- a/oximeter/db/src/oxql/point.rs +++ b/oximeter/db/src/oxql/point.rs @@ -1615,6 +1615,7 @@ where .context("Underflow subtracting distributions values")?; // Subtract sum_of_samples. + // This can be negative as T is either i64 or f64. let sum_of_samples = self.sum_of_samples - rhs.sum_of_samples; // Squared means are not linear, so we subtract the means and then