betodealmeida commented on a change in pull request #5558: [sql lab] allow
EXPlAIN queries
URL:
https://github.com/apache/incubator-superset/pull/5558#discussion_r207617251
##########
File path: superset/sql_parse.py
##########
@@ -41,6 +41,13 @@ def limit(self):
def is_select(self):
return self._parsed[0].get_type() == 'SELECT'
+ def is_explain(self):
+ return self.sql.strip().upper().startswith('EXPLAIN')
+
+ def is_readonly(self):
+ """Pessimestic readonly, 100% sure statement won't mutate anything"""
Review comment:
`s/Pessimestic/Pessimistic/`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]