Refactor: Pass context instead on individual arguments to operator#10413
Refactor: Pass context instead on individual arguments to operator#10413walterddr merged 12 commits intoapache:masterfrom
Conversation
|
@walterddr I have changed test classes as well and removed the older constructor. Let me know if you want me to revert that. |
Codecov Report
@@ Coverage Diff @@
## master #10413 +/- ##
============================================
- Coverage 64.25% 64.23% -0.02%
- Complexity 6059 6094 +35
============================================
Files 1997 2000 +3
Lines 108768 108966 +198
Branches 16620 16646 +26
============================================
+ Hits 69888 69994 +106
- Misses 33816 33877 +61
- Partials 5064 5095 +31
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 80 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
2943150 to
a28ebbb
Compare
...uery-runtime/src/main/java/org/apache/pinot/query/runtime/plan/OperatorExecutionContext.java
Outdated
Show resolved
Hide resolved
walterddr
left a comment
There was a problem hiding this comment.
lgtm mostly. please address the comments
pinot-query-runtime/src/main/java/org/apache/pinot/query/runtime/plan/PlanRequestContext.java
Outdated
Show resolved
Hide resolved
...uery-runtime/src/main/java/org/apache/pinot/query/runtime/plan/OperatorExecutionContext.java
Outdated
Show resolved
Hide resolved
...-query-runtime/src/main/java/org/apache/pinot/query/runtime/operator/MultiStageOperator.java
Outdated
Show resolved
Hide resolved
...t-query-runtime/src/main/java/org/apache/pinot/query/runtime/operator/AggregateOperator.java
Outdated
Show resolved
Hide resolved
pinot-query-runtime/src/main/java/org/apache/pinot/query/runtime/operator/FilterOperator.java
Show resolved
Hide resolved
...uery-runtime/src/main/java/org/apache/pinot/query/runtime/plan/OperatorExecutionContext.java
Outdated
Show resolved
Hide resolved
…ailboxReceiveOperator
...ry-runtime/src/main/java/org/apache/pinot/query/runtime/operator/MailboxReceiveOperator.java
Outdated
Show resolved
Hide resolved
...t-query-runtime/src/main/java/org/apache/pinot/query/runtime/operator/AggregateOperator.java
Outdated
Show resolved
Hide resolved
...ry-runtime/src/main/java/org/apache/pinot/query/runtime/operator/MailboxReceiveOperator.java
Outdated
Show resolved
Hide resolved
walterddr
left a comment
There was a problem hiding this comment.
lgtm mostly. please kindly take a look at the comments.
also several general points.
- let's not auto-reformat just to make the PR easier to review
- for the context object. can we put it as first argument?
5820651 to
f87d991
Compare
| // OpChainExecutionContext context = | ||
| // OperatorTestUtil.getContext(1, DEFAULT_SENDER_STAGE_ID, new VirtualServerAddress(_server)); |
There was a problem hiding this comment.
looks like commented out code. can you clean this up?
|
@KKcorps can you address this:
|
This will allow us to easily add more params to operators constructors in the future without major refactoring.