You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "hngu (via GitHub)" <gi...@apache.org> on 2026/08/05 20:21:27 UTC

[I] Fix documentation for FixedBucketHistogram (druid)

hngu opened a new issue, #19891:
URL: https://github.com/apache/druid/issues/19891

   Hello!
   
   In this doc (https://druid.apache.org/docs/latest/development/extensions-core/approximate-histograms/#properties) for fixed bucket histograms, it shows that the range `[lowerLimit, upperLimit] will be divided into numBuckets intervals of equal size` with closed bracket notation. This means inclusivity. However, in the code itself it actually indicates `[lowerLimit, upperLimit)`: https://github.com/apache/druid/blob/master/extensions-core/histogram/src/main/java/org/apache/druid/query/aggregation/histogram/FixedBucketsHistogram.java#L389-L396
   
   I have pasted the code in case the lines shift:
   ```
   try {
         if (value < lowerLimit) {
           outlierHandler.handleOutlierAdd(false);
           return;
         } else if (value >= upperLimit) {
           outlierHandler.handleOutlierAdd(true);
           return;
         }
   ```
   The docs are misleading. Please update! Thanks!
   


-- 
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: commits-unsubscribe@druid.apache.org.apache.org

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


Re: [I] Fix documentation for FixedBucketHistogram (druid)

Posted by "hngu (via GitHub)" <gi...@apache.org>.
hngu commented on issue #19891:
URL: https://github.com/apache/druid/issues/19891#issuecomment-5207306033

   Thanks @FrankChen021 ! I will close this issue and work on updating the documentation in a PR something next week.


-- 
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: commits-unsubscribe@druid.apache.org

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


Re: [I] Fix documentation for FixedBucketHistogram (druid)

Posted by "FrankChen021 (via GitHub)" <gi...@apache.org>.
FrankChen021 commented on issue #19891:
URL: https://github.com/apache/druid/issues/19891#issuecomment-5206027958

   Thanks for catching this, @hngu! You’re right—the implementation uses [lowerLimit, upperLimit). This would make a great small contribution; please consider opening a PR with the documentation fix. We’d be happy to review it!


-- 
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: commits-unsubscribe@druid.apache.org

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


Re: [I] Fix documentation for FixedBucketHistogram (druid)

Posted by "hngu (via GitHub)" <gi...@apache.org>.
hngu closed issue #19891: Fix documentation for FixedBucketHistogram
URL: https://github.com/apache/druid/issues/19891


-- 
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: commits-unsubscribe@druid.apache.org

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