Skip to content

Commit

Permalink
Add decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
svdimchenko committed Apr 18, 2024
1 parent 354e826 commit 3ca8a47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/dbt/parser/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def extended_msgpack_encoder(obj):
datetime_bytes = msgpack.ExtType(2, obj.isoformat().encode())
return datetime_bytes
elif type(obj) is agate:
agate_bytes = msgpack.ExtType(3, obj.__str__().encode())
agate_bytes = msgpack.ExtType(3, "".encode())
return agate_bytes

return obj
Expand All @@ -179,6 +179,8 @@ def extended_msgpack_decoder(code, data):
elif code == 2:
dt = datetime.datetime.fromisoformat(data.decode())
return dt
elif code == 3:
return ""
else:
return msgpack.ExtType(code, data)

Expand Down

0 comments on commit 3ca8a47

Please sign in to comment.