From e68fe7660d9a23e92b0c8c1430cede338948345c Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Mon, 18 Apr 2022 22:09:54 -0500 Subject: [PATCH] Add required type cast to verify output SQL --- disk_jumble/src/disk_jumble/verify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk_jumble/src/disk_jumble/verify.py b/disk_jumble/src/disk_jumble/verify.py index 0e82226..3f762c9 100644 --- a/disk_jumble/src/disk_jumble/verify.py +++ b/disk_jumble/src/disk_jumble/verify.py @@ -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 -- 2.30.2