The use case is to pass a Scalar created in Python to a kernel written in
C++ backend which supports arrow data types.
To support this I need to unwrap the Pyarrow Scalar to a C++ arrow Scalar.

With Regards,
Vibhatha Abeykoon


On Mon, Mar 22, 2021 at 11:15 PM Benjamin Kietzman <bengil...@gmail.com>
wrote:

> I'm not sure what kind of unwrapping you are looking for, would
> pyarrow.scalar and Scalar.as_py address your use case? For example,
> pa.scalar(128) will wrap that integer into a Scalar
>
> On Mon, Mar 22, 2021, 11:15 Vibhatha Abeykoon <vibha...@gmail.com> wrote:
>
> > Hello,
> >
> > Is there a way to wrap and unwrap Scalars using the Cython API?
> >
> > I am following the docs:
> > https://arrow.apache.org/docs/python/extending.html
> > But I couldn't find an option. Not sure if I am following the correct
> docs.
> >
> > With Regards,
> > Vibhatha Abeykoon,
> > PhD Candidate | Research Assistant,
> > Digital Science Center,
> > Luddy School of Informatics Computing and Engineering,
> > Indiana University Bloomington,
> > Cell : +1-812-955-1394
> > Web: https://www.vibhatha.org
> > <https://www.linkedin.com/in/vibhathaabeykoon/>
> >
>

Reply via email to