Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

fix: `generalize-controller-desired-states-v2` migration error (#1178)

Aman Agarwal69ed6f02e266
diff --git a/src/client/src/clickhouse/migrations/create-controller-desired-states-migration.ts b/src/client/src/clickhouse/migrations/create-controller-desired-states-migration.ts
index ab1cbcac..351f37c5 100644
--- a/src/client/src/clickhouse/migrations/create-controller-desired-states-migration.ts
+++ b/src/client/src/clickhouse/migrations/create-controller-desired-states-migration.ts
@@ -28,7 +28,7 @@ export default async function CreateControllerDesiredStatesTableMigration(
cluster_id,
argMax(desired_instrumentation_status, updated_at) AS latest_instrumentation_status,
argMax(desired_agent_status, updated_at) AS latest_agent_status,
- max(updated_at) AS latest_updated_at
+ max(updated_at)
FROM ${CONTROLLER_SERVICES_TABLE}
FINAL
WHERE workload_key != ''
diff --git a/src/client/src/clickhouse/migrations/generalize-controller-desired-states-migration.ts b/src/client/src/clickhouse/migrations/generalize-controller-desired-states-migration.ts
index 28075361..86f8f0d2 100644
--- a/src/client/src/clickhouse/migrations/generalize-controller-desired-states-migration.ts
+++ b/src/client/src/clickhouse/migrations/generalize-controller-desired-states-migration.ts
@@ -35,7 +35,7 @@ export default async function GeneralizeControllerDesiredStatesMigration(
'instrumentation' AS feature,
argMax(desired_instrumentation_status, updated_at) AS desired_status,
'{}' AS config,
- max(updated_at) AS updated_at
+ max(updated_at)
FROM openlit_controller_desired_states
FINAL
WHERE workload_key != ''
@@ -52,7 +52,7 @@ export default async function GeneralizeControllerDesiredStatesMigration(
'agent' AS feature,
argMax(desired_agent_status, updated_at) AS desired_status,
'{}' AS config,
- max(updated_at) AS updated_at
+ max(updated_at)
FROM openlit_controller_desired_states
FINAL
WHERE workload_key != ''