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. expr2.sql
          0.9 kB
          Steve Carlin
        2. HIVE-22256.01.patch
          43 kB
          Jesus Camacho Rodriguez
        3. HIVE-22256.patch
          20 kB
          Jesus Camacho Rodriguez

          Issue Links

            Activity

              People

              • Assignee:
                jcamachorodriguez Jesus Camacho Rodriguez
                Reporter:
                scarlin Steve Carlin
              • Votes:
                0 Vote for this issue
                Watchers:
                3 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