vyasr opened a new issue, #40318:
URL: https://github.com/apache/arrow/issues/40318

   ### Describe the enhancement requested
   
   Currently creating an ArrowArray from a Scalar requires going through the 
Builder interface. While this is fine as a general solution, a common special 
case is the creation of an Array from a single Scalar (possibly copying that 
Scalar N times). Abstracting out the handling of different types could be 
helpful for this case. If there is interest in this feature, [there is code 
that I wrote for this task in 
cudf](https://github.com/rapidsai/cudf/blob/branch-24.04/cpp/src/interop/from_arrow.cu#L511)
 that could easily be extracted into arrow C++ (we're likely to remove that 
functionality from libcudf).
   
   ### Component(s)
   
   C++


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to