snowflake.snowpark.types.StructType¶
- class snowflake.snowpark.types.StructType(fields: Optional[List[StructField]] = None, structured=False)[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/types.py#L375-L443)¶
Bases:
DataTypeRepresents a table schema or structured column. Contains
StructFieldfor each field.Methods
add(field[, datatype, nullable])Attributes
namesReturns the list of names of the
StructField