geography.location.regionSubdivision of a country (state, province, region). Locale-specific due to regional name conventions.
$ finetype infer -i "California"
→ geography.location.regionSELECT finetype('California');
-- → 'geography.location.region'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.region';{
"$id": "https://meridian.online/schemas/geography.location.region",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Subdivision of a country (state, province, region). Locale-specific due to regional name conventions.",
"examples": [
"California",
"Texas",
"Ontario",
"Bavaria",
"Île-de-France"
],
"maxLength": 100,
"minLength": 2,
"title": "Region / State",
"type": "string",
"x-finetype-broad-type": "VARCHAR",
"x-finetype-transform": "CAST({col} AS VARCHAR)"
}CaliforniaTexasOntarioBavariaÎle-de-France