You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by tridib <tr...@live.com> on 2014/11/04 21:21:21 UTC

StructField of StructType

How do I create a StructField of StructType? I need to create a nested
schema.



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/StructField-of-StructType-tp18091.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org


Re: StructField of StructType

Posted by Michael Armbrust <mi...@databricks.com>.
Structs are Rows nested in other rows.  This might also be helpful:
http://spark.apache.org/docs/latest/sql-programming-guide.html#programmatically-specifying-the-schema

On Tue, Nov 4, 2014 at 12:21 PM, tridib <tr...@live.com> wrote:

> How do I create a StructField of StructType? I need to create a nested
> schema.
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/StructField-of-StructType-tp18091.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
> For additional commands, e-mail: user-help@spark.apache.org
>
>