Categories: Boolean
ISNUMERIC
Determines whether an expression is a numeric type (INT, BIGINT, DECIMAL, DOUBLE, FLOAT) or a string that represents a number, with an optional sign, digits, and an optional decimal point with digits. Returns TRUE for these inputs and FALSE for other types, non-matching strings, and NULL. The check is locale-independent and does not accept scientific notation, commas, currency symbols, or whitespace.
Syntax
ISNUMERIC(expression any) → boolean
- expression: Can be a general expression of any Dremio-supported data type. For
varcharinputs, checks whether the string can be parsed as a number.
Examples
ISNUMERIC exampleSELECT ISNUMERIC('13579')
-- True
SELECT ISNUMERIC('4.2')
-- true
SELECT ISNUMERIC('-42')
-- true
SELECT ISNUMERIC('Hello World!')
-- False
SELECT ISNUMERIC(NULL)
-- false
SELECT ISNUMERIC(passenger_count)
FROM "Samples"."samples.dremio.com"."NYC-taxi-trips"
LIMIT 1
-- True