-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
coprocessor/statistics: implement count-min sketch #2463
Conversation
Ping @hanfei1991 @winoros |
/// the result set using Reservoir Sampling algorithm, and estimates NDVs | ||
/// using FM Sketch during the collecting process. | ||
/// the result set using Reservoir Sampling algorithm, estimates NDVs | ||
/// using FM Sketch during the collecting process, and build count-min sketch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build -> builds
) | ||
} | ||
|
||
pub fn insert(&mut self, bytes: &[u8]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is not easy to read, please add some comment.
} | ||
} | ||
|
||
fn hash(mut bytes: &[u8]) -> (u64, u64) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto.
rest LGTM |
LGTM |
PTAL @AndreMouche @winoros |
Please fix the conflict Ping @winoros |
Do we have tests that intergrated tidb with tikv? |
@winoros Yes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM
use coprocessor::codec::datum; | ||
use coprocessor::codec::datum::Datum; | ||
use util::as_slice; | ||
use std::collections::HashMap; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please reorder crate
according to the following order:
- std
- third party crate
- crate in current project
- supper
/run-all-tests |
/run-all-tests |
This reverts commit 89c2d5c.
PTAL @hanfei1991 @winoros @AndreMouche