superset: Drill to detail gives error on some charts when using Druid.
Bug description
We recently upgraded Superset from version 2.1.1 to 3.1.1 and encountered errors with certain charts when attempting to access the drill-down detail window.
How to reproduce the bug
Error arises when attempting to open the drill-down detail popup window.
Screenshots/recordings
An example chart that gives error. It is a line chart with some advance analytic options.
Error shown on web
Superset log
Traceback (most recent call last):
File "/app/superset/connectors/sqla/models.py", line 1795, in query
df = self.database.get_df(sql, self.schema, mutator=assign_column_label)
File "/app/superset/models/core.py", line 612, in get_df
self.db_engine_spec.execute(cursor, sqls[-1])
File "/app/superset/db_engine_specs/base.py", line 1596, in execute
raise cls.get_dbapi_mapped_exception(ex) from ex
File "/app/superset/db_engine_specs/base.py", line 1594, in execute
cursor.execute(query)
File "/usr/local/lib/python3.9/site-packages/pydruid/db/api.py", line 62, in g
return f(self, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/pydruid/db/api.py", line 256, in execute
first_row = next(results)
File "/usr/local/lib/python3.9/site-packages/pydruid/db/api.py", line 362, in _stream_query
msg = "{error} ({errorClass}): {errorMessage}".format(**payload)
KeyError: 'errorClass'
Superset version
3.1.1
Python version
3.9
Node version
16
Browser
Chrome
Additional context
druid version: 27.0.0 pydruid: 0.6.5
Checklist
- I have searched Superset docs and Slack and didn’t find a solution to my problem.
- I have searched the GitHub issue tracker and didn’t find a similar bug report.
- I have checked Superset’s logs for errors and if I found a relevant Python stacktrace, I included it here as text in the “additional context” section.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 19 (15 by maintainers)
Commits related to this issue
- fix: formating error message raises error This is a quick shallow fix to address an error reported in Superset https://github.com/apache/superset/issues/27416 Someone should probably spend more time... — committed to druid-io/pydruid by mistercrunch 2 years ago
- fix: formating error message raises error (#322) This is a quick shallow fix to address an error reported in Superset https://github.com/apache/superset/issues/27416 Someone should probably spend... — committed to druid-io/pydruid by mistercrunch 2 years ago
This issue still exists on 4.0.0 fyi
It occurs only on druid datasources. Unfortunately I’m not able to reproduce it with example data.