-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SQL Lab] (sqlite3.ProgrammingError) #3550
Comments
Which version of python is this? |
@xrmx Python 2.7.9 |
Please post the full backtrace from server logs |
|
I'm guessing you have unicode characters in your query? |
@mistercrunch sql: |
@xrmx @mistercrunch |
Have you tried python 3? |
Python 3 will likely take care of these unicode related issues. Also I would recommend avoiding sqlite outside of a sandbox environment. This is still a bug though. |
Notice: this issue has been closed because it has been inactive for 193 days. Feel free to comment and request for this issue to be reopened. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
Make sure these boxes are checked before submitting your issue - thank you!
Superset version
Superset 0.19.1
Expected results
get results data from remote mysql server
Actual results
ProgrammingError: (sqlite3.ProgrammingError) You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings. [SQL: u'UPDATE "query" SET tmp_table_name=?, status=?, error_message=?, changed_on=? WHERE "query".id = ?'] [parameters: (None, u'failed', "unsupported format character '\xe5' (0xffffffe5) at index 74", '2017-09-29 08:06:59.720489', 559)]
Steps to reproduce
run the fllowing sql from sql editor:
SELECT t_tm_article_id,title,subscribe_id FROM t_article WHERE title like '%品牌刀具%' limit 1'
The text was updated successfully, but these errors were encountered: