ERROR:superset.sql_lab:Query 14: <class 'UnicodeDecodeError'>
See original GitHub issueA clear and concise description of what the bug is.
Expected results
show content correctly in preview tab under SQL lab
Actual results
clickhouse error: ‘utf-8’ codec can’t decode byte 0xcc in position 69: invalid continuation byte
Screenshots
If applicable, add screenshots to help explain your problem.
How to reproduce the bug
- add a SQLAlchemy URI of clickhouse in databases list with format mentioned in document ‘clickhouse://default@XXXXXXXX:8124/tutorial’ 2.choose a table with utf-8 character
- Preview tab show error ‘clickhouse error: ‘utf-8’ codec can’t decode byte 0xcc in position 69: invalid continuation byte’
Environment
(please complete the following information): deploy with docker
- superset version:
0.37.2
- python version:
3.7.9
- node.js version:
v4.2.6
Checklist
Make sure to follow these steps before submitting your issue - thank you!
- I have checked the superset logs for python stacktraces and included it here as text if there are any.
- I have reproduced the issue with at least the latest released version of superset.
- I have checked the issue tracker for the same issue and I haven’t found one similar.
Additional context
Add any other context about the problem here.
Log in container
Triggering query_id: 17 INFO:superset.views.core:Triggering query_id: 17 timeout can’t be used in the current context WARNING:superset.utils.core:timeout can’t be used in the current context signal only works in main thread Traceback (most recent call last): File “/usr/local/lib/python3.6/site-packages/superset/utils/core.py”, line 624, in enter signal.signal(signal.SIGALRM, self.handle_timeout) File “/usr/local/lib/python3.6/signal.py”, line 47, in signal handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler)) ValueError: signal only works in main thread ERROR:superset.utils.core:signal only works in main thread Traceback (most recent call last): File “/usr/local/lib/python3.6/site-packages/superset/utils/core.py”, line 624, in enter signal.signal(signal.SIGALRM, self.handle_timeout) File “/usr/local/lib/python3.6/signal.py”, line 47, in signal handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler)) ValueError: signal only works in main thread SQLite Database support for metadata databases will be removed in a future version of Superset. WARNING:superset.sql_lab:SQLite Database support for metadata databases will be removed in a future version of Superset. Query 17: Executing 1 statement(s) INFO:superset.sql_lab:Query 17: Executing 1 statement(s) Query 17: Set query to ‘running’ INFO:superset.sql_lab:Query 17: Set query to ‘running’ DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.100.47:8124 DEBUG:urllib3.connectionpool:http://192.168.100.47:8124 “POST /?user=default HTTP/1.1” 200 None DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.100.47:8124 DEBUG:urllib3.connectionpool:http://192.168.100.47:8124 “POST /?database=tutorial&user=default HTTP/1.1” 200 None DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.100.47:8124 DEBUG:urllib3.connectionpool:http://192.168.100.47:8124 “POST /?database=tutorial&user=default HTTP/1.1” 200 None Query 17: Running statement 1 out of 1 INFO:superset.sql_lab:Query 17: Running statement 1 out of 1 DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.100.47:8124 DEBUG:urllib3.connectionpool:http://192.168.100.47:8124 “POST /?query_id=47f0c45e-2e2a-11eb-a7a5-0242ac110002&database=tutorial&user=default HTTP/1.1” 200 None Query 17: <class ‘UnicodeDecodeError’> ERROR:superset.sql_lab:Query 17: <class ‘UnicodeDecodeError’>
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
@yahwang try setting engine_params to UTF-8
DATA -> DATABASES -> select clickhouse instance. editing Extra
Issue-Label Bot is automatically applying the label
#bug
to this issue, with a confidence of 0.81. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.