Supported in: Batch, Streaming
Returns a map using key-value pairs from the zipped arrays. Null values are not allowed as keys and will cause a runtime error.
Expression categories: Array, Map
Type variable bounds: K accepts AnyType**V accepts AnyType
Output type: Map<K, V>
Argument values:
Output: {
1 -> 4,
2 -> 5,
3 -> 6,
}
Description: Duplicates in the left array will be removed, keeping the last seen key-value pair. Argument values:
Output: {
1 -> 5,
2 -> 6,
3 -> 7,
}
Description: If there are more values than keys, the output is null Argument values:
Output: null
Description: If there are more keys than values, the output is null Argument values:
Output: null
Argument values:
first_array
second_array
first_array | second_array | Output |
---|---|---|
[ 1, 2, 3 ] | null | null |
null | [ 1, 2, 3 ] | null |
null | null | null |
Description: Should return null when any key is null Argument values:
Output: null
Description: Should allow null as a value Argument values:
Output: {
1 -> 4,
2 -> null,
3 -> 6,
}
Description: Allows arrays as keys Argument values:
Output: {
[ 1, 2 ] -> 5,
[ 3, 4 ] -> 6,
}
Description: Allows arrays as values Argument values:
Output: {
1 -> [ 3, 4 ],
2 -> [ 5, 6 ],
}