jychen7 commented on issue #2221: URL: https://github.com/apache/arrow-datafusion/issues/2221#issuecomment-1100201872
more context, it only fails for `approx_median`, and `approx_percentile_cont` works fine ``` ❯ select approx_percentile_cont(tinyint_col, 0.5) from test; +-----------------------------------------------------+ | APPROXPERCENTILECONT(test.tinyint_col,Float64(0.5)) | +-----------------------------------------------------+ | 0 | +-----------------------------------------------------+ ``` https://github.com/apache/arrow-datafusion/blob/9f2ed423dc63f9f5d0a5e586925d2c31e3b9f5b8/datafusion/core/src/optimizer/to_approx_perc.rs#L97-L100 -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
