deity-bram opened a new issue #7699: Druid connector model fails URL: https://github.com/apache/incubator-superset/issues/7699 After setting up a connection between superset and a druid cluster. (scan new datasources works fine), datasources are created, but when i want to explore them, or make a chart on them. I get an 500 - Internal Server Error. AttributeError: 'NoneType' object has no attribute 'data' ``` Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise raise value File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/home/superset/superset/models/core.py", line 1149, in wrapper value = f(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/security/decorators.py", line 123, in wraps return f(self, *args, **kwargs) File "/home/superset/superset/views/core.py", line 1383, in explore 'datasource': datasource.data, File "/home/superset/superset/connectors/base/models.py", line 192, in data 'database': self.database.data, # pylint: disable=no-member AttributeError: 'NoneType' object has no attribute 'data' ``` ### Expected results Being able to use a druid datasource like the normal SQL ones ### Actual results HTTP 500 Error #### How to reproduce the bug 1. Go to 'Sources' 2. Click on 'Druid cluster' 3. press 'Add new record' 4. provide correct name and port. press 'Save' 5. Go to 'Sources' 6. press Scan new datasources 7. click on one of the found datasources Get the error ### Environment - superset version: Superset 0.999.0dev - python version: `Python 3.6.8` - node.js version: `v10.15.3` - npm version: `6.4.1` - druid version ` apache-druid-0.14.2-incubating` ### 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] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
