---
title: is null operator
description: Learn the syntax of the is null operator of the SQL language in Databricks SQL.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/functions/isnullop
---

# `is null` operator

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime

Tests whether `expr` is `NULL`.

## Syntax

```
expr is [not] null
```

## Arguments

* `expr`: An expression of any type.

## Returns

A `BOOLEAN`.

If `not` is specified this operator is a synonym for `isnotnull(expr)`.
Otherwise the operator is a synonym for `isnull(expr)`.

If `expr` is a `VARIANT` result of a:

* [JSON path expression](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-json-path-expression.md) with a valid path,
* [`parse_json` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/parse_json.md),
* [`variant_explode` table-valued function](https://docs.databricks.com/aws/en/sql/language-manual/functions/variant_explode.md), or
* [`variant_explode_outer` table-valued function](https://docs.databricks.com/aws/en/sql/language-manual/functions/variant_explode_outer.md)

the result of `is null` is always `false`.
Use the [`is_variant_null` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/is_variant_null.md) function to check if the `VARIANT` encoded value is `NULL`, or cast the `VARIANT` to a specific type and check if the result is `NULL`.

## Examples

```sql
> SELECT 1 is null;
 false

> SELECT 1 is not null;
 true
```

## Related functions

* [`isnotnull` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/isnotnull.md)
* [`isnull` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/isnull.md)
* [`isnan` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/isnan.md)
* [`is false` operator](https://docs.databricks.com/aws/en/sql/language-manual/functions/isfalse.md)
* [`is true` operator](https://docs.databricks.com/aws/en/sql/language-manual/functions/istrue.md)
* [`is_variant_null` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/is_variant_null.md)
