Skip to content

Fix race condition when fetching results in SQL Lab (#7198) - #7242

Merged
michellethomas merged 1 commit into
apache:masterfrom
michellethomas:sqllab_query_bug_cherry
Apr 8, 2019
Merged

michellethomas merged 1 commit into
apache:masterfrom
michellethomas:sqllab_query_bug_cherry

Conversation

@michellethomas

Copy link
Copy Markdown
Contributor
  • Fix race condition when fetching results in SQL Lab

  • Fix lint

(cherry picked from commit ca6a73b)

SUMMARY

Cherry picking change that got into lyftga and is impacting superset users running sql queries. Queries get to 100% and don't return results because the query is marked as successful but has no resultsKey.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A

TEST PLAN

Run multiple queries in a row with large payloads
Confirm that they hit 100% and return results

ADDITIONAL INFORMATION
[ ] Has associated issue:
[ ] Changes UI
[ ] Requires DB Migration. Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API
[x] Fixes bug
[ ] Refactors code
[ ] Adds test(s)
REVIEWERS

@john-bodley @graceguo-supercat @betodealmeida @xtinec

* Fix race condition when fetching results in SQL Lab

* Fix lint

(cherry picked from commit ca6a73b)
@michellethomas michellethomas added !deprecated-label:bug Deprecated label - Use #bug instead v0.31 sqllab Namespace | Anything related to the SQL Lab labels Apr 8, 2019
@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #7242 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7242      +/-   ##
==========================================
- Coverage   64.63%   64.62%   -0.01%     
==========================================
  Files         422      422              
  Lines       20595    20593       -2     
  Branches     2253     2253              
==========================================
- Hits        13311    13309       -2     
  Misses       7161     7161              
  Partials      123      123
Impacted Files Coverage Δ
superset/views/core.py 74.92% <ø> (ø) ⬆️
superset/sql_lab.py 76.37% <100%> (-0.26%) ⬇️

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 e767e4d...93bdc74. Read the comment docs.

@michellethomas
michellethomas merged commit 52473c5 into apache:master Apr 8, 2019
@michellethomas
michellethomas deleted the sqllab_query_bug_cherry branch April 8, 2019 22:09
michellethomas added a commit that referenced this pull request Apr 8, 2019
* Fix race condition when fetching results in SQL Lab

* Fix lint

(cherry picked from commit ca6a73b)
(cherry picked from commit 52473c5)
@sadpandajoe sadpandajoe added #bug Bug report and removed !deprecated-label:bug Deprecated label - Use #bug instead labels Mar 18, 2026
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
…ache#7242)

* Fix race condition when fetching results in SQL Lab

* Fix lint

(cherry picked from commit ca6a73b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

#bug Bug report sqllab Namespace | Anything related to the SQL Lab v0.31

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants