julianhyde commented on issue #7953: Exact distinct-COUNT with complex 
expression (CASE, IN) throws NullPointerException
URL: 
https://github.com/apache/incubator-druid/issues/7953#issuecomment-505121858
 
 
   I agree, and the crack is probably in Calcite. `IN` is a good place to look, 
because it often causes problems - we have to remember to do a particular 
rewrite to expand it.
   
   I'm curious that the expression has been internally rewritten to 
`COUNT(DISTINCT $2) FILTER $3`. I don't remember that rewrite going into 
Calcite. (It's a good one, though.)

----------------------------------------------------------------
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]

Reply via email to