[ 
https://issues.apache.org/jira/browse/HIVE-18237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16280163#comment-16280163
 ] 

Zoltan Haindrich commented on HIVE-18237:
-----------------------------------------

It seems the data is currently organized in "non-mm"...since if I force it this 
condition the other way [around 
here|https://github.com/apache/hive/blob/95dadac9fa81702ce3af0d8759bee5082f2f2013/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java#L2106];
 then the 2 partitions are found...

I tried to make some sense out of what I've seen...but MM and ACID conditions 
seem to be a little fuzzy to me...but I've a feeling that the file layout might 
more related to the {{isAcid}} argument than the tblproperties... 
[here|https://github.com/apache/hive/blob/95dadac9fa81702ce3af0d8759bee5082f2f2013/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java#L2187]


> missing results for insert_only table after DP insert
> -----------------------------------------------------
>
>                 Key: HIVE-18237
>                 URL: https://issues.apache.org/jira/browse/HIVE-18237
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Zoltan Haindrich
>
> {code}
> 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;
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to