fix(sqla): allow series limit without subquery support#16896
Conversation
Codecov Report
@@ Coverage Diff @@
## master #16896 +/- ##
==========================================
- Coverage 77.02% 76.85% -0.17%
==========================================
Files 1021 1021
Lines 54754 54754
Branches 7470 7470
==========================================
- Hits 42173 42080 -93
- Misses 12335 12428 +93
Partials 246 246
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
etr2460
left a comment
There was a problem hiding this comment.
lgtm, let's merge to fix the regression and add tests in a follow up?
SGTM - I'll add a follow-up test soon 👍 |
SUMMARY
The recent PR #16660 broke series limiting for databases that don't support subqueries (Pinot and Solr). This moves the check for
allows_subqueriesdown one level to the section where the subquery is constructed, thus allowing for a prequery to populate the series values to limit by if subqueries/joins aren't supported.Note, however, that before #16660 we weren't checking for support for subqueries when constructing the limiting subquery. But since there are no db engine specs that allow joins but don't support subqueries, adding the check for subquery support shouldn't have any practical implications right now.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION