-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
decimal support for agg function #1545
Comments
@liukun4515 I have added more functions and am planning to add a few in the next few days. Here are the list, please add as tasks: covar(col1, col2): calculate the covariance (sample) of col1 and col2 covar_samp(col1, col2): calculate the covariance (sample) of col1 and col2 covar_pop(col1, col2): calculate the covariance (population) of col1 and col2 corr(col1, col2): calculate the correlation coefficient (sample) of col1 and col2 corr_samp(col1, col2): calculate the correlation coefficient (sample) of col1 and col2 corr_pop(col1, col2): calculate the correlation coefficient (population) of col1 and col2 median(col1): calculate the median of col1 |
thanks @realno , I will add them. |
@realno please check the document of pg https://www.postgresql.org/docs/14/functions-aggregate.html |
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
The decimal data type has been supported in #122, but in this issue #122 we just support several agg functions.
In this issue we will list some functions which are not implemented for the decimal data type.
sum support sum/avg agg for decimal, change sum(float32) --> float64 #1408
min/max Support decimal for
min
andmax
aggregate #1407count/DistinctCount: don't need to implement
avg support sum/avg agg for decimal, change sum(float32) --> float64 #1408
var(col1): calculate the variance (sample) of col1
var_samp(col1): calculate the variance (sample) of col1
var_pop(col1): calculate the variance (population) of col1
stddev(col1): calculate the standard deviation (sample) of col1
stddev_samp(col1): calculate the standard deviation (sample) of col1
stddev_pop(col1): calculate the standard deviation (population) of col1
TODO
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: