weishiuntsai edited a comment on issue #9896:
URL: https://github.com/apache/druid/issues/9896#issuecomment-638947396


   Druid currently can't build a plan for the following join query with 
`COUNT(DISTINCT)` when the `WHERE` clause evaluates to `FALSE`. By removing the 
bindable query path can help with this too:
   
   ```
   SELECT COUNT(DISTINCT T1.tab0s1)
   FROM tab0 as T1 LEFT JOIN tab0 as T2
   on T1.__time = T2.__time
   WHERE (1=0)
   ```
   ```
   Unknown exception / Cannot build plan for query: SELECT COUNT(DISTINCT 
T1.tab0s1) FROM tab0 as T1 LEFT JOIN tab0 as T2 on T1.__time = T2.__time WHERE 
(1=0) / org.apache.druid.java.util.common.ISE
   ```


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to