spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JG Perrin <jper...@lumeris.com>
Subject Re: Java Rdd of String to dataframe
Date Fri, 20 Oct 2017 12:38:13 GMT
SK,

Have you  considered: 		
Dataset<Row> df = spark.read().json(dfWithStringRowsContainingJson);

jg

> On Oct 11, 2017, at 16:35, sk skk <spark.sk18@gmail.com> wrote:
> 
> Can we create a dataframe from a Java pair rdd of String . I don’t have a schema as
it will be a dynamic Json. I gave encoders.string class.
> 
> Any help is appreciated !!
> 
> Thanks,
> SK

Mime
View raw message