representation.numeric.integer_numberWhole number without fractional part. String representation of an integer. Transforms to BIGINT or INTEGER depending on value range.
$ finetype infer -i "42"
→ representation.numeric.integer_numberSELECT finetype('42');
-- → 'representation.numeric.integer_number'CAST({col} AS BIGINT)-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS BIGINT) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'representation.numeric.integer_number';{
"$id": "https://meridian.online/schemas/representation.numeric.integer_number",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Whole number without fractional part. String representation of an integer. Transforms to BIGINT or INTEGER depending on value range.",
"examples": [
"42",
"-17",
"0",
"999999999"
],
"pattern": "^-?[0-9]+$",
"title": "Integer Number",
"type": "string",
"x-finetype-broad-type": "BIGINT",
"x-finetype-transform": "CAST({col} AS BIGINT)"
}42-170999999999