

 Amazon Redshift will no longer support the creation of new Python UDFs starting Patch 198. Existing Python UDFs will continue to function until June 30, 2026. For more information, see the [ blog post ](https://amazonaws-china.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/). 

# IS\$1SMALLINT function
IS\$1SMALLINT

Checks whether a variable is a `SMALLINT`. The IS\$1SMALLINT function returns `true` for numbers of scale 0 in the 16-bit range. The function returns `false` for any other values, including null and floating point numbers.

## Syntax
Syntax

```
IS_SMALLINT(super_expression)
```

## Arguments
Arguments

*super\$1expression*  
A `SUPER` expression or column.

## Return


`BOOLEAN`

## Examples
Examples

To check if `5` is a `SMALLINT` using the IS\$1SMALLINT function, use the following example.

```
CREATE TABLE t(s SUPER);

INSERT INTO t VALUES (5);

SELECT s, IS_SMALLINT(s) FROM t;

+---+-------------+
| s | is_smallint |
+---+-------------+
| 5 | true        |
+---+-------------+
```