-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix TestAggregateBinding #6065
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
Fix TestAggregateBinding #6065
Conversation
nastra
left a comment
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.
thanks for following up with this, I left one comment around generic type paramter usage
| public class TestAggregateBinding { | ||
| private static final List<Expression.Operation> AGGREGATES = | ||
| Arrays.asList(Expression.Operation.COUNT, Expression.Operation.MAX, Expression.Operation.MIN); | ||
| private static final List<UnboundAggregate> list = |
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.
I noticed that in this entire file we're using UnboundAggregate without specifying a generic type. I think it would be good to replace all UnboundAggregate by UnboundAggregate<String>? Same for BoundAggregate, which should probably be BoundAggregate<String, String>
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.
Fixed. Thanks! I accidentally put String type in the factory methods. It should be T. I fixed that.
nastra
left a comment
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.
LGTM thanks for fixing. I think the only other thing left is adjusting the ExpressionParser + TestExpressionParser
|
@rdblue Could you please take a look when you have a moment? Thanks a lot! |
|
Thanks, @huaxingao! |
(cherry picked from commit bcd1518)
Follow up PR to address a few comments: