Zainab-Saad commented on code in PR #1562:
URL: https://github.com/apache/age/pull/1562#discussion_r1517792654
##########
src/backend/parser/cypher_gram.y:
##########
@@ -594,6 +599,53 @@ updating_clause:
| merge
;
+subquery_stmt:
+ single_subquery
+ {
+ $$ = $1;
+ }
+ | subquery_stmt UNION all_or_distinct subquery_stmt
+ {
+ $$ = list_make1(make_set_op(SETOP_UNION, $3, $1, $4));
+ }
+ ;
+
+subquery_stmt_no_return:
+ single_subquery_no_return
+ {
+ $$ = $1;
+ }
+ | subquery_stmt_no_return UNION all_or_distinct subquery_stmt_no_return
+ {
+ $$ = list_make1(make_set_op(SETOP_UNION, $3, $1, $4));
+ }
+ ;
+
+single_subquery:
+ subquery_part_init reading_clause_list return
+ {
+ $$ = list_concat($1, lappend($2, $3));
+ }
+ ;
+
+single_subquery_no_return:
+ subquery_part_init reading_clause_list
Review Comment:
extra indentation?
##########
src/backend/parser/cypher_gram.y:
##########
@@ -594,6 +599,53 @@ updating_clause:
| merge
;
+subquery_stmt:
+ single_subquery
+ {
+ $$ = $1;
+ }
+ | subquery_stmt UNION all_or_distinct subquery_stmt
+ {
+ $$ = list_make1(make_set_op(SETOP_UNION, $3, $1, $4));
+ }
+ ;
+
+subquery_stmt_no_return:
+ single_subquery_no_return
+ {
+ $$ = $1;
+ }
+ | subquery_stmt_no_return UNION all_or_distinct subquery_stmt_no_return
+ {
+ $$ = list_make1(make_set_op(SETOP_UNION, $3, $1, $4));
+ }
+ ;
+
+single_subquery:
+ subquery_part_init reading_clause_list return
Review Comment:
extra indentation?
--
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]