xiedeyantu commented on code in PR #4665:
URL: https://github.com/apache/calcite/pull/4665#discussion_r2627122626


##########
core/src/main/codegen/templates/Parser.jj:
##########
@@ -3925,27 +3940,38 @@ SqlNode Expression3(ExprContext exprContext) :
     LOOKAHEAD(3)
     <ROW> {
         s = span();
+        pushRowValueStar();

Review Comment:
   Pgsql can support this syntax, following:
   ```
   SELECT ROW(DEPT.*, ROW(DEPT.*)) FROM DEPT;
                               row                            
   -----------------------------------------------------------
    (10,ACCOUNTING,"NEW YORK","(10,ACCOUNTING,""NEW YORK"")")
    (20,RESEARCH,DALLAS,"(20,RESEARCH,DALLAS)")
    (30,SALES,CHICAGO,"(30,SALES,CHICAGO)")
    (40,OPERATIONS,BOSTON,"(40,OPERATIONS,BOSTON)")
   (4 rows)
   ```
   It doesn't support `ROW(*, ROW(*))`. But I think we can support this form.



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

Reply via email to