Skip to content

Commit

Permalink
add: agent_version_semver to node_population primary key
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-tra committed Dec 17, 2024
1 parent 4d57510 commit b744605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/migrations/000003_create_node_population_table.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ CREATE TABLE node_population (
agent_version_type LowCardinality(String),
agent_version_semver Array(Int16)
) ENGINE = AggregatingMergeTree()
PRIMARY KEY (timestamp, agent_version_type)
PRIMARY KEY (timestamp, agent_version_type, agent_version_semver)
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ SELECT
agent_version_type,
agent_version_semver
FROM requests
GROUP BY timestamp, agent_version_type, agent_version_semver
GROUP BY timestamp, agent_version_type, agent_version_semver;

0 comments on commit b744605

Please sign in to comment.