DROP DICTIONARY IF EXISTS mabase_prod.dict_iplocate_asn;

CREATE DICTIONARY IF NOT EXISTS mabase_prod.dict_iplocate_asn
(
    network String,
    asn UInt32,
    country_code String,
    name String,
    org String,
    domain String
)
PRIMARY KEY network
SOURCE(FILE(path '/var/lib/clickhouse/user_files/iplocate-ip-to-asn.csv' format 'CSVWithNames'))
LAYOUT(IP_TRIE())
LIFETIME(MIN 3600 MAX 7200);
