pyflink.table.types.DataTypes.MAP#
- static DataTypes.MAP(key_type: pyflink.table.types.DataType, value_type: pyflink.table.types.DataType, nullable: bool = True) pyflink.table.types.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 –
DataType
of the keys in the map.value_type –
DataType
of the values in the map.nullable – boolean, whether the type can be null (None) or not.