gianm commented on issue #16222:
URL: https://github.com/apache/druid/issues/16222#issuecomment-2287819187

   @ColeAtCharter I was working on something recently that reminded me of this 
report. I realized it's possible to see the "unexpected result example 1" if 
the filter is filtering on something that is on the border of two segments 
(i.e. the value is the `end` of one segment and also the `start` of the next). 
This particular behavior is intentional, because it's possible for a value on 
the border of two segments to appear in both segments.
   
   In the `wikipedia` example I posted, when I filtered on page `Bailando 2015` 
I only got a single segment in the reply. That particular page was not the 
border of two segments. When I filtered on another page that _was_ on the 
border of two segments, I got two segments in the reply. One had a count of `1` 
and the other had a count of `0`.
   
   It is certainly possible this is what you're seeing. If so, I would expect 
it to be fairly uncommon, unless your partitioning key is low cardinality 
relative to the number of segments.


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