hw118118 commented on code in PR #1401:
URL: https://github.com/apache/cloudberry/pull/1401#discussion_r2443805012
##########
src/backend/parser/parse_cte.c:
##########
@@ -154,12 +197,17 @@ transformWithClause(ParseState *pstate, WithClause
*withClause)
cte->cterecursive = false;
cte->cterefcount = 0;
+#if 0
if (!IsA(cte->ctequery, SelectStmt))
{
/* must be a data-modifying statement */
Assert(IsA(cte->ctequery, InsertStmt) ||
IsA(cte->ctequery, UpdateStmt) ||
IsA(cte->ctequery, DeleteStmt));
+#else
+ if (isCTEModifying(cte))
+ {
+#endif
Review Comment:
Ok, I get it. Now I restore it as previous commit. But I can add some
comprehensive cases by his suggestions.
--
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]