michellethomas commented on pull request #11236:
URL: 
https://github.com/apache/incubator-superset/pull/11236#issuecomment-710669738


   @villebro It looks like the error `Virtual dataset query must be read-only` 
is sometimes throwing when a query is actually readonly. Someone reported a 
query that included a WITH statement as having this error. The query is just a 
select query so I'm guessing that the WITH is getting misinterpreted as not 
read-only (but I haven't looked into it too much). 
   
   The query structure is something like
   
   WITH data AS (
   select column_1 from db.table_name
   ),
   SELECT sum(column_1) AS total
   FROM data


----------------------------------------------------------------
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]

Reply via email to