Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Does anyone else experience ACID update and delete errors like below?

avatar
Contributor

hive> UPDATE emp SET sal = 3000.00 WHERE age = 35; FAILED: SemanticException [Error 10122]: Bucketized tables do not support INSERT INTO: Table: default.emp hive> DELETE FROM emp where sal is null; FAILED: SemanticException [Error 10122]: Bucketized tables do not support INSERT INTO: Table: default.emp

1 ACCEPTED SOLUTION

avatar
Contributor

Figured this out. I had to drop and recreate the table after turning ACID transactions on and the statements worked.

View solution in original post

3 REPLIES 3

avatar
Contributor

Figured this out. I had to drop and recreate the table after turning ACID transactions on and the statements worked.

avatar

Step-1

create table testTableNew(id int ,name string ) clustered by (id) into 2 buckets

stored as orc TBLPROPERTIES('transactional'='true');

Step-2

insert into table testTableNew values (1,'row1'),(2,'row2'),(3,'row3');

step-3

update testTableNew set name = 'updateRow2' where id = 2;

Step-4

delete from testTableNew where id = 1;

avatar
Contributor

@kishore sanchina it's working 🙂