geography.location.cityName of a city, town, or municipality. Locale-specific due to city name representation in different languages.
$ finetype infer -i "New York"
→ geography.location.citySELECT finetype('New York');
-- → 'geography.location.city'CAST({col} AS VARCHAR)-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS VARCHAR) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'geography.location.city';{
"$id": "https://meridian.online/schemas/geography.location.city",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Name of a city, town, or municipality. Locale-specific due to city name representation in different languages.",
"examples": [
"New York",
"San Francisco",
"London",
"Tokyo",
"Paris"
],
"maxLength": 100,
"minLength": 1,
"title": "City Name",
"type": "string",
"x-finetype-broad-type": "VARCHAR",
"x-finetype-transform": "CAST({col} AS VARCHAR)"
}New YorkSan FranciscoLondonTokyoParis