Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-18052 Run p-tests on mm tables
  3. HIVE-18237

missing results for insert_only table after DP insert

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to IssueMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • Transactions
    • None

    Description

      set hive.stats.column.autogather=false;
      
      set hive.exec.dynamic.partition.mode=nonstrict;
      set hive.exec.max.dynamic.partitions.pernode=200;
      set hive.exec.max.dynamic.partitions=200;
      set hive.support.concurrency=true;
      set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
      
      create table i0 (p int,v int);
      insert into i0 values
              (0,0),
              (2,2),
              (3,3);
      
      create table p0 (v int) partitioned by (p int) stored as orc 
        tblproperties ("transactional"="true", "transactional_properties"="insert_only");
      
      explain insert overwrite table p0 partition (p) select * from i0 where v < 3;
      insert overwrite table p0 partition (p) select * from i0 where v < 3;
      select count(*) from p0 where v!=1;
      

      The table p0 should contain 2 rows at this point; but the result is 0.

      • seems to be specific to insert_only tables
      • the existing data appears if an insert into is executed.

      Attachments

        1. HIVE-18237.04.patch
          6 kB
          Steve Yeom
        2. HIVE-18237.03.patch
          6 kB
          Steve Yeom
        3. HIVE-18237.02.patch
          6 kB
          Steve Yeom
        4. HIVE-18237.01.patch
          21 kB
          Zoltan Haindrich

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            steveyeom2017 Steve Yeom Assign to me
            kgyrtkirk Zoltan Haindrich
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment