ZhaoBQ commented on a change in pull request #1168:
URL: https://github.com/apache/phoenix/pull/1168#discussion_r596510171



##########
File path: 
phoenix-core/src/main/java/org/apache/phoenix/parse/ParseNodeRewriter.java
##########
@@ -157,6 +152,14 @@ public static SelectStatement rewrite(SelectStatement 
statement, ParseNodeRewrit
             }
             normGroupByNodes.add(normGroupByNode);
         }
+
+        ParseNode having = statement.getHaving();

Review comment:
       Thanks @lhofhansl . Yes, just an ordering problem. After adjusting the 
order, we can resolve alias in having clause.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to