SQL
ReleaseBreaking48 days left

array_contains on a constant empty array will return NULL, not false, for a NULL value

From Databricks release notes: What's coming

From January 15, 2027 or later, on Databricks Runtime 19 and above with ANSI mode on, array_contains with a constant empty array and a NULL value returns NULL instead of false, and map_contains_key with a constant empty map changes the same way. Filters written as NOT array_contains(...) will then drop rows where the value is NULL. Wrapping the check as size(arr) > 0 AND array_contains(arr, value) keeps today's result.

What to do, by 15 Jan 2027

Find NOT array_contains and map_contains_key filters that can see constant empty arrays or maps and NULL values, and guard them with a size check if the old result is needed.

Read the original

What to re-read

More from SQL

All news in SQL

All Databricks news from November 2026