Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-22253 General task tracking improvements for materialized views
  3. HIVE-22263

MV rewriting for distinct and count(distinct) not being triggered

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.1.2
    • 4.0.0-alpha-1
    • CBO, Materialized views
    • None

    Description

      Count distinct issues with materialized views.  Two scripts attached

      1) 

      create materialized view base_aview stored as orc as select distinct c1 c1, c2 c2 from base;

      explain extended select count(distinct c1) from base group by c2 ;

      2)

      create materialized view base_aview stored as orc as SELECT c1 c1, c2 c2, sum(c2) FROM base group by 1,2;

      explain extended select count(distinct c1) from base group by c2;

      Attachments

        1. HIVE-22263.patch
          9 kB
          jcamachorodriguez
        2. count-distinct2.sql
          0.7 kB
          Steve Carlin
        3. count-distinct.sql
          0.7 kB
          Steve Carlin

        Activity

          People

            jcamacho Jesús Camacho Rodríguez
            scarlin Steve Carlin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: