**Describe the bug** Use of the approximate percentile function appears to force an incorrect cast to string. **To Reproduce** Create a dataset `R` with a column `A` ``` select avg(a), approx_percentile(a, array(0.5)) FROM R ``` **Expected behavior** No exception