Re: udf StructField to JSON String

2016-03-11 Thread Caires Vinicius
gt; > On Mar 11, 2016, at 7:15 AM, Caires Vinicius <caire...@gmail.com> wrote: > > > > I have one DataFrame with nested StructField and I want to convert to > JSON String. There is anyway to accomplish this? > >

Re: udf StructField to JSON String

2016-03-11 Thread Caires Vinicius
, Mar 11, 2016 at 1:53 PM Tristan Nixon <st...@memeticlabs.org> wrote: > Have you looked at DataFrame.write.json( path )? > > https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.DataFrameWriter > > > On Mar 11, 2016, at 7:15 AM, Caires Vinicius &l

udf StructField to JSON String

2016-03-11 Thread Caires Vinicius
I have one DataFrame with nested StructField and I want to convert to JSON String. There is anyway to accomplish this?