Created on 03-05-2017 11:55 AM - edited 09-16-2022 04:11 AM
Delete operation with PK (int) not working via JDBC:
CREATE TABLE cities_1 (
cid INT PRIMARY KEY,
name STRING
)
PARTITION BY HASH(cid) PARTITIONS 8
STORED AS KUDU;
insert into cities_1(cid,name) values(1234567890,"NoName");
select * from cities_1 where cid = 1234567890;
update cities_1 set name = "NoName1" where cid = 1234567890;
delete from cities_1 where cid = 1234567890; -> FAILED
delete from cities_1 where name = "NoName1"; -> WORKS
JDBC connector 2.5.36
Created 03-05-2017 12:10 PM
Created 03-05-2017 03:28 PM
Hi vlogvinskiy,
Thank you for your report. What version of Impala are you using? Your commands work on the Impala shell on my development environment. Can you try them on an Impala shell? In the meantime, I'll reach out to the team working on the driver and I'll get back to you as soon as I hear from them.
Cheers, Lars
Created 03-05-2017 03:31 PM
Created 03-15-2017 06:38 AM
Thank you for the additional information. The team working on the driver has identified the issue and a fix will be included in the next release of the drivers. Until then I'm afraid you'll be stuck with the somewhat ugly workaround.
Cheers, Lars