You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2021/08/11 19:18:58 UTC

[GitHub] [pinot] mr-agrwal commented on issue #6439: Support of Mode(Statistics)

mr-agrwal commented on issue #6439:
URL: https://github.com/apache/pinot/issues/6439#issuecomment-897086362


   @Jackie-Jiang The requirement is something like `select item, mode(price) from sales group by item`. To achieve this we would basically have to do the following for all the items.
   ```
   select price, count(*) as cnt from sales where item = <itemId> group by price order by cnt desc limit 1
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org