lehug commented on issue #15316:
URL: https://github.com/apache/superset/issues/15316#issuecomment-869401216
```
2021-06-28 06:33:06,052:WARNING:superset.connectors.sqla.models:Query SELECT
DATE(page_visit_at) AS __timestamp,
count(DISTINCT session_id) AS `COUNT_DISTINCT(session_id)`
FROM `ray-tool-test`.user_behavior_record
WHERE page_visit_at >= '2021-06-08 00:00:00.000000'
AND page_visit_at < '2021-06-23 00:00:00.000000'
AND ((code_project = '中文'))
GROUP BY DATE(page_visit_at)
LIMIT 500 on schema ray-tool-test failed
Traceback (most recent call last):
File "/app/superset/connectors/sqla/models.py", line 1508, in query
df = self.database.get_df(sql, self.schema, mutator=assign_column_label)
File "/app/superset/models/core.py", line 411, in get_df
self.db_engine_spec.execute(cursor, sqls[-1])
File "/app/superset/db_engine_specs/base.py", line 1085, in execute
raise cls.get_dbapi_mapped_exception(ex)
File "/app/superset/db_engine_specs/base.py", line 1083, in execute
cursor.execute(query)
File "/usr/local/lib/python3.7/site-packages/MySQLdb/cursors.py", line
188, in execute
query = query.encode(db.encoding)
File "/usr/local/lib/python3.7/encodings/cp1252.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_table)
UnicodeEncodeError: 'charmap' codec can't encode characters in position
278-279: character maps to <undefined>
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]