You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/05/20 22:59:48 UTC

[GitHub] [incubator-druid] clintropolis opened a new pull request #7708: fix result level cache issue with topN when ordering by post-aggregators

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


With regards,
Apache Git Services

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