You are viewing documentation about an older version (1.16.0). View latest version

snowflake.snowpark.types.StructType¶

class snowflake.snowpark.types.StructType(fields: Optional[List[StructField]] = None, structured=False)[source]¶

Bases: DataType

Represents a table schema or structured column. Contains StructField for each field.

Methods

add(field[, datatype, nullable])

Attributes

names

Returns the list of names of the StructField