snowflake.snowpark.types.StructType

class snowflake.snowpark.types.StructType(fields: Optional[List[StructField]] = None, structured: Optional[bool] = None)[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.30.0/snowpark-python/src/snowflake/snowpark/types.py#L696-L803)

Bases: DataType

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

Methods

add(field[, datatype, nullable])

fromJson(json_dict)

from_json(json_dict)

jsonValue()

json_value()

simpleString()

simple_string()

Attributes

fieldNames

Returns the list of names of the StructField

names

Returns the list of names of the StructField

Language: English