-
Notifications
You must be signed in to change notification settings - Fork 99
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
IGNITE-21558 Sql. Remove ExecutionContext dependency from ExpressionFactory #4959
base: main
Are you sure you want to change the base?
Conversation
7f1a200
to
7f0ec91
Compare
7f0ec91
to
0cb2e07
Compare
@@ -267,11 +265,13 @@ private final class AccumulatorWrapperImpl implements AccumulatorWrapper<RowT> { | |||
private final boolean distinct; | |||
|
|||
AccumulatorWrapperImpl( | |||
RowHandler<RowT> handler, |
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.
If captured context is no longer used, can this class be static?
@@ -57,7 +57,7 @@ | |||
* AccumulatorsFactory. | |||
* TODO Documentation https://issues.apache.org/jira/browse/IGNITE-15859 | |||
*/ | |||
public class AccumulatorsFactory<RowT> implements Supplier<List<AccumulatorWrapper<RowT>>> { | |||
public class AccumulatorsFactory<RowT> { |
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.
Let's fix javadoc and remove TODO
?)
@@ -142,26 +142,24 @@ private static Function<Object, Object> compileCast(IgniteTypeFactory typeFactor | |||
* TODO Documentation https://issues.apache.org/jira/browse/IGNITE-15859 | |||
*/ | |||
public AccumulatorsFactory( | |||
ExecutionContext<RowT> ctx, |
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.
Can we remove TODO?
https://issues.apache.org/jira/browse/IGNITE-21558
To be sure this patch doesn't affect performance, I've run a few benchmarks. Results as follow:
Thank you for submitting the pull request.
To streamline the review process of the patch and ensure better code quality
we ask both an author and a reviewer to verify the following:
The Review Checklist
- There is a single JIRA ticket related to the pull request.
- The web-link to the pull request is attached to the JIRA ticket.
- The JIRA ticket has the Patch Available state.
- The description of the JIRA ticket explains WHAT was made, WHY and HOW.
- The pull request title is treated as the final commit message. The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
Notes