Github user JoshRosen commented on the pull request:
https://github.com/apache/spark/pull/2091#issuecomment-53305144
Why do we even need `evenBuckets`? Can't we just check whether the buckets
are evenly-spaced and automatically perform the optimization if they are? This
only requires a linear scan through the buckets array. I suppose that we could
run into problems if the buckets are evenly-spaced but small rounding /
precision errors cause us to mark the buckets as non-even.
/cc @holdenk who implemented the `DoublePairRDDFunctions.histogram()`
function.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]