Add another type cast to v1 worklist query
authorJakob Cornell <jakob+gpg@jcornell.net>
Mon, 18 Apr 2022 02:38:34 +0000 (21:38 -0500)
committerJakob Cornell <jakob+gpg@jcornell.net>
Mon, 18 Apr 2022 02:38:34 +0000 (21:38 -0500)
disk_jumble/src/disk_jumble/verify.py

index 5f37c16992b9c0446af22e48ec5fe5ca06575714..063eef5d27b6886642dca178a707996abeef673a 100644 (file)
@@ -110,7 +110,7 @@ def _get_v1_worklist(conn, disk_id: int, block_ranges: List[NumericRange]) -> Li
                                                select relevant_slab.*, target_range * disk_blocks as target_span
                                                from
                                                        relevant_slab
-                                                       join unnest(%(block_ranges)s) as target_range
+                                                       join unnest(%(block_ranges)s::int8range[]) as target_range
                                                                on target_range && disk_blocks
                                        ),
                                        targeted_piece as (