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

DPP: Simple n-tuple expressions support

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.0
    • Fix Version/s: None
    • Component/s: Tez
    • Labels:
      None

      Description

      create table sales (s_qty bigint, s_item_sk bigint) partitioned by(s_region string, s_date date);
      
      insert into sales partition(s_region='USA', s_date='2018-01-01') values (1,1), (2,2);
      insert into sales partition(s_region='EU', s_date='2018-02-01') values (1,1), (2,2);
      
      
      select count(*) from sales s, agg_sales a where concat(a.s_region, '^', a.s_date) = concat(s.s_region, '^', s.s_date) and s.sold_qty > a.median_s_qty and a.s_item_sk = s.s_item_sk;
      
      select count(*) from sales s, agg_sales a where (a.s_region, a.s_date) = (s.s_region, s.s_date) and s.sold_qty > a.median_s_qty and a.s_item_sk = s.s_item_sk; 
      
      select count(*) from sales s, agg_sales a where a.s_region = s.s_region and  a.s_date = s.s_date and s.sold_qty > a.median_s_qty and a.s_item_sk = s.s_item_sk;
      
      

        Attachments

          Activity

            People

            • Assignee:
              djaiswal Deepak Jaiswal
              Reporter:
              gopalv Gopal Vijayaraghavan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: