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

Commutativity of operations is not taken into account, e.g., '+'

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 4.0.0
    • Component/s: CBO, Materialized views
    • Labels:
      None

      Description

      ...as stated in subject.  Script to reproduce is attached.

      Query and materialized view are as follows:

      create materialized view view5 stored as orc as (select prod_id, cust_id, store_id, sale_date, qty, amt, descr from sales where cust_id + prod_id > 1 + 2);

      explain extended select  prod_id, cust_id  from sales where prod_id + cust_id > 1 + 2;

        Attachments

        1. expr9.sql
          0.9 kB
          Steve Carlin

          Issue Links

            Activity

              People

              • Assignee:
                vgarg Vineet Garg
                Reporter:
                scarlin Steve Carlin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: