snowflake.snowpark.types.StructType¶
- class snowflake.snowpark.types.StructType(fields: List[StructField] | None = None)[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.5.0/src/snowflake/snowpark/types.py#L305-L370)¶
Bases:
DataType
Represents a table schema. Contains
StructField
for each column.Methods
add
(field[, datatype, nullable])Attributes
names
Returns the list of names of the
StructField