mdayakar commented on code in PR #6093:
URL: https://github.com/apache/hive/pull/6093#discussion_r2374792737
##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/view/create/CreateViewAnalyzer.java:
##########
@@ -136,9 +141,14 @@ private String getExpandedText(List<FieldSchema>
imposedSchema, ASTNode select,
// We don't currently allow imposition of a type
fieldSchema.setComment(imposedSchema.get(i).getComment());
}
- sb.append(" FROM (");
+ sb.append(" FROM ");
+ if (!isBracketAvailable) {
+ sb.append("(");
+ }
Review Comment:
Currently in this case it will fail. So now fixed this scenario by removing
all the brackets attached with view definition and adds a single bracket
finally.
--
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]