Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sql lab] allow EXPlAIN queries #5558

Merged
merged 2 commits into from Aug 3, 2018

Conversation

mistercrunch
Copy link
Member

Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I like a simple PR that requires very little... explaining.

return self.sql.strip().upper().startswith('EXPLAIN')

def is_readonly(self):
"""Pessimestic readonly, 100% sure statement won't mutate anything"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Pessimestic/Pessimistic/

@codecov-io
Copy link

codecov-io commented Aug 3, 2018

Codecov Report

Merging #5558 into master will increase coverage by 0.11%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5558      +/-   ##
==========================================
+ Coverage   63.14%   63.26%   +0.11%     
==========================================
  Files         351      351              
  Lines       22240    22262      +22     
  Branches     2466     2470       +4     
==========================================
+ Hits        14044    14083      +39     
+ Misses       8181     8164      -17     
  Partials       15       15
Impacted Files Coverage Δ
superset/sql_parse.py 99.16% <100%> (+0.02%) ⬆️
superset/sql_lab.py 71.77% <100%> (ø) ⬆️
...uperset/assets/src/dashboard/components/Header.jsx 58.51% <0%> (-5.45%) ⬇️
superset/views/base.py 66.89% <0%> (-0.68%) ⬇️
superset/views/core.py 73.98% <0%> (-0.11%) ⬇️
...src/dashboard/components/HeaderActionsDropdown.jsx 81.63% <0%> (ø) ⬆️
superset/legacy.py 18.3% <0%> (ø) ⬆️
superset/assets/src/dashboard/util/constants.js 100% <0%> (ø) ⬆️
...ssets/src/dashboard/containers/DashboardHeader.jsx 100% <0%> (ø) ⬆️
superset/models/core.py 87.09% <0%> (+0.04%) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e1f4db8...8258f21. Read the comment docs.

@mistercrunch mistercrunch merged commit 9331cf7 into apache:master Aug 3, 2018
@mistercrunch mistercrunch deleted the explain_plan branch August 3, 2018 22:33
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
* [sql lab] allow EXPlAIN queries

closes andialbrecht/sqlparse#421

* typo
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SqlLab cannot run EXPLAIN statements without allowing DML
3 participants