Skip to content

Commit

Permalink
align types properly
Browse files Browse the repository at this point in the history
  • Loading branch information
evanh committed Mar 21, 2024
1 parent 7b9f5d9 commit f019f71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
from typing import Sequence

from snuba.clickhouse.columns import (
AggregateFunction,
Array,
Column,
DateTime,
String,
UInt,
)
from snuba.clickhouse.columns import AggregateFunction, Column, DateTime, String, UInt
from snuba.clusters.storage_sets import StorageSetKey
from snuba.migrations import migration, operations, table_engines
from snuba.migrations.columns import MigrationModifiers as Modifiers
Expand All @@ -29,7 +22,7 @@ class Migration(migration.ClickhouseNodeMigration):
Column("tag_key", String()),
Column("timestamp", DateTime(modifiers=Modifiers(codecs=["DoubleDelta"]))),
Column("retention_days", UInt(16)),
Column("tag_values", AggregateFunction("groupUniqArray", [Array(String())])),
Column("tag_values", AggregateFunction("groupUniqArray", [String()])),
Column("count", AggregateFunction("sum", [Float(64)])),
]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
from typing import Sequence

from snuba.clickhouse.columns import (
AggregateFunction,
Array,
Column,
DateTime,
String,
UInt,
)
from snuba.clickhouse.columns import AggregateFunction, Column, DateTime, String, UInt
from snuba.clusters.storage_sets import StorageSetKey
from snuba.migrations import migration, operations
from snuba.migrations.columns import MigrationModifiers as Modifiers
Expand All @@ -27,7 +20,7 @@ class Migration(migration.ClickhouseNodeMigration):
Column("tag_key", String()),
Column("timestamp", DateTime(modifiers=Modifiers(codecs=["DoubleDelta"]))),
Column("retention_days", UInt(16)),
Column("tag_values", AggregateFunction("groupUniqArray", [Array(String())])),
Column("tag_values", AggregateFunction("groupUniqArray", [String()])),
Column("value", AggregateFunction("sum", [Float(64)])),
]
storage_set_key = StorageSetKey.GENERIC_METRICS_COUNTERS
Expand Down

0 comments on commit f019f71

Please sign in to comment.