StructType¶
StructType is a recursive DataType with fields and being a collection of fields itself.
StructType is used to define a schema.
Creating Instance¶
StructType takes the following to be created:
Seq[StructField]¶
Not only does StructType has fields but is also a collection of StructFields (Seq[StructField]).
All things Seq (Scala) apply equally here.
SQL Representation¶
StructType uses STRUCT<...> for SQL representation (in query plans or SQL statements).
Catalog Representation¶
StructType uses struct<...> for catalog representation.