-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Preprocess SQL Lab query prior to checking syntax #4686
Conversation
Syntax checking doesn't work if jinja templates haven't been prerendered. Also remove unreachable return statement. Fixes #4288.
Testing for this would require calling sql_lab.execute_query(), as the error arises when syntax checking happens prior to calling the template processor. Currently there doesn't seem to be a unit test for this function. If the maintainers see the need for one for this specific case, I can add one. |
Codecov Report
@@ Coverage Diff @@
## master #4686 +/- ##
=========================================
+ Coverage 71.4% 71.4% +<.01%
=========================================
Files 190 190
Lines 14935 14934 -1
Branches 1102 1102
=========================================
Hits 10664 10664
+ Misses 4268 4267 -1
Partials 3 3
Continue to review full report at Codecov.
|
Syntax checking doesn't work if jinja templates haven't been prerendered. Also remove unreachable return statement. Fixes apache#4288. (cherry picked from commit 4ec8258)
Syntax checking doesn't work if jinja templates haven't been prerendered. Also remove unreachable return statement. Fixes apache#4288. (cherry picked from commit 4ec8258)
Syntax checking doesn't work if jinja templates haven't been prerendered. Also remove unreachable return statement. Fixes apache#4288. (cherry picked from commit 4ec8258)
Syntax checking doesn't work if jinja templates haven't been prerendered. Also remove unreachable return statement. Fixes apache#4288.
Syntax checking doesn't work if jinja templates haven't been prerendered. Also remove unreachable return statement. Fixes apache#4288.
Syntax checking doesn't work if jinja templates haven't been prerendered.
Also remove unreachable return statement. Fixes #4288.