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/11/07 19:07:50 UTC

[GitHub] [arrow-datafusion] comphead commented on issue #3039: Review `NaN` handling in `median` and `approx_median`

comphead commented on issue #3039:
URL: https://github.com/apache/arrow-datafusion/issues/3039#issuecomment-1306062757

   Hi @andygrove Im working on https://github.com/apache/arrow-datafusion/issues/4051 and found your comments.
   I ran tests in postgres
   ```
   /*
   create table t (x real);
   		insert into t (x) values (1.1);
   		insert into t (x) values ('NaN');
   		insert into t (x) values ('NaN');
   		insert into t (x) values ('NaN');
   */
           
   select 1 from (select PERCENTILE_CONT(0.5) WITHIN GROUP(ORDER BY x) a FROM t) b where a != 'NaN'::NUMERIC;        
   ```
   So looks like datafusion behaviuor and postgres are the same


-- 
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