technology.internet.hostnameFully qualified domain name or simple hostname. Does not include protocol or path. Allows alphanumeric characters, hyphens, and dots. Subdomains supported.
$ finetype infer -i "example.com"
→ technology.internet.hostnameSELECT finetype('example.com');
-- → 'technology.internet.hostname'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) = 'technology.internet.hostname';{
"$id": "https://meridian.online/schemas/technology.internet.hostname",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Fully qualified domain name or simple hostname. Does not include protocol or path. Allows alphanumeric characters, hyphens, and dots. Subdomains supported.",
"examples": [
"example.com",
"www.google.com",
"subdomain.example.org",
"localhost"
],
"pattern": "^(?:(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)*[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)$",
"title": "Hostname",
"type": "string",
"x-finetype-broad-type": "VARCHAR",
"x-finetype-transform": "CAST({col} AS VARCHAR)"
}example.comwww.google.comsubdomain.example.orglocalhost