You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have an issue reported from our user where chart fails when adding a column using custom SQL. The case we have seen is a column with type BIGINT. The user was trying to do some simple calculation like column_name/6000, however, it throws an error both on the UI and in the backend server where it says Expected text or file-like object, got <class 'dict'>. This should not be chart type specific and we have reproduced this error with both histogram and data table.
This functionality was working as expected before upgrading to 2.0.0, so it is likely to be a regression. And I can reproduce this error in the latest master branch as of 10/03/2022 3:30PM.
How to reproduce the bug
Go to chart, create a new chart
When adding a new column, select custom SQL, and put any valid SQL statement
Click on save, and update chart
See error
Expected results
Chart updated with custom SQL.
Actual results
Fails due to Expected text or file-like object, got <class 'dict'>
Screenshots
Environment
(please complete the following information):
browser type and version: not browser specific
superset version: 2.0.0, can be reproduced with latest commit on master branch as of 10/03/2022 3:30PM PST
python version: 3.8
node.js version: N/A
any feature flags active:
Checklist
Make sure to follow these steps before submitting your issue - thank you!
I have checked the superset logs for python stacktraces and included it here as text if there are any.
I have reproduced the issue with at least the latest released version of superset.
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.
The text was updated successfully, but these errors were encountered:
I did little digging, and looks like there is issue in sqla/models.py/SqlaTable/get_sqla_query function.
and attached patch would be helpful to fix it, if no one takes this on I will take it later when I get some time.
We have an issue reported from our user where chart fails when adding a column using custom SQL. The case we have seen is a column with type BIGINT. The user was trying to do some simple calculation like
column_name/6000
, however, it throws an error both on the UI and in the backend server where it saysExpected text or file-like object, got <class 'dict'>
. This should not be chart type specific and we have reproduced this error with both histogram and data table.This functionality was working as expected before upgrading to 2.0.0, so it is likely to be a regression. And I can reproduce this error in the latest master branch as of 10/03/2022 3:30PM.
How to reproduce the bug
Expected results
Chart updated with custom SQL.
Actual results
Fails due to
Expected text or file-like object, got <class 'dict'>
Screenshots
Environment
(please complete the following information):
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: