Skip to content

Commit

Permalink
handle UUID type field (some database like postgres support UUID type…
Browse files Browse the repository at this point in the history
… field) (#889)
  • Loading branch information
tninja authored and mistercrunch committed Aug 8, 2016
1 parent 7c810db commit cb23362
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions caravel/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import json
import logging
import numpy
import uuid

import parsedatetime
import sqlalchemy as sa
Expand Down Expand Up @@ -282,6 +283,8 @@ def base_json_conv(obj):
return list(obj)
elif isinstance(obj, decimal.Decimal):
return float(obj)
elif isinstance(obj, uuid.UUID):
return str(obj)


def json_iso_dttm_ser(obj):
Expand Down

0 comments on commit cb23362

Please sign in to comment.