Skip to content

Commit 16e1c0a

Browse files
committed
[Python] Avoid crash in json.dump for Decimal values
Signed-off-by: Mihai Budiu <mbudiu@feldera.com>
1 parent 19f8a3e commit 16e1c0a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python/feldera/testutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ def validate_view(pipeline: Pipeline, view: ViewSpec):
196196

197197
if extra_rows:
198198
log("Extra rows in Feldera output, but not in the ad hoc query output")
199-
log(json.dumps(extra_rows))
199+
log(json.dumps(extra_rows, default=str))
200200

201201
if missing_rows:
202202
log("Extra rows in the ad hoc query output, but not in Feldera output")
203-
log(json.dumps(missing_rows))
203+
log(json.dumps(missing_rows, default=str))
204204
except Exception as e:
205205
log(f"Error querying view '{view.name}': {e}")
206206
log(f"Ad-hoc Query: {view_query}")

0 commit comments

Comments
 (0)