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

Extensions to RS dedup: execute with different column order and sorting direction if possible

    XMLWordPrintableJSON

Details

    Description

      Pointed out by gopalv.

      RS dedup should kick in for these cases, avoiding an additional shuffle stage.

      select state, city, sum(sales) from table
      group by state, city
      order by state, city
      limit 10;
      
      select state, city, sum(sales) from table
      group by city, state
      order by state, city
      limit 10;
      
      select state, city, sum(sales) from table
      group by city, state
      order by state desc, city
      limit 10;
      

      Attachments

        1. HIVE-13982.8.patch
          581 kB
          jcamachorodriguez
        2. HIVE-13982.7.patch
          590 kB
          jcamachorodriguez
        3. HIVE-13982.6.patch
          588 kB
          jcamachorodriguez
        4. HIVE-13982.5.patch
          595 kB
          jcamachorodriguez
        5. HIVE-13982.4.patch
          193 kB
          jcamachorodriguez
        6. HIVE-13982.3.patch
          125 kB
          jcamachorodriguez
        7. HIVE-13982.2.patch
          52 kB
          jcamachorodriguez
        8. HIVE-13982.patch
          30 kB
          jcamachorodriguez

        Issue Links

          Activity

            People

              jcamacho Jesús Camacho Rodríguez
              jcamacho Jesús Camacho Rodríguez
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: