If you’re getting an error that reads “Binder Error: APPROXIMATE QUANTILE can only take parameters in range [0, 1]” in DuckDB, it appears that you’re passing an invalid second argument to the approx_quantile()
function.
To fix this issue, make sure the second argument is between 0 and 1.
Continue reading