zzwqqq commented on code in PR #5385:
URL: https://github.com/apache/calcite/pull/5385#discussion_r4504903454
##########
core/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java:
##########
@@ -1595,10 +1686,80 @@ private RelNode findInputRel(CorRef corVar) {
return getCorRel(corVar);
}
+ /** Checks whether this input can be repeated or shared during decorrelation.
+ * Ordinary table scans assume stable contents within a query; unknown
+ * operators are not assumed deterministic.
+ */
+ private boolean isDeterministic(RelNode rel) {
Review Comment:
Thanks, I've exposed it as `RelOptUtil.isDeterministic(RelNode)`. It follows
the existing `SqlOperator.isDeterministic()` declarations: query-stable
`CURRENT_TIMESTAMP` is allowed, while `RAND()` is rejected.
--
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]