Skip to content

Returns the value mapped to a specified key in a dictionary table.

func.dict_mapping(<dict_table>, <key_column>, <key_value>)
func.dict_mapping('city_dict', get_column(table, 'city_id'))
┌────────────┐
'New York'
└────────────┘
DICT_MAPPING(<dict_table>, <key_column>, <key_value>)
SELECT DICT_MAPPING('city_dict', city_id) FROM orders;
┌──────────┐
│ New York │
└──────────┘