l4wei commented on code in PR #2938: URL: https://github.com/apache/calcite/pull/2938#discussion_r996593733
########## core/src/main/java/org/apache/calcite/sql/SqlWith.java: ########## @@ -103,8 +103,9 @@ private SqlWithOperator() { } writer.endList(frame1); final SqlWriter.Frame frame2 = - writer.startList(SqlWriter.FrameTypeEnum.SIMPLE); - with.body.unparse(writer, 100, 100); + writer.startList(SqlWriter.FrameTypeEnum.WITH_BODY); + // leftPrec: 2, rightPrec: 3 are the low bound to WITH operator + with.body.unparse(writer, 2, 3); Review Comment: You are right, i agree. -- 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: commits-unsubscr...@calcite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org