aw381246 commented on issue #12429:
URL: https://github.com/apache/pinot/issues/12429#issuecomment-2031945191

   If you group by the same column that is in the distinctcount, every row in 
the result should have a distinctcount of 1.  The only reason pinot is 
returning a value greater than 1 is because the column is an MV column that has 
2 values in this case.  Pinot unnests the MV column when you group by it, but 
the distinctcount seems to be happening before the unnest instead of after the 
unnest.
   
   Here's a simple example I created in SQL Server: 
   
![image](https://github.com/apache/pinot/assets/70593020/bb79c127-51b1-4dc9-bc14-c5c054ea2f24)
   


-- 
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-unsubscr...@pinot.apache.org

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


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

Reply via email to