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

snowflake.snowpark.types.StructType

class snowflake.snowpark.types.StructType(fields: Optional[List[StructField]] = None)[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.15.0/src/snowflake/snowpark/types.py#L368-L433)

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

语言: 中文