[ 
https://issues.apache.org/jira/browse/ARROW-12813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17346337#comment-17346337
 ] 

Weston Pace commented on ARROW-12813:
-------------------------------------

I think it comes up often enough in cases where there is a default value for a 
column.  For example, if you are reading into datasets from two different 
sources that are similar but not quite the same and you want to unify them.

I should also mention that, if you are reading in data as a dataset scan, you 
can achieve this with projection (project a name to a scalar and the scalar 
will be broadcast).

> [C++] Support for a `full` compute function
> -------------------------------------------
>
>                 Key: ARROW-12813
>                 URL: https://issues.apache.org/jira/browse/ARROW-12813
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Weston Pace
>            Priority: Major
>
> Given a scalar value and a length return an array where all values are equal 
> to the scalar value.
> The name "full" is derived from 
> [https://numpy.org/doc/stable/reference/generated/numpy.full.html] but if 
> anyone has a more clever name please recommend it.
> There are a number of utility functions in C++ that do this already.  
> However, exposing this as a compute function would allow R/Python to easily 
> generate arrays.



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

Reply via email to