diff --git a/snuba/snuba_migrations/generic_metrics/0031_counters_meta_table.py b/snuba/snuba_migrations/generic_metrics/0031_counters_meta_table.py index b41ac6ccfd..397066fc78 100644 --- a/snuba/snuba_migrations/generic_metrics/0031_counters_meta_table.py +++ b/snuba/snuba_migrations/generic_metrics/0031_counters_meta_table.py @@ -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 @@ -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)])), ] diff --git a/snuba/snuba_migrations/generic_metrics/0032_counters_meta_table_mv.py b/snuba/snuba_migrations/generic_metrics/0032_counters_meta_table_mv.py index 74a5c70ddb..a49291bdb5 100644 --- a/snuba/snuba_migrations/generic_metrics/0032_counters_meta_table_mv.py +++ b/snuba/snuba_migrations/generic_metrics/0032_counters_meta_table_mv.py @@ -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 @@ -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