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
If a query on SQLlab is used to create a slice by: Sql Lab -> Write Query -> Save -> Explore -> Create Slice -> Saved
Lets say the query used is: SELECT name from table;
And the slice is called Details_Chart
Work great to this point.
Now, if we want to modify the query to SELECT name, address from table; Sql Lab -> Saved Queries -> Edit Query -> Update the Query -> Save (UPDATE)
If we go slice to Details_Chart it will only show name as available column and not name & address
However, If we access Edit Dataset via the Explore Slice editor, it shows the updated SQL query ie SELECT name, address from table;
Expected results
It would be great if the update to the Sql Lab query pushed down to entities that use it. Much like how the Legacy editor already does.
Alternatives
For now I use the following methods to solve this: #1
Go to Sources -> Tables -> Remove the SQL LAB VIEW Filter -> Hit refresh
Navigate to the table you want to edit and click on edit record
Update the SQL query under Detail -> SQL
Then click on the Column tab and add new column
Hit save.
Navigate to the chart and you will find the column available.
Closing this since the issue is on an unsupported version of Superset. If this issue still exists in supported versions (1.5.x, 2.0.x) then please let me know! We can either re-open this issue or open a new one. Thank you for the report nonetheless!
How to reproduce the bug
If a query on SQLlab is used to create a slice by:
Sql Lab -> Write Query -> Save -> Explore -> Create Slice -> Saved
Lets say the query used is:
SELECT name from table;
And the slice is called Details_Chart
Work great to this point.
Now, if we want to modify the query to
SELECT name, address from table;
Sql Lab -> Saved Queries -> Edit Query -> Update the Query -> Save (UPDATE)
If we go slice to Details_Chart it will only show
name
as available column and notname
&address
However, If we access Edit Dataset via the Explore Slice editor, it shows the updated SQL query ie
SELECT name, address from table;
Expected results
It would be great if the update to the Sql Lab query pushed down to entities that use it. Much like how the Legacy editor already does.
Alternatives
For now I use the following methods to solve this:
#1
#2
Environment
(please complete the following information):
0.37 to 0.38
3.7
Checklist
Make sure to follow these steps before submitting your issue - thank you!
The text was updated successfully, but these errors were encountered: