rohangarg commented on issue #7953:
URL: https://github.com/apache/druid/issues/7953#issuecomment-979736033


   @julianhyde : I checked the issue you posted - CALCITE-3144 and I think it 
solves one of the two problems mentioned in this thread - of transforming a 
case statement to a filtered aggregator for optimized execution in some systems.
   
   But the other problem still remains, ie the following query still throws an 
error `SELECT COUNT(DISTINCT foo.dim1) FILTER(WHERE foo.cnt = 1), SUM(foo.cnt) 
FROM druid.foo` and explanation that Gian wrote above still hold according to 
me. Do you recall any reason for not making any changes in 
`AggregateExpandDistinctAggregatesRule`?


-- 
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: [email protected]

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