xy720 commented on code in PR #66981:
URL: https://github.com/apache/doris/pull/66981#discussion_r3819962637
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/CTEInline.java:
##########
@@ -95,6 +98,7 @@ public Plan visitLogicalCTEAnchor(LogicalCTEAnchor<? extends
Plan, ? extends Pla
LogicalCTEProducer<?> cteProducer = (LogicalCTEProducer<?>)
cteAnchor.left();
if (connectContext.getSessionVariable().enableCTEMaterialize
&& (consumers.size() >
connectContext.getSessionVariable().inlineCTEReferencedThreshold
+ && !isConstantOneRowProducer(cteProducer)
Review Comment:
sleep(1) is a corner case, No body will do that. And what's the non-foldable
UDFs?
--
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]