You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "SyXuan (via GitHub)" <gi...@apache.org> on 2023/04/03 21:24:21 UTC
[GitHub] [superset] SyXuan opened a new issue, #23568: type object 'Query' has no attribute 'query_class'
SyXuan opened a new issue, #23568:
URL: https://github.com/apache/superset/issues/23568
Unexpected error happened when create charts
`type object 'Query' has no attribute 'query_class'`
It may be the issue with the `sqlalchemy` version
#### How to reproduce the bug
1. Create Line chart or heapmap
2. Click UPDATE CHART
### Expected results
Create a chart
### Actual results
Unexpected error
`type object 'Query' has no attribute 'query_class'`
```
Traceback (most recent call last):
File "/app/superset/viz.py", line 580, in get_df_payload
df = self.get_df(query_obj)
File "/app/superset/viz.py", line 291, in get_df
self.results = self.datasource.query(query_obj)
File "/usr/local/lib/python3.8/site-packages/flask_sqlalchemy/__init__.py", line 552, in __get__
return type.query_class(mapper, session=self.sa.session())
AttributeError: type object 'Query' has no attribute 'query_class'
```
#### Screenshots
If applicable, add screenshots to help explain your problem.
### Environment
(please complete the following information):
- browser type and version: Chrome 111.0.5563.147
- superset version: docker `apache/superset:latest-dev`
- python version: `3.8.16`
- node.js version: `node -v`
- any feature flags active: docker-compose-non-dev.yml
### Checklist
Make sure to follow these steps before submitting your issue - thank you!
- [v] I have checked the superset logs for python stacktraces and included it here as text if there are any.
- [v] I have reproduced the issue with at least the latest released version of superset.
- [v] I have checked the issue tracker for the same issue and I haven't found one similar.
### Additional context
Add any other context about the problem here.
--
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: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] type object 'Query' has no attribute 'query_class' [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #23568:
URL: https://github.com/apache/superset/issues/23568#issuecomment-1962099467
I am not able to reproduce this... both charts are working fine in 3.x
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] type object 'Query' has no attribute 'query_class' [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #23568: type object 'Query' has no attribute 'query_class'
URL: https://github.com/apache/superset/issues/23568
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] LahmerIlyas commented on issue #23568: type object 'Query' has no attribute 'query_class'
Posted by "LahmerIlyas (via GitHub)" <gi...@apache.org>.
LahmerIlyas commented on issue #23568:
URL: https://github.com/apache/superset/issues/23568#issuecomment-1502088991
I tried to reproduce this issue using the `Time-series Line Chart` on my local development setup but couldn't.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org