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

PruneEmptyRules does not prune empty node as expected.

    XMLWordPrintableJSON

Details

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

    Description

      val t = CollectionDataSets.get3TupleDataSet(env).as('a, 'b, 'c)
            .where(Literal(false))
            .groupBy('b)
            .select('a.sum)
      

      With PruneEmptyRules instances enabled, we expect the empty Aggregate and Project should be removed, while it's not removed after logical optimization.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: