Training
Module
Apply filters on functions - Training
Learn how combining native functions with prompts can accomplish customized tasks with the Semantic Kernel SDK.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
map_filter
functionApplies to: Databricks SQL
Databricks Runtime
Filters entries in the map in expr
using the function func
.
map_filter(expr, func)
expr
: A MAP expression.func
: A lambda function with two parameters returning a BOOLEAN. The first parameter takes the key the second parameter takes the value.The result is the same type as expr
.
> SELECT map_filter(map(1, 0, 2, 2, 3, -1), (k, v) -> k > v);
{1 -> 0, 3 -> -1}
Training
Module
Apply filters on functions - Training
Learn how combining native functions with prompts can accomplish customized tasks with the Semantic Kernel SDK.