pyflink.table.types.DataTypes.MAP#
- static DataTypes.MAP(key_type: DataType, value_type: DataType, nullable: bool = True) MapType[source]#
Data type of an associative array that maps keys to values. A map cannot contain duplicate keys; each key can map to at most one value.
There is no restriction of key types; it is the responsibility of the user to ensure uniqueness. The map type is an extension to the SQL standard.
- Parameters
key_type –
DataTypeof the keys in the map.value_type –
DataTypeof the values in the map.nullable – boolean, whether the type can be null (None) or not.