Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21537

Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

    XMLWordPrintableJSON

Details

    Description

      Currently Hive planner introduces this branch and later executes a rule to remove this branch if it could.
      Subquery remove rule itself could check if subquery will produce max one row (using relmetadat's getMaxRowCount) and avoid introducing this branch.

      Attachments

        1. HIVE-21537.1.patch
          49 kB
          Vineet Garg
        2. HIVE-21537.2.patch
          287 kB
          Vineet Garg
        3. HIVE-21537.3.patch
          294 kB
          Vineet Garg
        4. HIVE-21537.4.patch
          295 kB
          Vineet Garg
        5. HIVE-21537.5.patch
          295 kB
          Vineet Garg

        Activity

          People

            vgarg Vineet Garg
            vgarg Vineet Garg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: