From c4a4ac4c4e976d83ccac28e6d4cd5d0c4d84a20a Mon Sep 17 00:00:00 2001 From: Jakob van Santen Date: Mon, 12 Feb 2024 20:57:55 +0100 Subject: [PATCH] lateral join bongo --- migrations/02_add_archive_count.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/02_add_archive_count.py b/migrations/02_add_archive_count.py index 5986bc9..dc39457 100644 --- a/migrations/02_add_archive_count.py +++ b/migrations/02_add_archive_count.py @@ -48,7 +48,7 @@ print(row, count) - blobs = Archive.select().where(Archive.c.count != None).subquery().lateral() + blobs = Archive.select().where(Archive.c.count != None).lateral() alerts = sa.select([Alert.c.avro_archive_id]).where( Alert.c.avro_archive_id == blobs.c.avro_archive_id )