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 2020/10/30 07:07:55 UTC

[GitHub] [druid] minkedong commented on issue #10519: When I use topN query, the results are very different.

minkedong commented on issue #10519:
URL: https://github.com/apache/druid/issues/10519#issuecomment-719326525


   > For TopN, query engine collect top 1000(by default) ordered result from each segment, then merge all results to determine the global top 1000. For example, a data source has two segment A,B, for your second query, segment A, B contains value of (bundle, traffic) respectively (1115565187, 20) ranking 49 and (1115565187, 40) ranking 51, because of threshold = 50, query engine only collect result of segment A, result of B drop, which is approximate. But for your first query with filter, segment A, B contains value of (bundle, traffic) respectively (1115565187, 20) ranking 1 and (1115565187, 40) ranking 1 , result collected is accurate. if you need accurate result of your second query, try to increase threshold.
   
   @zoov-w Thank you very much for your answer, Your answer helped me solve the problem and at the same time let me understand the cause of the problem, great!
   


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



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