-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[multistage] run PhysicalPlanVisitor on leaf for residual nodes #11843
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
[multistage] run PhysicalPlanVisitor on leaf for residual nodes #11843
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11843 +/- ##
============================================
+ Coverage 61.40% 61.45% +0.04%
+ Complexity 1145 207 -938
============================================
Files 2378 2380 +2
Lines 128851 128926 +75
Branches 19926 19942 +16
============================================
+ Hits 79127 79232 +105
+ Misses 44002 43949 -53
- Partials 5722 5745 +23
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 12 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
79a7a69 to
36546bb
Compare
connected with QueryRunner refactor and simplify leaf stage compilation fix linter and further refactoring simplified visitor and context class, add javadoc fix server plan request gen issues
36546bb to
ca4380b
Compare
5ccf4e2 to
c7003bb
Compare
| // put a constant false expression | ||
| Expression constantFalseExpr = RequestUtils.getFunctionExpression(FilterKind.CONSTANT.name()); | ||
| constantFalseExpr.getFunctionCall().setOperands(Arrays.asList(leftExpr, | ||
| RequestUtils.getLiteralExpression(false))); | ||
| expressions.add(constantFalseExpr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not actually the right way to go b/c this basically requires the query to be written in the format of
SELECT ... WHERE CONSTANT(someCol, false)
instead of the right way:
SELECT ... WHERE CONSTANT(false)
or
SELECT ... WHERE false
however, it will be a bit more complex to make a constant supported Predicate b/c it assumes the LHS to be an identifier in most of the pinot-server code.
|
closing in favor of #11937 |
) currently pinotQuery only supports limited amount of PlanNodes this means an Exchange must be inserted in order to ensure the leaf stage can be converted into a PinotQuery. However this is a misuse of Exchange This PR plans to split the ServerRequest planning into 2 stages - first plan as much as possible into PinotQuery - for any remainder nodes that cannot be planned into PinotQuery, will be run together with the LeafStageTransferrableBlockOperator as the input locally. This PR also follows up with the refactoring from #11439. - removed server plan request context entirely and replace it with fields used by server side. - extends OpChainExecutionContext with additional info from ServerOpChainExecutionContext - break down steps from ServerPlanRequestUtils.build method into 3 parts --> - compile pinot query - convert pinot query into instance requests (based on physical segments) - construct an OpChain that sits on top Context: alternative PR to #11843 --------- Co-authored-by: Rong Rong <[email protected]>
currently pinotQuery only supports limited amount of PlanNodes
this means an Exchange must be inserted in order to ensure the leaf stage can be converted into a PinotQuery. However this is a misuse of Exchange
This PR plans to split the ServerRequest planning into 2 stages
This PR also follows up with the refactoring from #11439.
Follow up
It is not easy to test the server physical plan gen, so this PR only utilize existing test cases, and more comprehensive tests are done in #11831