korlov42 commented on a change in pull request #2623:
URL: https://github.com/apache/calcite/pull/2623#discussion_r826737733



##########
File path: core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java
##########
@@ -6565,11 +6568,13 @@ protected MyFilterRule(Config config) {
         RelNode input,
         List<? extends RexNode> projects,
         RelDataType rowType) {
-      super(cluster, traitSet, ImmutableList.of(), input, projects, rowType);
+      super(cluster, traitSet, ImmutableList.of(), input, projects, rowType, 
ImmutableSet.of());
     }
 
     public MyProject copy(RelTraitSet traitSet, RelNode input,
-        List<RexNode> projects, RelDataType rowType) {
+        List<RexNode> projects, RelDataType rowType, Set<CorrelationId> 
variablesSet) {
+      Preconditions.checkArgument(variablesSet.isEmpty(),
+          "Correlated scalar subqueries is not supported");

Review comment:
       done

##########
File path: pig/src/main/java/org/apache/calcite/adapter/pig/PigProject.java
##########
@@ -35,12 +39,14 @@
   /** Creates a PigProject. */
   public PigProject(RelOptCluster cluster, RelTraitSet traitSet, RelNode input,
       List<? extends RexNode> projects, RelDataType rowType) {
-    super(cluster, traitSet, ImmutableList.of(), input, projects, rowType);
+    super(cluster, traitSet, ImmutableList.of(), input, projects, rowType, 
ImmutableSet.of());
     assert getConvention() == PigRel.CONVENTION;
   }
 
   @Override public Project copy(RelTraitSet traitSet, RelNode input, 
List<RexNode> projects,
-      RelDataType rowType) {
+      RelDataType rowType, Set<CorrelationId> variablesSet) {
+    Preconditions.checkArgument(variablesSet.isEmpty(),
+        "Correlated scalar subqueries is not supported");

Review comment:
       done

##########
File path: 
mongodb/src/main/java/org/apache/calcite/adapter/mongodb/MongoProject.java
##########
@@ -56,7 +60,9 @@ public MongoProject(RelOptCluster cluster, RelTraitSet 
traitSet,
   }
 
   @Override public Project copy(RelTraitSet traitSet, RelNode input,
-      List<RexNode> projects, RelDataType rowType) {
+      List<RexNode> projects, RelDataType rowType, Set<CorrelationId> 
variablesSet) {
+    Preconditions.checkArgument(variablesSet.isEmpty(),
+        "Correlated scalar subqueries is not supported");

Review comment:
       done




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