crepererum opened a new issue, #16990: URL: https://github.com/apache/datafusion/issues/16990
### Is your feature request related to a problem or challenge? While `approx_percentile_cont` supports the number of centroids (last parameter that is optional): https://github.com/apache/datafusion/blob/853eee09b33ca6500fd6ca00f1a82d9fdfec68ff/docs/source/user-guide/sql/aggregate_functions.md?plain=1#L832-L855 `approx_percentile_cont_with_weight` does not: https://github.com/apache/datafusion/blob/853eee09b33ca6500fd6ca00f1a82d9fdfec68ff/docs/source/user-guide/sql/aggregate_functions.md?plain=1#L857-L880 That is somewhat surprising/inconsistent. ### Describe the solution you'd like Add an optional last parameter similar to `approx_percentile_cont`. ### Describe alternatives you've considered No supporting this. ### Additional context \- -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org