representation.boolean.binaryBoolean value represented as a binary digit: "0" for false, "1" for true. Common in CSV exports, database dumps, and flag columns. Transforms to DuckDB BOOLEAN type.
$ finetype infer -i "0"
→ representation.boolean.binarySELECT finetype('0');
-- → 'representation.boolean.binary'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.binary';{
"$id": "https://meridian.online/schemas/representation.boolean.binary",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Boolean value represented as a binary digit: \"0\" for false, \"1\" for true. Common in CSV exports, database dumps, and flag columns. Transforms to DuckDB BOOLEAN type.",
"enum": [
"0",
"1"
],
"examples": [
"0",
"1"
],
"title": "Binary Boolean (0/1)",
"type": "string",
"x-finetype-broad-type": "BOOLEAN",
"x-finetype-transform": "CAST({col} AS BOOLEAN)"
}01