Skip to content

Conversation

@huaxingao
Copy link
Contributor

@huaxingao huaxingao commented Oct 27, 2022

Copy link
Contributor

@nastra nastra left a 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 =
Copy link
Contributor

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>

Copy link
Contributor Author

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.

Copy link
Contributor

@nastra nastra left a 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

@huaxingao
Copy link
Contributor Author

@rdblue Could you please take a look when you have a moment? Thanks a lot!

@rdblue rdblue merged commit bcd1518 into apache:master Nov 6, 2022
@rdblue
Copy link
Contributor

rdblue commented Nov 6, 2022

Thanks, @huaxingao!

@huaxingao
Copy link
Contributor Author

Thanks! @rdblue @nastra @Fokko

@huaxingao huaxingao deleted the follow-up branch November 6, 2022 23:31
zhongyujiang pushed a commit to zhongyujiang/iceberg that referenced this pull request Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants