Github user jihoonson commented on a diff in the pull request:
https://github.com/apache/tajo/pull/545#discussion_r29146828
--- Diff: tajo-plan/src/main/java/org/apache/tajo/plan/LogicalPlanner.java
---
@@ -485,9 +485,9 @@ public static void verifyProjectedFields(QueryBlock
block, Projectable projectab
for (int i = 0; i < groupingKeyNum; i++) {
Target target = groupbyNode.getTargets()[i];
- if (groupbyNode.getTargets()[i].getEvalTree().getType() ==
EvalType.FIELD) {
+ if (target.getEvalTree().getType() == EvalType.FIELD) {
FieldEval grpKeyEvalNode = target.getEvalTree();
- if
(!groupbyNode.getInSchema().contains(grpKeyEvalNode.getColumnRef())) {
+ if
(!groupbyNode.getInSchema().containsByQualifiedName(grpKeyEvalNode.getColumnRef().getQualifiedName()))
{
--- End diff --
Schema.contains() internally calls the same logic with
containsByQualifiedName(). Would you explain why you changed this line?
---
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.
---