yeachan153 opened a new issue, #21907:
URL: https://github.com/apache/superset/issues/21907

   In charts, editing the query of a virtual dataset and clicking `Sync columns 
from source` in the columns page does not result in the columns being updated. 
Superset claims that the `Metadata has been synced`, which is incorrect.
   
   In order to actually sync from the source, the dataset must first be saved. 
After saving, going back to the `edit dataset` menu and clicking `Sync columns 
from source` correctly retrieves the new/removed/modified columns
   
   #### How to reproduce the bug
   
   1. Create a virtual dataset with a custom query, and create a chart
   2. Click `Edit Dataset`
   3. Change the SQL to add/remove/modify columns
   4. Click the lock to lock the changes to the query
   5. In the columns tab, click `Sync columns from source`
   
   ### Expected results
   
   Metadata information should be synced. This includes showing any 
added/removed/modified columns correctly.
   
   ### Actual results
   
   Changes to the columns will not be reflected, but Superset will show:
   
![image](https://user-images.githubusercontent.com/30076090/197194882-26edfd00-9d73-416c-82c6-6708a5115047.png)
   
   To get the desirable result, the virtual dataset must first be saved. Then, 
click `Edit Dataset` again and click `Sync columns from source`. This will 
actually refresh the metadata.
   
   ### Environment
   
   - browser type and version: `Chrome (106.0.5249.119)`
   - superset version: `2.0.0`
   - python version: `3.8.12`
   
   ### Checklist
   
   Make sure to follow these steps 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.

To unsubscribe, e-mail: [email protected]

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