I am trying to create a schema which will look like: root |-- ParentInfo: struct (nullable = true) | |-- ID: string (nullable = true) | |-- State: string (nullable = true) | |-- Zip: string (nullable = true) |-- ChildInfo: struct (nullable = true) | |-- ID: string (nullable = true) | |-- State: string (nullable = true) | |-- Hobby: string (nullable = true) | |-- Zip: string (nullable = true)
How do I create a StructField of StructType? I think that's what the "root" is. Thanks & Regards Tridib -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/spark-sql-create-nested-schema-tp18090.html Sent from the Apache Spark User List mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org