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/16 21:34:45 UTC
[GitHub] [incubator-superset] mmuru commented on issue #6987: Add support
for postgres bytea type
mmuru commented on issue #6987: Add support for postgres bytea type
URL: https://github.com/apache/incubator-superset/pull/6987#issuecomment-473594594
@villebro: I tried to verify this PR fix, now both preview and sqllab run query throws the following exception
2019-03-16 14:25:34,661:ERROR:root:'utf-8' codec can't decode byte 0xac in position 0: invalid start byte
Traceback (most recent call last):
File "/Users/muru/muru-superset/superset/views/core.py", line 2613, in sql_json
encoding=None,
File "/Users/muru/muru-superset/venv367/lib/python3.6/site-packages/simplejson/__init__.py", line 399, in dumps
**kw).encode(obj)
File "/Users/muru/muru-superset/venv367/lib/python3.6/site-packages/simplejson/encoder.py", line 296, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/Users/muru/muru-superset/venv367/lib/python3.6/site-packages/simplejson/encoder.py", line 378, in iterencode
return _iterencode(o, 0)
File "/Users/muru/muru-superset/superset/utils/core.py", line 378, in pessimistic_json_iso_dttm_ser
return json_iso_dttm_ser(obj, pessimistic=True)
File "/Users/muru/muru-superset/superset/utils/core.py", line 360, in json_iso_dttm_ser
val = base_json_conv(obj)
File "/Users/muru/muru-superset/superset/utils/core.py", line 344, in base_json_conv
return str(obj.tobytes(), 'utf8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xac in position 0: invalid start byte
----------------------------------------------------------------
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