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

ReduceExpressionsRule does not remove duplicate expression in Filter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.1.0
    • Table SQL / API
    • None

    Description

      val ds = CollectionDataSets.get3TupleDataSet(env).as('a, 'b, 'c)
      val filterDs = ds.filter('a % 2 !== 0).filter('b % 2 === 0).filter('a % 2 !== 0)
      

      According to the ReduceExpressionsRule definition, we expect the duplicted filter expression get removed, while it's not after logical optimization.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chengxiang li Chengxiang Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: