snowflake.snowpark.types.StructType¶
- class snowflake.snowpark.types.StructType(fields: Optional[List[StructField]] = None, structured: Optional[bool] = None)[source]¶
Bases:
DataTypeRepresents a table schema or structured column. Contains
StructFieldfor each field.Methods
add(field[, datatype, nullable])fromJson(json_dict)from_json(json_dict)jsonValue()json_value()simpleString()simple_string()Attributes
fieldNamesReturns the list of names of the
StructFieldnamesReturns the list of names of the
StructField