-
Notifications
You must be signed in to change notification settings - Fork 521
feat(tdigest): Add support for QUANTILE command #2849
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
base: unstable
Are you sure you want to change the base?
Conversation
@LindaSummer I have added the basic structure for the
I tried modifying the quantile function as mentioned in the issue and the previous PRs but the issue persists. Any help is appreciated. |
Hi @SharonIV0x86 , Thanks very much for effort!😊 I'll try to test it in local in recent days and will sync if there is any new updates. Best Regards, |
Works, till then ill try to fiddle around. Cheers. |
Hi @SharonIV0x86 , Sorry for delay of updating. 😊 In recent I have some personal affairs which occupied my schedule so maybe a little delay in response. I'm now working on this ticket and find that there may be some bugs inside it. I will double confirm it and create a PR to fix it if bug exists. Best Regards, |
No issues, meanwhile i tried looking into it, no matter what i did there seems to be a mismatch between the actual information and the tdigest metadata now one thing i can deduce is that is not in the Quantile function but this seems to be the issue with Or this is related to locks as you suggested. There is no hurry from my side in fixing this issue but i am also planning to implement the TDIGEST.CDF and TDIGEST.RANK in upcoming weeks and they most likely will depend in this issue. |
Hi @SharonIV0x86 , I have tested the command line successfully with removing the lock and announcing the command "write" for quick validation after fixing #2878 . I will try to find a way to improve the performance with less critical section. Best Regards, |
Okay, thanks for looking into it. So, how should i proceed then? should i wait for #2878 to be merged? |
Hi @SharonIV0x86 , Maybe we could wait for it to be merged before this PR. If you don't mind, I will try to solve the lock issue since I find that it may not be so easy to just add a lock key in current connection lock management. Best Regards, |
Absolutely no issues whatsoever, there is no hurry i am happy to wait 😄 |
@LindaSummer Hi, i have tested the quantile command after the merging of the #2878 and it works as expected. However, there is a bit of difference in quantile values when compared to the original implementation of redis I have also added a go test case so if any changes are required pls lmk. 👍🏼 |
Closes #2794
This PR adds support for
TDIGEST.QUANTILE
command.