You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Steve Yeom (JIRA)" <ji...@apache.org> on 2018/02/01 08:03:00 UTC
[jira] [Updated] (HIVE-18599) CREATE TEMPORARY TABLE AS
SELECT(CTTAS) on Micromanaged table does not write data
[ https://issues.apache.org/jira/browse/HIVE-18599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Yeom updated HIVE-18599:
------------------------------
Description:
CTTAS on temporary micromanaged table does not write data.
I.e., "SELECT * FROM ctas0_mm;" does not return any rows from the below script:
set hive.mapred.mode=nonstrict;
set hive.explain.user=false;
set hive.fetch.task.conversion=none;
set tez.grouping.min-size=1;
set tez.grouping.max-size=2;
set hive.exec.dynamic.partition.mode=nonstrict;
set hive.support.concurrency=true;
set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
drop table intermediate;
create table intermediate(key int) partitioned by (p int) stored as orc;
insert into table intermediate partition(p='455') select distinct key from src where key >= 0 order by key desc limit 2;
insert into table intermediate partition(p='456') select distinct key from src where key is not null order by key asc limit 2;
insert into table intermediate partition(p='457') select distinct key from src where key >= 100 order by key asc limit 2;
drop table ctas0_mm;
explain create temporary table ctas0_mm tblproperties ("transactional"="true", "transactional_properties"="insert_only") as select * from intermediate;
create temporary table ctas0_mm tblproperties ("transactional"="true", "transactional_properties"="insert_only") as select * from intermediate;
select * from ctas0_mm;
drop table ctas0_mm;
drop table intermediate;
was:
CTTAS on temporary micromanaged table does not write data.
I.e., "SELECT * FROM ctas0_mm;" does not return any rows from the
below script:
set hive.mapred.mode=nonstrict;
set hive.explain.user=false;
set hive.fetch.task.conversion=none;
set tez.grouping.min-size=1;
set tez.grouping.max-size=2;
set hive.exec.dynamic.partition.mode=nonstrict;
set hive.support.concurrency=true;
set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
drop table intermediate;
create table intermediate(key int) partitioned by (p int) stored as orc;
insert into table intermediate partition(p='455') select distinct key from src where key >= 0 order by key desc limit 2;
insert into table intermediate partition(p='456') select distinct key from src where key is not null order by key asc limit 2;
insert into table intermediate partition(p='457') select distinct key from src where key >= 100 order by key asc limit 2;
drop table ctas0_mm;
explain create temporary table ctas0_mm tblproperties ("transactional"="true", "transactional_properties"="insert_only") as select * from intermediate;
create temporary table ctas0_mm tblproperties ("transactional"="true", "transactional_properties"="insert_only") as select * from intermediate;
select * from ctas0_mm;
drop table ctas0_mm;
drop table intermediate;
> CREATE TEMPORARY TABLE AS SELECT(CTTAS) on Micromanaged table does not write data
> ---------------------------------------------------------------------------------
>
> Key: HIVE-18599
> URL: https://issues.apache.org/jira/browse/HIVE-18599
> Project: Hive
> Issue Type: Bug
> Components: Transactions
> Affects Versions: 3.0.0
> Reporter: Steve Yeom
> Assignee: Steve Yeom
> Priority: Major
>
> CTTAS on temporary micromanaged table does not write data.
> I.e., "SELECT * FROM ctas0_mm;" does not return any rows from the below script:
>
> set hive.mapred.mode=nonstrict;
> set hive.explain.user=false;
> set hive.fetch.task.conversion=none;
> set tez.grouping.min-size=1;
> set tez.grouping.max-size=2;
> set hive.exec.dynamic.partition.mode=nonstrict;
> set hive.support.concurrency=true;
> set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
>
> drop table intermediate;
> create table intermediate(key int) partitioned by (p int) stored as orc;
> insert into table intermediate partition(p='455') select distinct key from src where key >= 0 order by key desc limit 2;
> insert into table intermediate partition(p='456') select distinct key from src where key is not null order by key asc limit 2;
> insert into table intermediate partition(p='457') select distinct key from src where key >= 100 order by key asc limit 2;
>
> drop table ctas0_mm;
> explain create temporary table ctas0_mm tblproperties ("transactional"="true", "transactional_properties"="insert_only") as select * from intermediate;
> create temporary table ctas0_mm tblproperties ("transactional"="true", "transactional_properties"="insert_only") as select * from intermediate;
>
> select * from ctas0_mm;
> drop table ctas0_mm;
> drop table intermediate;
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)