You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/07/05 21:23:33 UTC

[GitHub] [incubator-druid] gianm commented on issue #7953: Exact distinct-COUNT with complex expression (CASE, IN) throws NullPointerException

gianm commented on issue #7953: Exact distinct-COUNT with complex expression (CASE, IN) throws NullPointerException
URL: https://github.com/apache/incubator-druid/issues/7953#issuecomment-508864855
 
 
   I've reduced this test case to the simplest query I can find that still triggers the NPE:
   
   ```sql
   SELECT COUNT(DISTINCT foo.dim1) FILTER(WHERE foo.cnt = 1) - SUM(foo.cnt) FROM druid.foo
   ```
   
   If I remove the DISTINCT, or the first FILTER, or the SUM, then the query runs OK. The issue seems to be some interaction between the three. By the way, the same NPE gets hit regardless of whether the second aggregator is a SUM or MAX.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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