You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Romain Francois (Jira)" <ji...@apache.org> on 2020/09/25 06:52:00 UTC

[jira] [Created] (ARROW-10089) inject base class for Array, ChunkedArray and Scalar

Romain Francois created ARROW-10089:
---------------------------------------

             Summary: inject base class for Array, ChunkedArray and Scalar
                 Key: ARROW-10089
                 URL: https://issues.apache.org/jira/browse/ARROW-10089
             Project: Apache Arrow
          Issue Type: Improvement
          Components: R
            Reporter: Romain Francois


Related to comment [https://github.com/apache/arrow/pull/8256#discussion_r494402171]

There's a bunch of these :

#' @export
sum.Array <- function(..., na.rm = FALSE) scalar_aggregate("sum", ..., na.rm = na.rm)

#' @export
sum.ChunkedArray <- sum.Array

#' @export
sum.Scalar <- sum.Array

and having a empty base class between these and ArrowObject would help, we would only have one function and let S3 do its thing



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