snowflake.snowpark.types.MapType

class snowflake.snowpark.types.MapType(key_type: Optional[DataType] = None, value_type: Optional[DataType] = None, structured: Optional[bool] = None, value_contains_null: bool = True)[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.30.0/snowpark-python/src/snowflake/snowpark/types.py#L395-L484)

Bases: DataType

Map data type. This maps to the OBJECT data type in Snowflake if key and value types are not defined otherwise MAP.

Methods

fromJson(json_dict)

from_json(json_dict)

is_primitive()

jsonValue()

json_value()

simpleString()

simple_string()

Attributes

keyType

valueType

Language: English