Hello,

I would like to add a StructType to DataFrame. What would be the best way
to do it? Not sure if it is possible using withColumn. A possible way is to
convert the dataframe into a RDD[Row], add the struct and then convert it
back to dataframe. But that seems an overkill.

I guess I may have missed something crucial. Can anyone give me some
pointers?

Thanks.

Justin




--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Creating-StructType-with-DataFrame-withColumn-tp22715.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Reply via email to