load with upsert using load hangs on the test machine
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trafodion |
New
|
Undecided
|
Unassigned |
Bug Description
in hive/test015 the "load with upsert using load.." statement which runs the uspert using load after disabling indexe hangs on the
--load with upsert using load
drop table customer_
drop table customer_
create table customer_
(
cd_demo_sk int not null,
cd_gender char(1),
cd_marital_status char(1),
cd_education_
cd_purchase_
cd_credit_rating char(10),
cd_dep_count int,
cd_dep_
cd_dep_
primary key (cd_demo_sk)
);
create table customer_
(
cd_demo_sk int not null,
cd_gender char(1),
cd_marital_status char(1),
cd_education_
cd_purchase_
cd_credit_rating char(10),
cd_dep_count int,
cd_dep_
cd_dep_
primary key (cd_demo_sk)
)
salt using 4 partitions on (cd_demo_sk);
create index cd_dep_count_IDX on customer_
create index cd_dep_
load with upsert using load into customer_
select * from hive.hive.
set parserflags 1;
select count(*) from customer_
select count(*) from table(index_table cd_dep_count_IDX);
select count(*) from table(index_table cd_dep_
drop index cd_dep_count_IDX;
drop index cd_dep_
create index cd_dep_count_IDX2 on customer_
create index cd_dep_
-------
load with upsert using load into customer_
select * from hive.hive.
>>--load with upsert using load
>>drop table customer_
--- SQL operation complete.
>>drop table customer_
--- SQL operation complete.
>>create table customer_
+>(
+> cd_demo_sk int not null,
+> cd_gender char(1),
+> cd_marital_status char(1),
+> cd_education_status char(20),
+> cd_purchase_
+> cd_credit_rating char(10),
+> cd_dep_count int,
+> cd_dep_
+> cd_dep_
+> primary key (cd_demo_sk)
+>);
--- SQL operation complete.
>>
>>create table customer_
+>(
+> cd_demo_sk int not null,
+> cd_gender char(1),
+> cd_marital_status char(1),
+> cd_education_status char(20),
+> cd_purchase_
+> cd_credit_rating char(10),
+> cd_dep_count int,
+> cd_dep_
+> cd_dep_
+> primary key (cd_demo_sk)
+>)
+>salt using 4 partitions on (cd_demo_sk);
--- SQL operation complete.
>>create index cd_dep_count_IDX on customer_
--- SQL operation complete.
>>create index cd_dep_
--- SQL operation complete.
>>
>>load with upsert using load into customer_
+>select * from hive.hive.
Task: LOAD Status: Started Object: TRAFODION.
Task: DISABLE INDEXE Status: Started Object: TRAFODION.
Task: DISABLE INDEXE Status: Ended Object: TRAFODION.
Task: UPSERT USING L Status: Started Object: TRAFODION.
Rows Processed: 5000
Task: UPSERT USING L Status: Ended ET: 00:00:08.761
Task: POPULATE INDEX Status: Started Object: TRAFODION.
Task: POPULATE INDEX Status: Ended ET: 00:00:13.795
--- 5000 row(s) loaded.
>>
>>set parserflags 1;
--- SQL operation complete.
>>select count(*) from customer_
(EXPR)
-------
--- 1 row(s) selected.
>>select count(*) from table(index_table cd_dep_count_IDX);
(EXPR)
-------
--- 1 row(s) selected.
>>select count(*) from table(index_table cd_dep_
(EXPR)
-------
--- 1 row(s) selected.
>>
>>drop index cd_dep_count_IDX;
--- SQL operation complete.
>>drop index cd_dep_
--- SQL operation complete.
>>
>>create index cd_dep_count_IDX2 on customer_
--- SQL operation complete.
>>create index cd_dep_
--- SQL operation complete.
>>-----
>>load with upsert using load into customer_
+>select * from hive.hive.
--->Hangs