New Contributor
Posts: 2
Registered: ‎04-11-2017
Accepted Solution

Kudu increment update support


Dose Kudu support  increment update?


For example, we have a table with two field, browser and visit count :

borwser   visitCount

firfox        10


And then, we got a new visit from firfox, the table will be update to:

borwser   visitCount

firfox        11


we want to do this update by increment operation, ranther then read the visitCount, add one and write it back.


Thanks in advance.

Cloudera Employee J-D
Cloudera Employee
Posts: 53
Registered: ‎07-08-2013

Re: Kudu increment update support



Kudu currently doesn't support atomic increments or any kind of operation that reads a value and makes a decision based on that value with the guarantee that it won't change.





New Contributor
Posts: 5
Registered: ‎09-28-2016

Re: Kudu increment update support

Hi, We also found Increment as a very useful operation in production. It can reduce row number. So why increment is not supported, is it on the plan?
Expert Contributor
Posts: 109
Registered: ‎07-01-2015

Re: Kudu increment update support

I think it is just because how Kudu is implemented. The visit count is not the primary key of the table. Nor the browser column. For atomic incrementing you have to have the data in one location on one server.