kudu-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boris Tyukin <bo...@boristyukin.com>
Subject Re: getRowErrors and operation type (insert, delete or update)
Date Fri, 28 Dec 2018 15:06:38 GMT
never mind, figured it out. I can do  RowError.getOperation().getClass() or
even simpler RowError.getOperation().getChangeType().

I love how clean Kudu API is!

On Fri, Dec 28, 2018 at 9:11 AM Boris Tyukin <boris@boristyukin.com> wrote:

> Hi guys,
> I need to write some custom logic to handle Kudu exceptions in
> AUTO_FLUSH_BACKGROUND mode and I can get what I need from
> session.getPendingErrors().getRowErrors() except operation type (insert,
> delete or update).
> getRowErrors returns an array of RowError
> https://kudu.apache.org/apidocs/org/apache/kudu/client/RowError.html
> I can get error status code and error message, but I also need to know
> operation type. There is RowError.getOperation() method that returns
> Operation and I can also get PartialRow from Operation but I still cannot
> figure out how to get operation type on that row.
> Is it possible?
> Thanks and a Happy New Year!
> Boris

View raw message