clintropolis opened a new pull request #7708: fix result level cache issue with 
topN when ordering by post-aggregators
URL: https://github.com/apache/incubator-druid/pull/7708
 
 
   This PR fixes an issue with TopN queries where the result level cache was 
recomputing post-aggregator values that are already available in the cache, 
causing issues especially when trying to re-compute post aggregators which used 
finalized aggregator results.
   
   The added test will fail with
   ```
   java.lang.ClassCastException: java.lang.Double cannot be cast to 
org.apache.druid.hll.HyperLogLogCollector
   ```
   if the fix is not in place.
   
   Beyond the scope of this fix is whether or not TopN should be computing 
those post aggregators inside of the cache retrieval method. This appears to be 
done because the post-aggs which are part of the ordering of the query are used 
as part of the cache key, but not stored in the cache.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to