diff --git a/lib/db/maintain/scripts.js b/lib/db/maintain/scripts.js index ca53735d..b11f69ed 100644 --- a/lib/db/maintain/scripts.js +++ b/lib/db/maintain/scripts.js @@ -372,14 +372,14 @@ module.exports.profiles = [ type_id, sample_types_units, service_name, - fingerprint, + fingerprint FROM profiles_series ARRAY JOIN tags as kv`, `CREATE TABLE IF NOT EXISTS profiles_series_keys {{{OnCluster}}} ( date Date, key String, val String, - val_id UInt64, + val_id UInt64 ) Engine {{ReplacingMergeTree}}() ORDER BY (date, key, val_id) PARTITION BY date`, @@ -410,7 +410,7 @@ module.exports.profiles_dist = [ type_id LowCardinality(String), service_name LowCardinality(String), fingerprint UInt64 CODEC(DoubleDelta, ZSTD(1)), - tags Array(Tuple(String, String)) CODEC(ZSTD(1)), + tags Array(Tuple(String, String)) CODEC(ZSTD(1)) ) ENGINE = Distributed('{{CLUSTER}}','{{DB}}','profiles_series',fingerprint);`, `CREATE TABLE IF NOT EXISTS profiles_series_gin_dist {{{OnCluster}}} ( @@ -419,13 +419,13 @@ module.exports.profiles_dist = [ val String, type_id LowCardinality(String), service_name LowCardinality(String), - fingerprint UInt64 CODEC(DoubleDelta, ZSTD(1)), + fingerprint UInt64 CODEC(DoubleDelta, ZSTD(1)) ) ENGINE = Distributed('{{CLUSTER}}','{{DB}}','profiles_series_gin',fingerprint);`, `CREATE TABLE IF NOT EXISTS profiles_series_keys_dist {{{OnCluster}}} ( date Date, key String, val String, - val_id UInt64, + val_id UInt64 ) ENGINE = Distributed('{{CLUSTER}}','{{DB}}','profiles_series_keys', rand());` ]