kudu-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boris Tyukin <bo...@boristyukin.com>
Subject Re: Kudu table api
Date Fri, 22 Mar 2019 19:11:48 GMT
Hi Dmitry, check Java Kudu API examples if you have not done it yet
https://github.com/apache/kudu/tree/master/examples

I remember it had a helper class that counts rows. Like Adar said, I do not
think there is a better / faster way - you just create a Kudu scanner, get
rows back and iterate over returned sets and increase the counter.

It was much faster than Impala count in my benchmarks - Kudu API is
extremely fast and easy to use.

Boris

On Fri, Mar 22, 2019 at 2:22 PM Adar Lieber-Dembo <adar@cloudera.com> wrote:

> Probably a scan with no predicates and a minimal projection. Then you
> can iterate over the results and increment a count of rows.
>
> Or, if you're using Impala, "SELECT COUNT(*) FROM FOO".
>
> On Fri, Mar 22, 2019 at 3:23 AM Дмитрий Павлов <dm.pavlov@inbox.ru>
wrote:
> >
> > Hi guys
> >
> > What is the quickest way to get total number of rows in the table using
> kudu client?
> >
> > Regards, Dmitry Pavlov
>

Mime
View raw message