Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Hi all.
`SubstitutionVisitor` support more join_type in some rules of `Join`.
Now `SubstitutionVisitor` only support join type of `INNER`, when pulling up bottom filters of join.
It doesn't work as follows.
@Test public void testJoinOnLeftProjectWithFilterToJoin() { String mv = "" + "select \"emps\".\"empid\", \"depts\".\"name\", \"emps\".\"salary\"\n" + "from \"emps\"\n" + "left join \"depts\"\n" + "on \"emps\".\"deptno\" = \"depts\".\"deptno\"\n" + "where \"emps\".\"empid\" > 10"; String query = "" + "select \"emps\".\"empid\", \"depts\".\"name\", \"emps\".\"salary\"\n" + "from \"emps\"\n" + "left join \"depts\"\n" + "on \"emps\".\"deptno\" = \"depts\".\"deptno\"\n" + "where \"emps\".\"empid\" > 40"; sql(mv, query).withOnlyBySubstitution(true).ok(); }
Attachments
Attachments
Issue Links
- links to