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

unix_timestamp,intersect,except throws NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.1.0
    • None
    • CBO
    • None

    Description

      unix_timestamp,intersect,except throws NPE when cbo is false and optimize.constant.propagation is false

      reproduced problems:
      1. unix_timestap:
           set hive.cbo.enable=true;
           set hive.optimize.constant.propagation=false;
           create table test_pt(idx string, namex string) partitioned by(pt_dt string) stored as orc;

           explain extended select count(1) from test_pt where pt_dt = unix_timestamp();

      2.intersect

      create table t1(id int, name string, score int);

      create table t2(id int, name string, score int);

      insert into t1 values(1,'xiaoming', 98);

      insert into t2 values(2,'xiaohong', 95);

      select id from t1 intersect select id from t2;

      3.except 

      select id from t1 except select id from t2;

       

      Attachments

        1. image-2020-09-01-10-27-23-916.png
          4 kB
          zhaolong
        2. image-2020-09-01-10-26-14-062.png
          4 kB
          zhaolong
        3. image-2020-09-01-10-22-07-549.png
          7 kB
          zhaolong

        Activity

          People

            Unassigned Unassigned
            fsilent zhaolong
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: