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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
