Skip to content
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

Standard deviation aggregate function #1060

Open
kelvincesar opened this issue Feb 26, 2025 · 3 comments
Open

Standard deviation aggregate function #1060

kelvincesar opened this issue Feb 26, 2025 · 3 comments

Comments

@kelvincesar
Copy link

Hello!

I checked COMPAT.md and didn't find any mention of standard deviation.

Could you confirm if this is correct?
If so, are there any plans to implement it?
I'd be happy to help if needed.

@kelvincesar kelvincesar changed the title Standard deviation as aggregate function Standard deviation aggregate function Feb 26, 2025
@PThorpe92
Copy link
Contributor

I don't believe that it's planned to go in core directly because it doesn't seem to be built into sqlite (reference), but it would definitely be welcome as an extension.

In fact it could probably just be added to the percentile extension.

@kelvincesar
Copy link
Author

Thanks for the response! You're right, it isn't a native implementation for sqlite.

Do you suggest any internal document to read before trying to implement it as an extension?

@PThorpe92
Copy link
Contributor

Yeah the example, is a simple one, but is fairly well documented. The percentile extension already has an aggregate function in there, so it should be pretty simple to follow along :)

Let me know if anything seems un-intuitive or you think needs better documentation, as we're really hoping to make extending functionality as simple as possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants