mihaibudiu commented on code in PR #5385:
URL: https://github.com/apache/calcite/pull/5385#discussion_r4436849881


##########
core/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java:
##########
@@ -159,6 +170,21 @@ public class RelDecorrelator implements ReflectiveVisitor {
   private static final Logger SQL2REL_LOGGER =
       CalciteTrace.getSqlToRelTracer();
 
+  private static final RexShuttle DETERMINISM_CHECKER = new RexShuttle() {
+    @Override public RexNode visitCall(RexCall call) {
+      checkDeterministicExpression(call);
+      return call;
+    }
+
+    @Override public RexNode visitOver(RexOver over) {
+      return visitCall(over);
+    }
+
+    @Override public RexNode visitSubQuery(RexSubQuery subQuery) {
+      throw Util.FoundOne.NULL;

Review Comment:
   what happens here?
   Please add a comment



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