You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/04/15 16:08:57 UTC

[GitHub] [arrow-datafusion] jychen7 commented on issue #2221: Aggregate func Approx_median not work with Parquet format

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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org