shashisingh opened a new issue #10200:
URL: https://github.com/apache/incubator-superset/issues/10200
I was running version 0.35.2 of superset in a docker container. I had
created a druid database instance on that setup. I had created a chart (part of
a dashboard) that queries druid database through SQL interface. Recently I
upgraded the build to the latest version (master latest as of today). I ran
"superset db upgrade" followed by "superset init" commands after the upgrade.
After this I try to load the dashboard (and the chart) that connected to druid
database.
### Expected results
The chart should show valid content.
### Actual results
I see "Empty query?" error instead of actual chart content.
Stack Trace is shown below ---
Exception: Empty query?
ERROR:superset.viz:Empty query?
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/superset/viz.py", line 463,
in get_df_payload
df = self.get_df(query_obj)
File "/usr/local/lib/python3.6/site-packages/superset/viz.py", line 240,
in get_df
self.results = self.datasource.query(query_obj)
File
"/usr/local/lib/python3.6/site-packages/superset/connectors/sqla/models.py",
line 1128, in query
query_str_ext = self.get_query_str_extended(query_obj)
File
"/usr/local/lib/python3.6/site-packages/superset/connectors/sqla/models.py",
line 655, in get_query_str_extended
sqlaq = self.get_sqla_query(**query_obj)
File
"/usr/local/lib/python3.6/site-packages/superset/connectors/sqla/models.py",
line 798, in get_sqla_query
raise Exception(_("Empty query?"))
Exception: Empty query?
### Environment
- superset version: 0.999.0dev
- python version: 3.6.10
- node.js version: 13.6.0
- npm version: 6.13.4
### Checklist
Make sure these boxes are checked before submitting your issue - thank you!
- [X] I have checked the superset logs for python stacktraces and included
it here as text if there are any.
- [X] I have reproduced the issue with at least the latest released version
of superset.
- [X] I have checked the issue tracker for the same issue and I haven't
found one similar.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]