alex-plekhanov commented on code in PR #12180: URL: https://github.com/apache/ignite/pull/12180#discussion_r2200511847
########## modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/planner/MergeJoinPlannerTest.java: ########## @@ -2794,6 +2797,26 @@ public void testInnerDeriveMixed2() throws Exception { assertNull(sortOnTopOfScan(rel, "RIGHT_T")); } + /** */ + @Test + public void testMergeJoinIsNotAppliedForNonEquiJoin() throws Exception { + IgniteSchema schema = createSchema( + createTable("EMP", 1000, IgniteDistributions.broadcast(), + "ID", INTEGER, "NAME", VARCHAR, "DEPTNO", INTEGER) + .addIndex("emp_idx", 1, 2), + createTable("DEPT", 100, IgniteDistributions.broadcast(), + "DEPTNO", INTEGER, "NAME", VARCHAR) + .addIndex("dep_idx", 1, 0) + ); + + String sql = "select d.deptno, d.name, e.id, e.name from dept d join emp e " + + "on d.deptno = e.deptno and e.name >= d.name order by e.name, d.deptno"; + + assertPlan(sql, schema, nodeOrAnyChild(isInstanceOf(IgniteSort.class) + .and(hasChildThat(isInstanceOf(IgniteNestedLoopJoin.class)))), Review Comment: Ok, fixed -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org