spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mendelson, Assaf" <Assaf.Mendel...@rsa.com>
Subject Creating schema from json representation
Date Sun, 04 Dec 2016 09:10:37 GMT
Hi,

I am trying to save a spark dataframe schema in scala.
I can do df.schema.json to get the json string representation.
Now I want to get the schema back from the json.
However, it seems I need to parse the json string myself, get its fields object and generate
the fields manually.
Is there a better way?
Assaf.

Mime
View raw message