gorcurek edited a comment on issue #13378:
URL: https://github.com/apache/superset/issues/13378#issuecomment-787907437


   Same happened to us while **GLOBAL_ASYNC_QUERIES** is turned on. We are 
running Impala with impersonation, and the problem seemed to be that when 
function _get_sqla_engine()_ in _models/core.py_ is called, 
**self.impersonate_user** is **True**, but the argument **user_name** is None. 
The username is then attempted to get extracted from _get_effective_username()_ 
in _models/core.py_, but that fails because: g.user is not an attribute of g 
(AttributeError: '_AppCtxGlobals' object has no attribute 'user').


----------------------------------------------------------------
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]

Reply via email to