Skip to content
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

chinese characters within sqllab gets converted to question mark #2996

Closed
3 tasks done
timfeirg opened this issue Jun 20, 2017 · 7 comments
Closed
3 tasks done

chinese characters within sqllab gets converted to question mark #2996

timfeirg opened this issue Jun 20, 2017 · 7 comments

Comments

@timfeirg
Copy link
Contributor

timfeirg commented Jun 20, 2017

  • I have checked the superset logs for python stacktraces and included it here as text if 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

Environment

superset 18.4 and superset 18.5-alpha.3
python 3.6.1

SQLLab setup

I'm using pyhive, the sqlalchemy uri is hive://xxx.xxx.xxx.xxx:10000/?auth=NONE&username=hive

Expected results

this sql will execute correctly:

select * from rhllor_ods.subproduct where short_name like '%起泡%'

Actual results

while superset web server shows the correct sql:

2017-06-20 13:29:11,872:INFO:root:Parsing with sqlparse statement select * from rhllor_ods.subproduct where short_name like '%起泡%'

the actual sql that gets passed to superset worker is this:

[2017-06-20 13:29:12,139: INFO/Worker-1] Running query:
select * from rhllor_ods.subproduct where short_name like '%??%'

Steps to reproduce

run the above sql.

@timfeirg
Copy link
Contributor Author

I've read some related issues including #485, #2473
these issues seems only related to mysql backends, not pyhive.

@xrmx
Copy link
Contributor

xrmx commented Jun 20, 2017

If it's mysql related please show your connection string, are you using a proper encoding?

@timfeirg
Copy link
Contributor Author

I'm using pyhive @XRMS

@mistercrunch
Copy link
Member

I'm planning on testing whether using py3 helps with that.

@timfeirg
Copy link
Contributor Author

I'm using python 3, description has been updated. @mistercrunch

@fufjvnvnf
Copy link

fufjvnvnf commented Jul 14, 2017

I have a similar on my remote server, which uses Ubuntu, but my local MacOS machine does not have this issue. Both machines use python 3.6. I suspect this is a mysql related problem. I've already converted both machines' mysql tables to utf8 charset. This question mark issue for me also occur to columns of type Text, meaning for all description columns for datasources and columns, all chinese characters are converted to ???. All VARCHAR columns work with utf8 chars correctly though.

@mistercrunch
Copy link
Member

Notice: this issue has been closed because it has been inactive for 283 days. Feel free to comment and request for this issue to be reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants