xy2953396112 commented on a change in pull request #1692: [CALCITE-3632] Add 
IntersectToIntersectUnify Rule in SubstitutionVisitor
URL: https://github.com/apache/calcite/pull/1692#discussion_r361593369
 
 

 ##########
 File path: core/src/test/java/org/apache/calcite/test/MaterializationTest.java
 ##########
 @@ -2857,6 +2858,26 @@ private void checkSatisfiable(RexNode e, String s) {
     checkMaterialize(mv, query);
   }
 
+  @Test public void testIntersectToIntersect0() {
+    final String mv = ""
+        + "select \"deptno\" from\n"
+        + "\"emps\" intersect select \"deptno\"  from \"depts\"";
+    final String query = ""
+        + "select \"deptno\" from\n"
+        + "\"depts\" intersect select \"deptno\" from \"emps\"";
+    checkMaterialize(mv, query, true);
+  }
+
+  @Test public void testIntersectToIntersect1() {
 
 Review comment:
   thanks, update code.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to