kasakrisz commented on code in PR #6093:
URL: https://github.com/apache/hive/pull/6093#discussion_r2371964763
##########
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:
How about adding more brackets?
```
create view vw_x (b) as (((select a from tbl_x)));
```
--
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]