MeridianMERIDIAN

Whitespace-Separated Values

List separated by spaces or tabs: value1 value2 value3. Example: "one two three" or "1 2 3 4 5".

Whitespace-Separated Values

container.array.whitespace_separated

List separated by spaces or tabs: value1 value2 value3. Example: "one two three" or "1 2 3 4 5".

Domain
container
Category
array
Casts to
VARCHAR
Scope
Universal

Try it

CLI
$ finetype infer -i "apple banana cherry" --mode column
→ container.array.whitespace_separated

DuckDB

Detect
SELECT ft_infer('apple banana cherry');
-- → 'container.array.whitespace_separated'
Cast expression
CAST({col} AS VARCHAR)
Safe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(ft_cast(my_column) AS VARCHAR) AS clean_value
FROM my_table
WHERE ft_infer(my_column) = 'container.array.whitespace_separated';

Decompose

Expression
STRING_SPLIT(TRIM({col}), '\s+')

JSON Schema

finetype taxonomy container.array.whitespace_separated -o json-schema
{
  "$id": "https://meridian.online/schemas/container.array.whitespace_separated",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "List separated by spaces or tabs: value1 value2 value3. Example: \"one two three\" or \"1 2 3 4 5\".\nRECURSIVE INFERENCE: Samples elements and infers common type, returns LIST<inferred_type>.",
  "examples": [
    "apple banana cherry",
    "1 2 3 4 5",
    "red\tgreen\tblue"
  ],
  "pattern": "^[^\\s]+(\\s+[^\\s]+)*$",
  "title": "Whitespace-Separated Values",
  "type": "string",
  "x-finetype-label": "container.array.whitespace_separated",
  "x-finetype-pii": false
}

Examples

apple banana cherry1 2 3 4 5red green blue

Aliases

space_separatedspace_list

Type Registry