Thanks Andy,

I'm aware of that, and have tried it with no success. What I am looking for
might be similar to ScalarValue in DataFusion.

If I create an array like Int32Array::from(vec![1]), and try to get the
first value from this array, I get the primitive 1i32 instead of what I'm
looking for.

On Mon, 07 Jan 2019, 17:09 Andy Grove <andygrov...@gmail.com wrote:

> It is possible to create an array of Arrow types from a vec of primitives
> e.g. Int32Array::from(vec![1, 2, 3]) IIRC.
>
> Andy.
>
> On Mon, Jan 7, 2019 at 5:09 AM Neville Dipale <nevilled...@gmail.com>
> wrote:
>
> > I'm trying to find/create a way of converting primitive rust values in
> Rust
> > to their ArrowNativeType counterparts.
> > I'm trying to implement some array ops which need constant values, so I
> can
> > be able to multiply say a Int32Type by 3 to get a value.
> >
> > Is there currently a way of doing this that I don't know of, or can I
> open
> > a JIRA for this?
> >
> > Neville
> >
>

Reply via email to