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

Query Text based MaterializedView rewrite of subqueries

    XMLWordPrintableJSON

Details

    Description

      create materialized view mat1 as
      select col0 from t1 where col0 > 1;
      
      explain cbo
      select col0 from
        (select col0 from t1 where col0 > 1) sub
      where col0 = 10;
      
      HiveProject(col0=[CAST(10):INTEGER])
        HiveFilter(condition=[=($0, 10)])
          HiveTableScan(table=[[default, mat1]], table:alias=[default.mat1])
      

       

      Attachments

        Issue Links

          Activity

            People

              kkasa Krisztian Kasa
              kkasa Krisztian Kasa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h