-
Notifications
You must be signed in to change notification settings - Fork 413
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
Why do the stdev and var aggregate functions not ignore null values like sum, min, max, and avg ? #2590
Comments
Hello @ngjaying sir , |
we have to see how this function stdev and var are implemented internally because aggregate functions exclude null values for calculation but for these function involves stastical calculation that can be mislead by null values. So, please can you navigate to the directory or code file to see how they are present in code. |
@BNNARAJ Sorry for the late response. The functions are in https://github.com/lf-edge/ekuiper/blob/master/internal/binder/function/funcs_agg.go. Actually, you can do a search in the codebase to find it next time. |
Thank you sir |
Hello @ngjaying sir, |
Hi @BNNARAJ, |
Hello @ngjaying Sir , |
@EscanorUt Looks like there is no problem for null values. Do you still encounter that issue? If so, could you please provide a test case? |
Discussed in #2589
Originally posted by EscanorUt January 26, 2024
Hello,
I've noticed that while using eKuiper, the stdev and var aggregate functions seem to consider null values in their calculations, unlike other aggregate functions like sum, min, max, and avg which ignore null values. Can anyone shed light on the reason behind this behavior and whether there are any workarounds or alternative approaches to handle null values with stdev and var functions in eKuiper
Thank you
The text was updated successfully, but these errors were encountered: