Sure, Hbase data that I have is:
rowkey us uk 20161001 3 4 20161002 1 2 select myaggFunc(us) from table : // this is returning output as : 4 select myaggFunc(uk) from table : // this is returning output as : 6 In similar to that, i'm visualizing the query like: select myaggFunc1(us,uk) from table; //with multiple columns to return output: (based on the aggregation logic, below results are for sum aggregation) us 4 uk 6 On Tue, May 3, 2016 at 11:33 AM, James Taylor <[email protected]> wrote: > Removing user list (please don't cross post) > > Can you give us a full example of the query you have in mind? > > Thanks, > James > > On Tue, May 3, 2016 at 11:14 AM, Swapna Swapna <[email protected]> > wrote: > > > Hi, > > > > I'm trying to implement aggregate function on multiple columns (as an > > arguments) like: > > > > myaggFunc(col1,col2) > > > > And I would want to return the results by each column after applying > > aggregate operation. > > > > The output would be something like: > > > > col1, count ( aggregate of all records for col1) > > col2, count > > > > Inorder to return the results in the above format, what is the return > data > > type (of the method) should I have to choose? > > > > Thanks > > >
