rubenada commented on code in PR #6482:
URL: https://github.com/apache/hive/pull/6482#discussion_r3259633163


##########
ql/src/java/org/apache/hadoop/hive/ql/parse/relnodegen/LateralViewPlan.java:
##########
@@ -128,8 +128,9 @@ public static void validateLateralView(ASTNode lateralView) 
throws SemanticExcep
     }
     ASTNode next = (ASTNode) lateralView.getChild(1);
     if (!TABLE_ALIAS_TOKEN_TYPES.contains(next.getToken().getType()) &&
-          HiveParser.TOK_LATERAL_VIEW != next.getToken().getType()) {
-        throw new SemanticException(ASTErrorUtils.getMsg(
+          HiveParser.TOK_LATERAL_VIEW != next.getToken().getType() &&

Review Comment:
   I guess now this could also be rewritten using the new helper
   `... && !isASTNodeLateralViewOrOuter(next)` 



-- 
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]

Reply via email to