Add required type cast to verify output SQL
authorJakob Cornell <jakob+gpg@jcornell.net>
Tue, 19 Apr 2022 03:09:54 +0000 (22:09 -0500)
committerJakob Cornell <jakob+gpg@jcornell.net>
Tue, 19 Apr 2022 03:09:54 +0000 (22:09 -0500)
disk_jumble/src/disk_jumble/verify.py

index 0e8222680e651c5166de6bc50e32ebf97ee1fd03..3f762c98323ee411c49138e0fb74129255eed779 100644 (file)
@@ -371,7 +371,7 @@ def _do_verify(conn, disk_id: int, target_ranges: Optional[List[range]], disk_fi
                                                        select verify_id, ordinality - 1, %(disk_id)s, block_range
                                                        from
                                                                new_piece,
-                                                               unnest(%(ranges)s) with ordinality as block_range
+                                                               unnest(%(ranges)s::int8range[]) with ordinality as block_range
                                                )
                                        insert into diskjumble.verify_piece_fail (verify_id)
                                        select verify_id from new_piece