[ 
https://issues.apache.org/jira/browse/ARROW-14021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ian Cook updated ARROW-14021:
-----------------------------
    Description: 
ARROW-13772 binds {{quantile()}} to {{tdigest()}} which returns approximate 
quantiles and binds {{median()}} to {{approximate_median()}} which returns an 
approximate median. The bindings issue a warning saying that the 
median/quantile is approximate. Once ARROW-13309 is implemented, modify the 
binding to call Arrow functions that returns exact quantiles and medians, and 
remove the warnings.

We should keep the approximate quantile and median bindings but rename them.

When doing this, we should also modify the bindings to accept {{type}} and 
{{interpolation}} arguments like we do in the {{quantile.ArrowDatum}} method: 
https://github.com/apache/arrow/blob/170a24fc5f9f6f9c7c7d15a716c5995f03204a4b/r/R/compute.R#L156-L187

  was:
ARROW-13772 binds {{quantile()}} to {{tdigest()}} which returns approximate 
quantiles and binds {{median()}} to {{approximate_median()}} which returns an 
approximate median. The bindings issue a warning saying that the 
median/quantile is approximate. Once ARROW-13309 is implemented, modify the 
binding to call Arrow functions that returns exact quantiles and medians, and 
remove the warnings.

When doing this, we should also modify the bindings to accept {{type}} and 
{{interpolation}} arguments like we do in the {{quantile.ArrowDatum}} method: 
https://github.com/apache/arrow/blob/170a24fc5f9f6f9c7c7d15a716c5995f03204a4b/r/R/compute.R#L156-L187


> [R] Bind median() and quantile() to exact not approximate median and quantile
> -----------------------------------------------------------------------------
>
>                 Key: ARROW-14021
>                 URL: https://issues.apache.org/jira/browse/ARROW-14021
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: R
>            Reporter: Ian Cook
>            Priority: Major
>             Fix For: 7.0.0
>
>
> ARROW-13772 binds {{quantile()}} to {{tdigest()}} which returns approximate 
> quantiles and binds {{median()}} to {{approximate_median()}} which returns an 
> approximate median. The bindings issue a warning saying that the 
> median/quantile is approximate. Once ARROW-13309 is implemented, modify the 
> binding to call Arrow functions that returns exact quantiles and medians, and 
> remove the warnings.
> We should keep the approximate quantile and median bindings but rename them.
> When doing this, we should also modify the bindings to accept {{type}} and 
> {{interpolation}} arguments like we do in the {{quantile.ArrowDatum}} method: 
> https://github.com/apache/arrow/blob/170a24fc5f9f6f9c7c7d15a716c5995f03204a4b/r/R/compute.R#L156-L187



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to