You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Wenlei Xie <we...@gmail.com> on 2015/04/24 22:56:41 UTC
Creating a Row in SparkSQL 1.2 from ArrayList
Hi,
I am wondering if there is any way to create a Row in SparkSQL 1.2 in Java
by using an List? It looks like
ArrayList<Object> something;
Row.create(something)
will create a row with single column (and the single column contains the
array)
Best,
Wenlei
Re: Creating a Row in SparkSQL 1.2 from ArrayList
Posted by Wenlei Xie <we...@gmail.com>.
Use Object[] in Java just works :).
On Fri, Apr 24, 2015 at 4:56 PM, Wenlei Xie <we...@gmail.com> wrote:
> Hi,
>
> I am wondering if there is any way to create a Row in SparkSQL 1.2 in Java
> by using an List? It looks like
>
> ArrayList<Object> something;
> Row.create(something)
>
> will create a row with single column (and the single column contains the
> array)
>
> Best,
> Wenlei
>
>
>
--
Wenlei Xie (谢文磊)
Ph.D. Candidate
Department of Computer Science
456 Gates Hall, Cornell University
Ithaca, NY 14853, USA
Email: wenlei.xie@gmail.com