Skip to content

Commit

Permalink
Merge pull request #446 from metrico/fix_445
Browse files Browse the repository at this point in the history
fix: bad commas
  • Loading branch information
akvlad authored Jan 29, 2024
2 parents 6c4e5e2 + c3c6fcc commit 036a5aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/db/maintain/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down Expand Up @@ -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}}} (
Expand All @@ -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());`
]

0 comments on commit 036a5aa

Please sign in to comment.