Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
clause (TABLE)mask
clauseROW FILTER
clauseAtualizado 18/02/2025
forall
function Applies to: Databricks SQL
Databricks Runtime
Tests whether func
holds for all elements in the array.
> SELECT forall(array(1, 2, 3), x -> x % 2 == 0);
false
> SELECT forall(array(2, 4, 8), x -> x % 2 == 0);
true
> SELECT forall(array(1, NULL, 3), x -> x % 2 == 0);
false
> SELECT forall(array(2, NULL, 8), x -> x % 2 == 0);
NULL