representation.boolean.initialsBoolean value represented as a single initial character: T/F (true/false) or Y/N (yes/no), in any case. Transforms to DuckDB BOOLEAN type.
$ finetype infer -i "T"
→ representation.boolean.initialsSELECT finetype('T');
-- → 'representation.boolean.initials'CAST({col} AS BOOLEAN)-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS BOOLEAN) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'representation.boolean.initials';{
"$id": "https://meridian.online/schemas/representation.boolean.initials",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Boolean value represented as a single initial character: T/F (true/false) or Y/N (yes/no), in any case. Transforms to DuckDB BOOLEAN type.",
"enum": [
"T",
"F",
"t",
"f",
"Y",
"N",
"y",
"n"
],
"examples": [
"T",
"F",
"Y",
"N",
"t",
"f",
"y",
"n"
],
"title": "Boolean Initials (T/F, Y/N)",
"type": "string",
"x-finetype-broad-type": "BOOLEAN",
"x-finetype-transform": "CAST({col} AS BOOLEAN)"
}TFYNtfyn