ValentinC-BR opened a new issue #13865: URL: https://github.com/apache/superset/issues/13865
I can't use "sync column from source" on virtual datasets whose query doesn't start with SELECT. ### Expected results Whatever my query is, I should be able to sync column from source for my virtual datasets. ### Actual results When my query starts with SELECT, there's no problem. When my query start with "WITH" statements : * I can create a virtual dataset using the "EXPLORE" feature in SQL Lab * I can't update it and sync columns from source : I get the "ONLY SELECT STATEMENTS ARE ALLOWED" error I'm forced to re-run the query in SQL Lab, and save is over the previous virtual dataset What's more, contrary to the previous version of superset (0.x.x), the time columns are not detected, but this seems to be a different issue. #### Screenshots  #### How to reproduce the bug 1. Run a query in SQL Lab starting with a "WITH" statement 2. Click on Explore and create a virtual dataset 3. Go to dataset, update the query (you can add/remove/modify a column, anything works, even a mere filter) 4. Save 5. Click on 'Sync Columns from source' (it should get your new column list) 6. See error ### Environment (please complete the following information): - superset version: 1.0.1 - python version: 3.7.9 - node.js version: doesn't apply, I run on Kubernetes, using gunicorn as server - source : Athena ### 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. - [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. ### Additional context Nothing to report -- 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]
