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.
What to re-read
More from SQL
- Releaseai_forecast version 2 to be on by default in compliance security profile workspaces from January 2027
- Previewai_mask gains an opt-in version 2.0 that masks by system classifiers (Beta)
- ReleaseNew SQL functions edit VARIANT values in place: variant_insert, variant_set, variant_delete and more
- Releaseai_forecast version 2 is GA, adding holidays, external covariates and non-negative forecasts