You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/03/13 21:57:22 UTC

[GitHub] [incubator-superset] john-bodley commented on a change in pull request #6987: Add support for postgres bytea type

john-bodley commented on a change in pull request #6987: Add support for postgres bytea type
URL: https://github.com/apache/incubator-superset/pull/6987#discussion_r265348160
 
 

 ##########
 File path: superset/utils/core.py
 ##########
 @@ -340,6 +340,8 @@ def base_json_conv(obj):
         return str(obj)
     elif isinstance(obj, timedelta):
         return str(obj)
+    elif isinstance(obj, memoryview):
+        return str(obj.tobytes(), 'utf8')
 
 Review comment:
   Note in Python 3 the default encoding for [`str`](https://docs.python.org/3/library/stdtypes.html#str) is `utf-8`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org