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

Rewriting fails when `IN` clause has items in different order in MV and query

    XMLWordPrintableJSON

Details

    Description

      Rewriting fails on following materialized view and query (script is also attached):

      create materialized view view2 stored as orc as (select prod_id, cust_id, store_id, sale_date, qty, amt, descr from sales where cust_id in (1,2,3,4,5));

      explain extended select prod_id, cust_id  from sales where cust_id in (5,1,2,3,4);

      Attachments

        1. HIVE-22256.patch
          20 kB
          jcamachorodriguez
        2. HIVE-22256.01.patch
          43 kB
          jcamachorodriguez
        3. expr2.sql
          0.9 kB
          Steve Carlin

        Issue Links

          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:

                Time Tracking

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