kasakrisz commented on code in PR #3591:
URL: https://github.com/apache/hive/pull/3591#discussion_r969512902
##########
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java:
##########
@@ -3359,7 +3359,7 @@ public Object post(Object t) {
ASTNode root = (ASTNode) t;
if (root.getType() == HiveParser.TOK_FUNCTION) {
ASTNode func = (ASTNode) ParseDriver.adaptor.getChild(root, 0);
- if (func.getText().equals("grouping") && func.getChildCount() == 0) {
+ if (func.getText().equalsIgnoreCase("grouping") &&
func.getChildCount() == 0) {
Review Comment:
Could you please change this to
```
"grouping".equalsIgnoreCase(func.getText())
```
it is null safe.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]