Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
mask
ROW FILTER
更新しました 2024/11/22
Send us feedback
map_filter
Applies to: Databricks SQL Databricks Runtime
Filters entries in the map in expr using the function func.
expr
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}
map function
map_concat function
map_entries function
map_from_arrays function
map_from_entries function
map_keys function
map_values function
map_zip_with function