Databricks / Data & warehouses

Databricks array_contains with a constant empty array breaking change date

With ANSI mode enabled in Databricks Runtime 19 and above, array_contains will return NULL instead of false for a NULL value starting on or after January 15, 2027.

45days left
Change
Breaking change
Effective
Jan 15, 2027
Announced
Nov 16, 2026
Replacement
size(arr) > 0 AND array_contains(arr, value)
Source
docs.databricks.com
Vendor's words
Upcoming breaking change: array_contains with a constant empty array will return NULL for a NULL value. Starting on or after January 15, 2027, with ANSI mode enabled in Databricks Runtime 19 and above, array_contains(arr, value) will return NULL, not false, when arr is a constant empty array and value is NULL. map_contains_key(map, key) with a constant empty map will change the same way. As a result, NOT array_contai…

Add Databricks dates to calendar Report a correction

More from Databricks

Don't get surprised again

Get the weekly →One email every Friday: what's dying this week and what's newly announced.