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

CorrelateSortToRankRule cannot deal with multiple groupings

    XMLWordPrintableJSON

Details

    Description

      Fix the following test case in CorrelateSortToRankRuleTest:

        @Test // TODO: this is a valid case to support
        def testMultipleGroupingsNotSupported(): Unit = {
          val query =
            s"""
               |SELECT f0, f2
               |FROM
               |  (SELECT DISTINCT f0, f1 FROM t1) t2,
               |  LATERAL (
               |    SELECT f2
               |    FROM t1
               |    WHERE f0 = t2.f0 AND f1 = t2.f1
               |    ORDER BY f2
               |    DESC LIMIT 3
               |  )
            """.stripMargin
          util.verifyPlan(query)
        }
      

      Currently, we only support one equal condition not f0 = t2.f0 AND f1 = t2.f1.

      Attachments

        Issue Links

          Activity

            People

              icshuo Shuo Cheng
              twalthr Timo Walther
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: