Support column reference as percentile arg for `percentile_cont` and `approx_percentile_cont`
Open
enhancement
- Dominant language
- Rust
- Stars
- 9.3k
- Forks
- 2.4k
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 344
Description
### Is your feature request related to a problem or challenge?
`percentile_cont` and `approx_percentile_cont` only accept a literal for the percentile argument (see [here](https://github.com/apache/datafusion/blob/main/datafusion/functions-aggregate/src/utils.rs#L44)).
We could extend support for column reference or projections as well.
### Describe the solution you'd like
Add support for `ColumnarValue::Array` for both `percentile_cont` and `approx_percentile_cont`.
### Describe alternatives you've considered
_No response_
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.