Skip to content

Commit

Permalink
fix: return value for model quality regression to json (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteZamboni authored Jul 8, 2024
1 parent 65f4f65 commit ed4ffd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spark/jobs/current_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ def main(
complete_record["DATA_QUALITY"] = data_quality.model_dump_json(
serialize_as_any=True
)
complete_record["MODEL_QUALITY"] = model_quality
complete_record["MODEL_QUALITY"] = orjson.dumps(model_quality).decode(
"utf-8"
)

schema = StructType(
[
Expand Down

0 comments on commit ed4ffd6

Please sign in to comment.