Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-31273

Left join with IS_NULL filter be wrongly pushed down and get wrong join results

    XMLWordPrintableJSON

Details

    Description

      Left join with IS_NULL filter be wrongly pushed down and get wrong join results. The sql is:

      SELECT * FROM MyTable1 LEFT JOIN MyTable2 ON a1 = a2 WHERE a2 IS NULL AND a1 < 10
      
      The wrongly plan is:
      
      LogicalProject(a1=[$0], b1=[$1], c1=[$2], b2=[$3], c2=[$4], a2=[$5])
      +- LogicalFilter(condition=[IS NULL($5)])
         +- LogicalJoin(condition=[=($0, $5)], joinType=[left])
            :- LogicalValues(tuples=[[]])
            +- LogicalTableScan(table=[[default_catalog, default_database, MyTable2]]) 

      Attachments

        Issue Links

          Activity

            People

              337361684@qq.com Yunhong Zheng
              337361684@qq.com Yunhong Zheng
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: