Github user jihoonson commented on a diff in the pull request:
https://github.com/apache/tajo/pull/891#discussion_r47457615
--- Diff:
tajo-plan/src/main/java/org/apache/tajo/plan/rewrite/rules/ProjectionPushDownRule.java
---
@@ -795,7 +797,10 @@ public LogicalNode visitGroupBy(Context context,
LogicalPlan plan, LogicalPlan.Q
// Getting projected targets
if (node.hasAggFunctions() && aggEvalNames != null) {
List<AggregationFunctionCallEval> aggEvals = new ArrayList<>();
- for (Iterator<String> it = getFilteredReferences(aggEvalNames,
TUtil.newList(aggEvalNames)); it.hasNext();) {
+ int i = 0;
+ List inputList = new ArrayList<>();
+ inputList.addAll(Arrays.asList(aggEvalNames));
+ for (Iterator<String> it = getFilteredReferences(aggEvalNames,
inputList); it.hasNext();) {
--- End diff --
Can be rewritten with Arrays.asList().
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---